sys-cluster/util-vserver: fix dietlibc headers patch.

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>
This commit is contained in:
Sandino Araico Sanchez
2019-03-25 22:40:50 +01:00
committed by Patrice Clement
parent a5c63ad024
commit 7b3fe2e4f6
2 changed files with 26 additions and 3 deletions
@@ -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>
@@ -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 )