sys-fs/ext4magic: fix building w/newer glibc #580192
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Apr 2016 06:28:57 +0000 (02:28 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 19 Apr 2016 06:28:57 +0000 (02:28 -0400)
sys-fs/ext4magic/ext4magic-0.3.2.ebuild
sys-fs/ext4magic/files/ext4magic-0.3.2-sysmacros.patch [new file with mode: 0644]

index 3c16018f9f4f4c300572202cfe5bc9f053ccd481..a7f2b13cbfe8898ae983af10d021bbac32a976ab 100644 (file)
@@ -24,6 +24,10 @@ DEPEND="${RDEPEND}"
 
 DOCS="AUTHORS ChangeLog NEWS README TODO"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-sysmacros.patch #580192
+}
+
 src_configure() {
        # build-system incorrectly recognizes '--disable-feature' options as enabled!
        econf \
diff --git a/sys-fs/ext4magic/files/ext4magic-0.3.2-sysmacros.patch b/sys-fs/ext4magic/files/ext4magic-0.3.2-sysmacros.patch
new file mode 100644 (file)
index 0000000..954d961
--- /dev/null
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/ext4magic/tickets/4/
+https://bugs.gentoo.org/580192
+
+--- a/src/recover.c
++++ b/src/recover.c
+@@ -21,6 +21,7 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <sys/stat.h> 
++#include <sys/sysmacros.h>
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <utime.h>