sys-fs/f2fs-tools: fix bug #623660 for version 1.8.0
authorAnthony G. Basile <blueness@gentoo.org>
Tue, 22 Aug 2017 04:44:47 +0000 (00:44 -0400)
committerAnthony G. Basile <blueness@gentoo.org>
Tue, 22 Aug 2017 05:05:15 +0000 (01:05 -0400)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

sys-fs/f2fs-tools/f2fs-tools-1.8.0.ebuild
sys-fs/f2fs-tools/files/f2fs-tools-1.8.0-sysmacros.patch [new file with mode: 0644]

index 11d3ad95aa05d19ef57afabcb070fcc15936f55a..fe85240c1de38818eb1d96d30455c264dcd7dd70 100644 (file)
@@ -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 (file)
index 0000000..7ca7022
--- /dev/null
@@ -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>