commit:     70a1df6b287648024c2b8aa7d439a6f3644c2256
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  9 23:36:29 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Mar  9 23:37:44 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70a1df6b

net-fs/smbnetfs: fix attr/xattr.h inclusion, bug #650038

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/650038
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../files/smbnetfs-0.6.1-use-proper-xattr.patch    | 25 ++++++++++++++++++++++
 net-fs/smbnetfs/smbnetfs-0.6.1.ebuild              |  2 ++
 2 files changed, 27 insertions(+)

diff --git a/net-fs/smbnetfs/files/smbnetfs-0.6.1-use-proper-xattr.patch 
b/net-fs/smbnetfs/files/smbnetfs-0.6.1-use-proper-xattr.patch
new file mode 100644
index 00000000000..925a8cf8fef
--- /dev/null
+++ b/net-fs/smbnetfs/files/smbnetfs-0.6.1-use-proper-xattr.patch
@@ -0,0 +1,25 @@
+From 398e8169ea6d3d854af0173b1e66bf13c124f901 Mon Sep 17 00:00:00 2001
+From: Mikhail Kshevetskiy <[email protected]>
+Date: Thu, 1 Feb 2018 11:55:41 +0300
+Subject: [PATCH] use proper xattr
+
+---
+ src/function.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/function.c b/src/function.c
+index 9728eae..3e88f42 100644
+--- a/src/function.c
++++ b/src/function.c
+@@ -8,7 +8,7 @@
+ #include <dirent.h>
+ #include <sys/statvfs.h>
+ #include <sys/types.h>
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
+ #include <time.h>
+ #include <pthread.h>
+ #include <libsmbclient.h>
+-- 
+2.16.2
+

diff --git a/net-fs/smbnetfs/smbnetfs-0.6.1.ebuild 
b/net-fs/smbnetfs/smbnetfs-0.6.1.ebuild
index e4515439067..e451b3cdef1 100644
--- a/net-fs/smbnetfs/smbnetfs-0.6.1.ebuild
+++ b/net-fs/smbnetfs/smbnetfs-0.6.1.ebuild
@@ -21,6 +21,8 @@ RDEPEND=">=sys-fs/fuse-2.3
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+PATCHES=("${FILESDIR}"/${P}-use-proper-xattr.patch)
+
 DISABLE_AUTOFORMATTING=yes
 DOC_CONTENTS="
 For quick usage, exec:

Reply via email to