sys-fs/mhddfs: Fixed build against >=sys-apps/attr-2.4.48
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 25 Apr 2019 12:45:10 +0000 (14:45 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 25 Apr 2019 12:45:44 +0000 (14:45 +0200)
Permission kindly granted by Pinkbyte

Closes: https://bugs.gentoo.org/648670
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-fs/mhddfs/files/mhddfs-0.1.39-xattr.patch [new file with mode: 0644]
sys-fs/mhddfs/mhddfs-0.1.39-r1.ebuild

diff --git a/sys-fs/mhddfs/files/mhddfs-0.1.39-xattr.patch b/sys-fs/mhddfs/files/mhddfs-0.1.39-xattr.patch
new file mode 100644 (file)
index 0000000..57a6428
--- /dev/null
@@ -0,0 +1,26 @@
+https://bugs.gentoo.org/648670
+
+Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
+
+--- mhddfs-0.1.39/src/main.c
++++ mhddfs-0.1.39/src/main.c
+@@ -34,7 +34,7 @@
+ #include <utime.h>
+ #ifndef WITHOUT_XATTR
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
+ #endif
+ #include "parse_options.h"
+--- mhddfs-0.1.39/src/tools.c
++++ mhddfs-0.1.39/src/tools.c
+@@ -32,7 +32,7 @@
+ #include <dirent.h>
+ #ifndef WITHOUT_XATTR
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
+ #endif
+ #include "tools.h"
index f161e79fa0f944f23f7c40d526d12dff888a17d9..1c4db46a0fa0f0aa1dc5e0bb1aa4779e111ebadb 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -24,6 +24,7 @@ DOCS=( ChangeLog README )
 PATCHES=(
        "${FILESDIR}/${PN}-respect-compiler-vars.patch"
        "${FILESDIR}/${P}-segfault-fix.patch"
+       "${FILESDIR}/${P}-xattr.patch"
 )
 
 src_compile() {