diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2018-03-04 18:36:14 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-03-14 12:12:11 +0100 |
commit | 0c475008c36af250a2b7ae7bcd24db0ed6b1f185 (patch) | |
tree | f3ebea0ac84baf2fa127553e70d0860333937caa /app-forensics/aide/files | |
parent | sys-firmware/intel-microcode: Bump to v20180312 (diff) | |
download | gentoo-0c475008c36af250a2b7ae7bcd24db0ed6b1f185.tar.gz gentoo-0c475008c36af250a2b7ae7bcd24db0ed6b1f185.tar.bz2 gentoo-0c475008c36af250a2b7ae7bcd24db0ed6b1f185.zip |
app-forensics/aide: fix build with >=sys-apps/attr-2.4.48
Closes: https://bugs.gentoo.org/648966
Closes: https://github.com/gentoo/gentoo/pull/7356
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-forensics/aide/files')
-rw-r--r-- | app-forensics/aide/files/aide-0.16-support-attr-2.4.48.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-forensics/aide/files/aide-0.16-support-attr-2.4.48.patch b/app-forensics/aide/files/aide-0.16-support-attr-2.4.48.patch new file mode 100644 index 000000000000..8acb6e5b56b0 --- /dev/null +++ b/app-forensics/aide/files/aide-0.16-support-attr-2.4.48.patch @@ -0,0 +1,28 @@ +Fix build against attr >= 2.4.48 + +Drop obsolete attr/xattr.h include as did attr upstream in attr-2.4.48. +See http://git.savannah.nongnu.org/cgit/attr.git/commit/?id=7921157890d07858d092f4003ca4c6bae9fd2c38 + +ENOATTR definition was moved to attr/attributes.h, thus include it. +attr < 2.4.48 keeps ENOATTR definition in attr/xattr.h, so define it +manually if necessary in order to preserve backwards compatibility. + +Bug: https://bugs.gentoo.org/648966 +Upstream-bug: https://sourceforge.net/p/aide/patches/23/ + +diff --git a/include/db_config.h b/include/db_config.h +index e92fe1c..7e5ff0d 100644 +--- a/include/db_config.h ++++ b/include/db_config.h +@@ -62,7 +62,10 @@ typedef struct acl_type { + + #ifdef WITH_XATTR /* Do generic user Xattrs. */ + #include <sys/xattr.h> +-#include <attr/xattr.h> ++#include <attr/attributes.h> ++#ifndef ENOATTR ++# define ENOATTR ENODATA ++#endif + #endif + + typedef struct xattr_node |