]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pango: Make it build with ptest disabled
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 10 Nov 2022 02:01:36 +0000 (03:01 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Nov 2022 14:31:32 +0000 (14:31 +0000)
This avoids the following error:

  ERROR: pango-1.50.11-r0 do_package: QA Issue: pango: Files/directories
  were installed but not shipped in any package:
    /usr/libexec
    /usr/libexec/installed-tests
    /usr/libexec/installed-tests/pango
    /usr/libexec/installed-tests/pango/nofonts
    /usr/libexec/installed-tests/pango/nofonts/fonts.conf

Also use tabs for indentation of shell code.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/pango/pango_1.50.11.bb

index f5456898118cd0bdfe34d42744e39a0dce5ee244..f982d9a65bdcd5295b139feb38a1155db8f74769 100644 (file)
@@ -38,13 +38,15 @@ PACKAGECONFIG[thai] = ",,libthai"
 GIR_MESON_OPTION = 'introspection'
 
 do_configure:prepend() {
-    chmod +x ${S}/tests/*.py
+       chmod +x ${S}/tests/*.py
 }
 
 # https://gitlab.gnome.org/GNOME/pango/-/issues/713
 do_install:append() {
-    mkdir -p ${D}/${libexecdir}/installed-tests/pango/nofonts/
-    install ${S}/tests/nofonts/fonts.conf ${D}/${libexecdir}/installed-tests/pango/nofonts/
+       if [ "${@bb.utils.filter('PACKAGECONFIG', 'tests', d)}" ]; then
+               mkdir -p ${D}${libexecdir}/installed-tests/pango/nofonts
+               install ${S}/tests/nofonts/fonts.conf ${D}${libexecdir}/installed-tests/pango/nofonts
+       fi
 }
 
 LEAD_SONAME = "libpango-1.0*"