Skip to contentSkip to conversation

micro-uclibc: add xattr to distro features to fix build failure of libcap2

PATCH In review Petr Štetiar 4 participants 13 messages Feb 26, 2011 – Feb 28, 2011

lore
Share & tools
lore
#0 lore raw

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
index 85ea9b3..55b4ebd 100644
@@ -12,6 +12,7 @@
 #############################################################################
 
 DISTRO_NAME = "micro-uclibc"
+DISTRO_FEATURES = "xattr"
 
 #############################################################################
 # TOOLCHAIN
conf/distro/micro.conf +1 -1
index b1f8f1e..bb417b1 100644
@@ -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
#1 lore raw

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
index bc9615b..ca4253a 100644
@@ -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
#2 lore raw

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 directory

Sent this one accidentaly twice, sorry.

-- ynezz

#3 lore raw

PATCH 2/2 minimal-uclibc: add xattr to distro features to fix build failure of libcap2

In reply to Petr Štetiar

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
index bc9615b..ca4253a 100644
@@ -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
Acked-by on v1 2/2
#4 lore raw

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 directory

Quoted 26 lines

---
 conf/distro/minimal-uclibc.conf |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
conf/distro/minimal-uclibc.conf +1 -1
index bc9615b..ca4253a 100644
@@ -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
--
1.7.0.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#5 lore raw
In reply to Petr Štetiar
Quoted 3 lines · Petr Štetiar

cap_file.c:8:23: fatal error: sys/xattr.h: No such file or directory

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
index 85ea9b3..55b4ebd 100644
@@ -12,6 +12,7 @@
  #############################################################################
 

 DISTRO_NAME = "micro-uclibc"
+DISTRO_FEATURES = "xattr"

 #############################################################################
 # TOOLCHAIN

conf/distro/micro.conf +1 -2
index b1f8f1e..bb417b1 100644
@@ -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

#6 lore raw

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 directory

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

#7 lore raw
In reply to Petr Štetiar
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.

#8 lore raw

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 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.

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

#9 lore raw
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.

#10 lore raw

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

#11 lore raw
In reply to Phil Blundell
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 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.

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
#12 lore raw
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_FEATURE spell 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.