Re: xattr.h wonkiness
Quoting Carlos O'Donell (carlos@systemhalted.org):
> On Fri, Feb 21, 2014 at 6:42 PM, Serge Hallyn <serge.hallyn@ubuntu.com> wrote:
> > Hi, would a simple patchl ike this to misc/sys/xattr.h be
> > acceptable? This showed up in a failure to build (of at least
> > qemu, and aiui lots of other pkgs) after merging a new libcap2
> > where sys/capability.h #included linux/xattr.h. It's being
> > worked around by patching libcap2 to #include sys/xattr.h
> > first, but presumably this will cause other breakages.
>
> Please follow the accepted practice for fixing coordination between
> userspace and Linux kernel headers.
>
> Upstream glibc and the Linux kernel have already worked out a
> mechanical solution to this problem, and we need people to work out
> the patches and post them upstream.
>
> The solution is to coordinate the conflicting headers following this template:
> https://sourceware.org/glibc/wiki/Synchronizing_Headers
Thanks for the information. I tested the two patches at
http://people.canonical.com/~serge/xattr-kernel-libc-fix/ and they
seem to do the right thing. I'll send them out if they look ok.
thanks,
-serge
Reply to: