micro-uclibc: add xattr to distro features to fix build failure of libcap2
PATCH 1/2 micro-uclibc: add xattr to distro features to fix build failure of libcap2
cap_file.c:8:23: fatal error: sys/xattr.h: No such file or directory
--- conf/distro/micro-uclibc.conf | 1 + conf/distro/micro.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
conf/distro/micro-uclibc.conf +1 -0
@@ -12,6 +12,7 @@ ############################################################################# DISTRO_NAME = "micro-uclibc" +DISTRO_FEATURES = "xattr" ############################################################################# # TOOLCHAIN
conf/distro/micro.conf +1 -1
@@ -19,7 +19,7 @@ DISTRO_VERSION = "${SRCDATE}" # DISTRO FEATURE SELECTION ############################################################################# # No features selected -DISTRO_FEATURES = "eabi" +DISTRO_FEATURES += "eabi" ############################################################################# # LIBRARY NAMES
Signature · 1 line
1.7.0.4
PATCH 1/1 minimal-uclibc: add xattr to distro features to fix build failure of libcap2
cap_file.c:8:23: fatal error: sys/xattr.h: No such file or directory
--- conf/distro/minimal-uclibc.conf | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
conf/distro/minimal-uclibc.conf +1 -1
@@ -35,7 +35,7 @@ require conf/distro/minimal.conf # FEATURE SELECTION ############################################################################# # We want images supporting the following features (for task-base) -DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci" +DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci xattr" # Following feature is for ARM and E500 based machines DISTRO_FEATURES += "eabi" # pam is needed on uclibc if using shadow
Signature · 1 line
1.7.0.4
Re: [PATCH] minimal-uclibc: add xattr to distro features to fix build failure of libcap2
Petr Štetiar <[email protected]> [2011-02-26 18:44:14]:
Quoted 3 lines
cap_file.c:8:23: fatal error:
sys/xattr.h: No such file or directorySigned-off-by Petr Štetiar <[email protected]>
Sent this one accidentaly twice, sorry.
-- ynezz
PATCH 2/2 minimal-uclibc: add xattr to distro features to fix build failure of libcap2
In reply to Petr Štetiarcap_file.c:8:23: fatal error: sys/xattr.h: No such file or directory
--- conf/distro/minimal-uclibc.conf | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
conf/distro/minimal-uclibc.conf +1 -1
@@ -35,7 +35,7 @@ require conf/distro/minimal.conf # FEATURE SELECTION ############################################################################# # We want images supporting the following features (for task-base) -DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci" +DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci xattr" # Following feature is for ARM and E500 based machines DISTRO_FEATURES += "eabi" # pam is needed on uclibc if using shadow
Signature · 1 line
1.7.0.4
Re: [PATCH 2/2] minimal-uclibc: add xattr to distro features to fix build failure of libcap2
Quoted 3 lines · Petr Štetiar
cap_file.c:8:23: fatal error:
sys/xattr.h: No such file or directorySigned-off-by Petr Štetiar <[email protected]>
Quoted 26 lines
---
conf/distro/minimal-uclibc.conf | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)conf/distro/minimal-uclibc.conf +1
-1@@ -35,7 +35,7 @@ require conf/distro/minimal.conf # FEATURE SELECTION ############################################################################# # We want images supporting the following features (for task-base) -DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci" +DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci xattr" # Following feature is for ARM and E500 based machinesDISTRO_FEATURES += "eabi"
# pam is needed on uclibc if using shadow -- 1.7.0.4_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 3 lines · Petr Štetiar
cap_file.c:8:23: fatal error:
sys/xattr.h: No such file or directorySigned-off-by Petr Štetiar <[email protected]>
looks good although I dont know if enabling this is intended as micro should be small
Quoted 39 lines
---
conf/distro/micro-uclibc.conf | 1 +
conf/distro/micro.conf | 2 +-2 files changed, 2 insertions(+), 1 deletions(-)conf/distro/micro-uclibc.conf +0
-0@@ -12,6 +12,7 @@ #############################################################################DISTRO_NAME = "micro-uclibc"
+DISTRO_FEATURES = "xattr"#############################################################################
# TOOLCHAINconf/distro/micro.conf +1
-2@@ -19,7 +19,7 @@ DISTRO_VERSION = "${SRCDATE}" # DISTRO FEATURE SELECTION ############################################################################# # No features selected -DISTRO_FEATURES = "eabi" +DISTRO_FEATURES += "eabi" ############################################################################# # LIBRARY NAMES --1.7.0.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Khem Raj <[email protected]> [2011-02-26 10:06:31]:
Quoted 7 lines · Petr Štetiar
Quoted 3 lines
cap_file.c:8:23: fatal error:
sys/xattr.h: No such file or directorySigned-off-by Petr Štetiar <[email protected]>looks good although I dont know if enabling this is intended as micro should be small
I see and agree, but what do you propose as the way to fix the libcap2 build failure with uclibc? Thanks.
-- ynezz
Quoted 1 line · Petr Štetiar
cap_file.c:8:23: fatal error:
sys/xattr.h: No such file or directory
Are you really using POSIX.1e caps on micro? If yes then I guess this is fine, though it would be interesting to know what the code size impact is.
p.
Phil Blundell <[email protected]> [2011-02-26 18:39:38]:
Quoted 6 lines · Petr Štetiar
Quoted 1 line
cap_file.c:8:23: fatal error:
sys/xattr.h: No such file or directoryAre you really using POSIX.1e caps on micro? If yes then I guess this is fine, though it would be interesting to know what the code size impact is.
I don't use micro at all, I've just added it as another test target for 2011.03 release and the build of console-image failed on libcap2 so I've tried to fix it. That's all behind it.
-- ynezz
Quoted 5 lines · Petr Štetiar
Phil Blundell <[email protected]> [2011-02-26 18:39:38]:
Quoted 3 lines · Petr Štetiar
Quoted 1 line
cap_file.c:8:23: fatal error:
sys/xattr.h: No such file or directory
Quoted 7 lines
Quoted 3 lines
Are you really using POSIX.1e caps on micro? If yes then I guess this is fine, though it would be interesting to know what the code size impact is.
I don't use micro at all, I've just added it as another test target for 2011.03 release and the build of console-image failed on libcap2 so I've tried to fix it. That's all behind it.
Which package in console-image depends on libcap2? It might be worth exploring whether there is a way to avoid that dependency.
It's worth noting that being able to build console-image is not really a primary goal for micro. It'd be nice if it worked but I don't want to add any extra binary bloat in the base system purely for the sake of getting a clean console-image build that may end up never being used.
So, absent a compelling usage scenario for libcap2 on micro, please don't commit this patch.
p.
Phil Blundell <[email protected]> [2011-02-26 19:20:41]:
Quoted 2 lines
So, absent a compelling usage scenario for libcap2 on micro, please don't commit this patch.
Ok, please revert it then and sorry for the noise...
-- ynezz
Quoted 10 lines · Phil Blundell
Quoted 9 lines · Petr Štetiar
Phil Blundell<[email protected]> [2011-02-26 18:39:38]:
Quoted 6 lines · Petr Štetiar
Quoted 1 line
cap_file.c:8:23: fatal error:
sys/xattr.h: No such file or directoryAre you really using POSIX.1e caps on micro? If yes then I guess this is fine, though it would be interesting to know what the code size impact is.
Quoted 6 lines
Quoted 3 lines
I don't use micro at all, I've just added it as another test target for 2011.03 release and the build of console-image failed on libcap2 so I've tried to fix it. That's all behind it.
Which package in console-image depends on libcap2? It might be worth exploring whether there is a way to avoid that dependency.
avahi brings in libcap2 now. I suppose it's possible to make that xattr DISTRO_FEATURE spell that part out and update all of the distros. But maybe that can wait until post release?
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
Quoted 7 lines · Tom Rini
Quoted 2 lines · Phil Blundell
Which package in console-image depends on libcap2? It might be worth exploring whether there is a way to avoid that dependency.
avahi brings in libcap2 now. I suppose it's possible to make that xattr
DISTRO_FEATUREspell that part out and update all of the distros. But maybe that can wait until post release?
Sure, waiting until post release for that sounds fine to me. Though judging from the recent checkins it seems as though most of the DISTROs are declaring xattr now in any case.
Unless you have a particular objection, I'm going to revert Petr Štetiar's original micro-uclibc.conf patch and just take the view of "don't do that, then" for the resulting console-image failure. If it turns out that someone actually wants console-image on micro then I guess we can apply some distro-specific hack to suppress the avahi behaviour.
p.