Skip to content

xattr.h is in glibc-headers >= 2.27

Mattias Ellert requested to merge ellert/gfal2:glibc-2.27 into develop

The xattr.h header was added to glibc-headers in version 2.27. It was also removed from libattr-devel in version 2.4.48. This change also means that it was moved from attr/xattr.h to sys/xattr.h

This has already happened in Fedora rawhide where packages building against the headers in gfal2-devel is now failing, as seen here from a recent attempt to build ROOT:

In file included from /usr/include/gfal2/gfal_api.h:43,
                 from /builddir/build/BUILD/root-6.14.00/io/gfal/src/TGFALFile.cxx:51:
/usr/include/gfal2/file/gfal_file_api.h:37:10: fatal error: attr/xattr.h: No such file or directory
 #include <attr/xattr.h>
          ^~~~~~~~~~~~~~
compilation terminated.

It will soon start happening in Fedora 28 too. It already has glibc-headers 2.27, and the libattr update to 2.4.48 is currently in updates tesing.

Updating this is therefore urgent, at least for Fedora 28 anf rawhide.

Merge request reports