From: Mike Frysinger Date: Tue, 21 Jun 2016 18:57:37 +0000 (-0400) Subject: sys-fs/rar2fs: fix building w/newer glibc #580852 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0851f5ecbcfc8215b085210642e81ee331af8ba9;p=gentoo.git sys-fs/rar2fs: fix building w/newer glibc #580852 --- 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 000000000000..059340910089 --- /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 +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 +--- + 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 + #endif ++#ifdef __linux__ ++# include ++#endif + #ifdef HAVE_ICONV + #include + #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 ead77ddfe453..6332e1b13419 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}"