<p dir="ltr"><br>
On Aug 26, 2015 9:11 AM, "Patrick Ohly" <<a href="mailto:patrick.ohly@intel.com">patrick.ohly@intel.com</a>> wrote:<br>
><br>
> The unconditional removal of -DWITHOUT_XATTR accidentally introduced a<br>
> compile-time dependency on "acl", because "sys/acl.h" gets<br>
> included. This caused random compile failures.<br>
><br>
> To fix this, we introduce a proper PACKAGECONFIG for the "xattr"<br>
> support, with the distro's "xattr" feature determining the<br>
> default. Setting the define must be done with custom code because<br>
> PACKAGECONFIG can only influence configure parameters.<br>
><br>
> The "acl" distro feature is not checked because although enabling<br>
> "xattr" support now triggers a build of acl, nothing from it will not<br>
> get included in the resulting target image. This seems more suitable<br>
> than not enabling xattr support in mtd-utils when acl support in the<br>
> distro is disabled.<br>
><br>
> Signed-off-by: Patrick Ohly <<a href="mailto:patrick.ohly@intel.com">patrick.ohly@intel.com</a>><br>
> ---<br>
> Â meta/recipes-devtools/mtd/<a href="http://mtd-utils_git.bb">mtd-utils_git.bb</a> | 8 +++++++-<br>
> Â 1 file changed, 7 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/meta/recipes-devtools/mtd/<a href="http://mtd-utils_git.bb">mtd-utils_git.bb</a> b/meta/recipes-devtools/mtd/<a href="http://mtd-utils_git.bb">mtd-utils_git.bb</a><br>
> index 8d4892a..17dca77 100644<br>
> --- a/meta/recipes-devtools/mtd/<a href="http://mtd-utils_git.bb">mtd-utils_git.bb</a><br>
> +++ b/meta/recipes-devtools/mtd/<a href="http://mtd-utils_git.bb">mtd-utils_git.bb</a><br>
> @@ -19,7 +19,13 @@ SRC_URI = "git://<a href="http://git.infradead.org/mtd-utils.git">git.infradead.org/mtd-utils.git</a> \<br>
><br>
> Â S = "${WORKDIR}/git/"<br>
><br>
> -EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include' 'BUILDDIR=${S}'"<br>
> +# xattr support creates an additional compile-time dependency on acl because<br>
> +# the sys/acl.h header is needed. libacl is not needed and thus enabling xattr<br>
> +# regardless whether acl is enabled or disabled in the distro should be okay.<br>
> +PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)}"<br>
> +PACKAGECONFIG[xattr] = ",,acl,"<br>
> +<br>
> +EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_XATTR', d)} -I${S}/include' 'BUILDDIR=${S}'"<br>
><br>
Do I see a spurious " in the middle<br>
> Â do_install () {<br>
> Â Â Â Â oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}<br>
> --<br>
> 2.1.4<br>
><br>
> --<br>
> _______________________________________________<br>
> Openembedded-core mailing list<br>
> <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
> <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</p>