commit: 2d11c53e87eb3976889ca2f3226a374d6dbdf47d
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 22 04:44:47 2017 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Aug 22 05:05:15 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d11c53e
sys-fs/f2fs-tools: fix bug #623660 for version 1.8.0
Package-Manager: Portage-2.3.6, Repoman-2.3.1
sys-fs/f2fs-tools/f2fs-tools-1.8.0.ebuild | 4 ++++
sys-fs/f2fs-tools/files/f2fs-tools-1.8.0-sysmacros.patch | 10 ++++++++++
2 files changed, 14 insertions(+)
diff --git a/sys-fs/f2fs-tools/f2fs-tools-1.8.0.ebuild
b/sys-fs/f2fs-tools/f2fs-tools-1.8.0.ebuild
index 11d3ad95aa0..fe85240c1de 100644
--- a/sys-fs/f2fs-tools/f2fs-tools-1.8.0.ebuild
+++ b/sys-fs/f2fs-tools/f2fs-tools-1.8.0.ebuild
@@ -17,6 +17,10 @@ RDEPEND="
selinux? ( sys-libs/libselinux )"
DEPEND="$RDEPEND"
+PATCHES=(
+ "${FILESDIR}"/${P}-sysmacros.patch #623660
+)
+
src_configure() {
#This is required to install to /sbin, bug #481110
econf \
diff --git a/sys-fs/f2fs-tools/files/f2fs-tools-1.8.0-sysmacros.patch
b/sys-fs/f2fs-tools/files/f2fs-tools-1.8.0-sysmacros.patch
new file mode 100644
index 00000000000..7ca70222fd5
--- /dev/null
+++ b/sys-fs/f2fs-tools/files/f2fs-tools-1.8.0-sysmacros.patch
@@ -0,0 +1,10 @@
+--- f2fs-tools-1.8.0/lib/libf2fs.c.orig 2017-07-03 03:01:53.000000000
+0600
++++ f2fs-tools-1.8.0/lib/libf2fs.c 2017-08-17 00:45:01.638979885 +0600
+@@ -16,6 +16,7 @@
+ #include <fcntl.h>
+ #include <mntent.h>
+ #include <time.h>
++#include <sys/sysmacros.h>
+ #include <sys/stat.h>
+ #include <sys/mount.h>
+ #include <sys/ioctl.h>