]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
build-appliance-image: check for xattr feature
authorTrevor Woerner <twoerner@gmail.com>
Tue, 21 Feb 2023 20:44:45 +0000 (15:44 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2023 12:10:09 +0000 (12:10 +0000)
The xattr DISTRO_FEATURE is required otherwise a bitbake build will fail due
to a failure with the 'cp' utility:

Subprocess output:
cp: cannot preserve extended attributes, cp is built without xattr support

ERROR: Logfile of failure stored in: /home/builder/poky/build/tmp/work/qemux86_64-poky-linux/packagegroup-base/1.0-r83/temp/log.do_populate_lic.1001
ERROR: Task (/home/builder/poky/meta/recipes-core/packagegroups/packagegroup-base.bb:do_populate_lic) failed with exit code '1'

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/images/build-appliance-image_15.0.0.bb

index 766b497bd1b4420b76792573b8f8976b2557f3e0..cc18d66ecc8b8217c17a87d79d5704c58584c8d5 100644 (file)
@@ -22,7 +22,9 @@ APPEND += "rootfstype=ext4 quiet"
 DEPENDS = "zip-native python3-pip-native"
 IMAGE_FSTYPES = "wic.vmdk wic.vhd wic.vhdx"
 
-inherit core-image setuptools3
+inherit core-image setuptools3 features_check
+
+REQUIRED_DISTRO_FEATURES += "xattr"
 
 SRCREV ?= "a5507f383cdab99806df131bf4aef191799c5153"
 SRC_URI = "git://git.yoctoproject.org/poky;branch=master \