]> code.ossystems Code Review - openembedded-core.git/commitdiff
wayland: Fix wayland-tools packaging
authorTom Hochstein <tom.hochstein@nxp.com>
Sun, 7 Nov 2021 18:50:14 +0000 (12:50 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Nov 2021 22:01:53 +0000 (22:01 +0000)
There are some packaging problems due to the wayland-tools packaging
implementation. The wayland-tools package currently looks like this:

wayland-tools
└── usr
    ├── bin
    │   └── wayland-scanner
    └── share
        └── wayland
            ├── wayland.dtd
            ├── wayland-scanner.mk
            └── wayland.xml

The files wayland.dtd and wayland.xml belong in the main package,
while wayland-scanner.mk belongs in wayland-dev.

Fix the wayland.dtd and wayland.xml packaging by prepending the
wayland-tools package and dropping the main package FILES variable
override. The file wayland-scanner.mk is included in the main
package by default, and so must be explicitly added to wayland-dev.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/wayland/wayland_1.19.0.bb

index d6e468497d2f82039184b704eb8ec33a2e8455d7..5f8b972f76c9acfebe81c415f36c54e8b7a1ae43 100644 (file)
@@ -52,10 +52,10 @@ sysroot_stage_all:append:class-target () {
        cp ${STAGING_DATADIR_NATIVE}/aclocal/wayland-scanner.m4 ${SYSROOT_DESTDIR}/${datadir}/aclocal/
 }
 
-PACKAGES += "${PN}-tools"
+PACKAGES =+ "${PN}-tools"
 
-FILES:${PN} = "${libdir}/*${SOLIBS}"
-FILES:${PN}-tools += "${bindir} ${datadir}/wayland"
+FILES:${PN}-tools = "${bindir}/wayland-scanner"
+FILES:${PN}-dev += "${datadir}/${BPN}/wayland-scanner.mk"
 
 BBCLASSEXTEND = "native nativesdk"