droplet: remove obsolete attr/xattr.h include3#985
droplet: remove obsolete attr/xattr.h include3#985pstorz merged 2 commits intobareos:masterfrom bruno-at-bareos:dev/b-at-bareos/Fix_libdroplet_xattr.h_include
Conversation
pstorz
left a comment
There was a problem hiding this comment.
Unfortunately, these changes do not build on CentOS7:
[2021-11-15T10:57:33.677Z] In file included from ../../../../../core/src/droplet/libdroplet/src/utils.c:36:
[2021-11-15T10:57:33.677Z] /usr/include/sys/xattr.h:31:3: error: expected identifier before numeric constant
[2021-11-15T10:57:33.677Z] XATTR_CREATE = 1, /* set value, fail if attr already exists. */
[2021-11-15T10:57:33.677Z] ^~~~~~~~~~~~
I've seen yesterday night, I've somewhat forget how rhel7 is archeological with a libc 2.17 and a 3x kernel :-) |
bruno-at-bareos
left a comment
There was a problem hiding this comment.
Seems we are not good.
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
- Replace obsoleted attr/xattr.h (removed upstream in 2015) by sys/xattr.h Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
This PR update the way xattr.h is included in libdroplet by removing obsolete attr/xattr.h include.
see 2015 attr upstream commit https://git.savannah.nongnu.org/cgit/attr.git/commit/?id=7921157890d07858d092f4003ca4c6bae9fd2c38 and replace by sys/xattr.h
Thank you for contributing to the Bareos Project!
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
General
Source code quality
bareos-check-sources --since-mergedoes not report any problemsgit statusshould not report modifications in the source tree after building and testing