commit:     0851f5ecbcfc8215b085210642e81ee331af8ba9
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 21 18:57:37 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Jun 21 18:57:37 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0851f5ec

sys-fs/rar2fs: fix building w/newer glibc #580852

 sys-fs/rar2fs/files/rar2fs-1.22.0-sysmacros.patch | 31 +++++++++++++++++++++++
 sys-fs/rar2fs/rar2fs-1.22.0.ebuild                |  6 +++++
 2 files changed, 37 insertions(+)

diff --git a/sys-fs/rar2fs/files/rar2fs-1.22.0-sysmacros.patch 
b/sys-fs/rar2fs/files/rar2fs-1.22.0-sysmacros.patch
new file mode 100644
index 0000000..0593409
--- /dev/null
+++ b/sys-fs/rar2fs/files/rar2fs-1.22.0-sysmacros.patch
@@ -0,0 +1,31 @@
+https://github.com/hasse69/rar2fs/pull/51
+
+From e8c477f726eb7bfd65ef33e2b080063e6f8013c0 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vap...@gentoo.org>
+Date: Tue, 21 Jun 2016 14:54:06 -0400
+Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev
+
+These funcs are defined in sys/sysmacros.h, so include the header to
+fix building with C libs that don't implicitly include via sys/types.h.
+
+Signed-off-by: Mike Frysinger <vap...@gentoo.org>
+---
+ configure.ac | 2 +-
+ rar2fs.c     | 3 +++
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+--- a/rar2fs.c
++++ b/rar2fs.c
+@@ -56,6 +56,9 @@
+ #ifdef HAVE_SYS_XATTR_H
+ # include <sys/xattr.h>
+ #endif
++#ifdef __linux__
++# include <sys/sysmacros.h>
++#endif
+ #ifdef HAVE_ICONV
+ #include <iconv.h>
+ #endif
+-- 
+2.8.2
+

diff --git a/sys-fs/rar2fs/rar2fs-1.22.0.ebuild 
b/sys-fs/rar2fs/rar2fs-1.22.0.ebuild
index ead77dd..6332e1b 100644
--- a/sys-fs/rar2fs/rar2fs-1.22.0.ebuild
+++ b/sys-fs/rar2fs/rar2fs-1.22.0.ebuild
@@ -4,6 +4,8 @@
 
 EAPI=5
 
+inherit eutils
+
 DESCRIPTION="A FUSE based filesystem that can mount one or multiple RAR 
archive(s)"
 HOMEPAGE="http://hasse69.github.io/rar2fs/ https://github.com/hasse69/rar2fs";
 SRC_URI="https://github.com/hasse69/${PN}/releases/download/v${PV}/${P}.tar.gz";
@@ -19,6 +21,10 @@ DEPEND="${RDEPEND}"
 
 DOCS="AUTHORS ChangeLog"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-1.22.0-sysmacros.patch #580852
+}
+
 src_configure() {
        export USER_CFLAGS="${CFLAGS}"
 

Reply via email to