commit:     029e17b98f838bdf8d1c6c1b89946db6dd63d2fe
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 19 06:28:57 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Apr 19 06:28:57 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=029e17b9

sys-fs/ext4magic: fix building w/newer glibc #580192

 sys-fs/ext4magic/ext4magic-0.3.2.ebuild                |  4 ++++
 sys-fs/ext4magic/files/ext4magic-0.3.2-sysmacros.patch | 13 +++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/sys-fs/ext4magic/ext4magic-0.3.2.ebuild 
b/sys-fs/ext4magic/ext4magic-0.3.2.ebuild
index 3c16018..a7f2b13 100644
--- a/sys-fs/ext4magic/ext4magic-0.3.2.ebuild
+++ b/sys-fs/ext4magic/ext4magic-0.3.2.ebuild
@@ -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
index 0000000..954d961
--- /dev/null
+++ b/sys-fs/ext4magic/files/ext4magic-0.3.2-sysmacros.patch
@@ -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>

Reply via email to