diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-06-21 14:57:37 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-06-21 14:57:37 -0400 |
commit | 0851f5ecbcfc8215b085210642e81ee331af8ba9 (patch) | |
tree | c879c004587e4a299724876c9bd10c986df8c47b /sys-fs | |
parent | x11-libs/intel-gpu-tools: drop old <1.12 versions (diff) | |
download | gentoo-0851f5ecbcfc8215b085210642e81ee331af8ba9.tar.gz gentoo-0851f5ecbcfc8215b085210642e81ee331af8ba9.tar.bz2 gentoo-0851f5ecbcfc8215b085210642e81ee331af8ba9.zip |
sys-fs/rar2fs: fix building w/newer glibc #580852
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/rar2fs/files/rar2fs-1.22.0-sysmacros.patch | 31 | ||||
-rw-r--r-- | sys-fs/rar2fs/rar2fs-1.22.0.ebuild | 6 |
2 files changed, 37 insertions, 0 deletions
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 <vapier@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 <vapier@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 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}" |