summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-20 00:19:35 -0400
committerMike Frysinger <vapier@gentoo.org>2016-04-20 00:19:35 -0400
commitf68a6983ad59f37cb04c236730ff5dde1748af25 (patch)
tree1f48c6b7dea352e5827586f8dbe6a6adc5027004 /sys-apps
parentsys-fs/e4rat: fix build w/newer glibc #580534 (diff)
downloadgentoo-f68a6983ad59f37cb04c236730ff5dde1748af25.tar.gz
gentoo-f68a6983ad59f37cb04c236730ff5dde1748af25.tar.bz2
gentoo-f68a6983ad59f37cb04c236730ff5dde1748af25.zip
sys-apps/firejail: fix build w/newer glibc #580390
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/firejail/files/firejail-0.9.38-sysmacros.patch27
-rw-r--r--sys-apps/firejail/firejail-0.9.38.ebuild7
2 files changed, 32 insertions, 2 deletions
diff --git a/sys-apps/firejail/files/firejail-0.9.38-sysmacros.patch b/sys-apps/firejail/files/firejail-0.9.38-sysmacros.patch
new file mode 100644
index 000000000000..85830a40cacf
--- /dev/null
+++ b/sys-apps/firejail/files/firejail-0.9.38-sysmacros.patch
@@ -0,0 +1,27 @@
+From c15fc4754a05cc2b2aec4ca75f87bf3d61578843 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Wed, 20 Apr 2016 00:14:21 -0400
+Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev
+
+These funcs have been defined in sys/sysmacros.h forever, and Linux C
+libs are moving away from implicitly including it. Update the files
+to include it explicitly.
+---
+ src/firejail/fs_dev.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/firejail/fs_dev.c b/src/firejail/fs_dev.c
+index 97ee9de..2f66980 100644
+--- a/src/firejail/fs_dev.c
++++ b/src/firejail/fs_dev.c
+@@ -28,6 +28,7 @@
+ #ifndef _BSD_SOURCE
+ #define _BSD_SOURCE
+ #endif
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+
+ static void create_char_dev(const char *path, mode_t mode, int major, int minor) {
+--
+2.7.4
+
diff --git a/sys-apps/firejail/firejail-0.9.38.ebuild b/sys-apps/firejail/firejail-0.9.38.ebuild
index 526940622527..19a45f9922c1 100644
--- a/sys-apps/firejail/firejail-0.9.38.ebuild
+++ b/sys-apps/firejail/firejail-0.9.38.ebuild
@@ -4,6 +4,8 @@
EAPI=5
+inherit eutils
+
DESCRIPTION="Security sandbox for any type of processes"
HOMEPAGE="https://firejail.wordpress.com/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
@@ -13,8 +15,9 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE="+seccomp"
-DEPEND=""
-RDEPEND=""
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sysmacros.patch
+}
src_configure() {
econf $(use_enable seccomp)