sys-cluster/util-vserver: fix dietlibc headers patch.
authorSandino Araico Sanchez <sandino@sandino.net>
Mon, 25 Mar 2019 10:12:13 +0000 (04:12 -0600)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 25 Mar 2019 21:40:50 +0000 (22:40 +0100)
This patch replaces the conflicting glibc headers with dietlibc's.

Closes: https://bugs.gentoo.org/650578
Closes: https://github.com/gentoo/gentoo/pull/11493
Signed-off-by: Sandino Araico Sanchez <sandino@sandino.net>
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-dietlibc.patch [new file with mode: 0644]
sys-cluster/util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild

diff --git a/sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-dietlibc.patch b/sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-dietlibc.patch
new file mode 100644 (file)
index 0000000..cde8ccc
--- /dev/null
@@ -0,0 +1,23 @@
+diff -puriN util-vserver-0.30.216-pre3120.orig/lib_internal/util-cleanupmount.c util-vserver-0.30.216-pre3120/lib_internal/util-cleanupmount.c
+--- util-vserver-0.30.216-pre3120.orig/lib_internal/util-cleanupmount.c        2015-05-30 10:18:50.000000000 -0500
++++ util-vserver-0.30.216-pre3120/lib_internal/util-cleanupmount.c     2019-02-19 02:36:55.000000000 -0600
+@@ -22,7 +22,6 @@
+ #include <stdio.h>
+ #include <sys/mount.h>
+-#include <linux/fs.h>
+ #ifndef MS_REC
+ #define MS_REC                0x4000
+diff -puriN util-vserver-0.30.216-pre3120.orig/src/secure-mount.c util-vserver-0.30.216-pre3120/src/secure-mount.c
+--- util-vserver-0.30.216-pre3120.orig/src/secure-mount.c      2015-05-30 10:18:50.000000000 -0500
++++ util-vserver-0.30.216-pre3120/src/secure-mount.c   2019-02-19 02:37:17.000000000 -0600
+@@ -46,7 +46,7 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <sys/file.h>
+-#include <linux/fs.h>
++#include <limits.h>
+ #include <assert.h>
+ #include <ctype.h>
+ #include <sys/wait.h>
index d9776666cc1a240cfb51bc895fedcc2fdebbd481..89d86a3cb0abe882e780f2b657921012b437282d 100644 (file)
@@ -30,9 +30,9 @@ RDEPEND="
 
 S="${WORKDIR}/${MY_P}"
 
-PATCHES=(
-       "${FILESDIR}/${P}-vserver-init-functions.patch"
-)
+PATCHES="
+       ${FILESDIR}/${P}-vserver-init-functions.patch
+       ${FILESDIR}/${P}-dietlibc.patch "
 
 DOCS=( README ChangeLog NEWS AUTHORS THANKS util-vserver.spec )