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>
--- /dev/null
+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>
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 )