diff options
-rw-r--r-- | sys-fs/ext4magic/ext4magic-0.3.2.ebuild | 4 | ||||
-rw-r--r-- | sys-fs/ext4magic/files/ext4magic-0.3.2-sysmacros.patch | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sys-fs/ext4magic/ext4magic-0.3.2.ebuild b/sys-fs/ext4magic/ext4magic-0.3.2.ebuild index 3c16018f9f4f..a7f2b13cbfe8 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 000000000000..954d9612b5ae --- /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> |