libcap: minor tweaks and fixes
cover libcap: minor tweaks and fixes
Andre McCurdy (3):
libcap: always link apps dynamically
libcap: avoid losing default Large File Support CFLAGS
libcap: control attr PACKAGECONFIG option via xattr DISTRO feature
meta/recipes-support/libcap/libcap_2.24.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
1.9.1
PATCH 1/3 libcap: always link apps dynamically
Without the explicit over-ride, apps will be linked statically if a .git directory is found in the top level source directory.
Signed-off-by Andre McCurdy <[email protected]>
--- meta/recipes-support/libcap/libcap_2.24.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-support/libcap/libcap_2.24.bb +1 -0
@@ -36,6 +36,7 @@ EXTRA_OEMAKE = " \ INDENT= \ lib=${@os.path.basename('${libdir}')} \ RAISE_SETFCAP=no \ + DYNAMIC=yes \ " EXTRA_OEMAKE_append_class-target = " SYSTEM_HEADERS=${STAGING_INCDIR}"
Signature · 1 line
1.9.1
PATCH 2/3 libcap: avoid losing default Large File Support CFLAGS
In reply to Andre McCurdy-D_LARGEFILE64_SOURCE and -D_FILE_OFFSET_BITS=64 are present in the default libcap CFLAGS. Add them to the OE CFLAGS too, so that they are still in effect when the OE CFLAGS over-ride the defaults.
Signed-off-by Andre McCurdy <[email protected]>
--- meta/recipes-support/libcap/libcap_2.24.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-support/libcap/libcap_2.24.bb +3 -0
@@ -41,6 +41,9 @@ EXTRA_OEMAKE = " \ EXTRA_OEMAKE_append_class-target = " SYSTEM_HEADERS=${STAGING_INCDIR}" +# these are present in the libcap defaults, so include in our CFLAGS too +CFLAGS += "-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" + do_compile() { oe_runmake ${EXTRA_OECONF} }
Signature · 1 line
1.9.1
PATCH 3/3 libcap: control attr PACKAGECONFIG via xattr DISTRO feature
In reply to Andre McCurdySigned-off-by Andre McCurdy <[email protected]>
--- meta/recipes-support/libcap/libcap_2.24.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-support/libcap/libcap_2.24.bb +2 -1
@@ -26,7 +26,8 @@ do_configure() { sed -e '/shell gperf/cifeq (,yes)' -i libcap/Makefile } -PACKAGECONFIG ??= "attr ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}" PACKAGECONFIG_class-native ??= "" PACKAGECONFIG[attr] = "LIBATTR=yes,LIBATTR=no,attr"
Signature · 1 line
1.9.1