Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-apps/policycoreutils/files/, sys-apps/policycoreutils/
Date: Mon, 13 Nov 2017 09:46:41
Message-Id: 1510566283.3330500670e7fb63e7fb79c2cb1571e77975d993.blueness@gentoo
1 commit: 3330500670e7fb63e7fb79c2cb1571e77975d993
2 Author: Luis Ressel <aranea <AT> aixah <DOT> de>
3 AuthorDate: Mon Nov 13 06:45:32 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 13 09:44:43 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=33305006
7
8 sys-apps/policycoreutils: Patch for musl
9
10 .../files/policycoreutils-2.7-musl.patch | 34 ++++++++++++++++++++++
11 .../policycoreutils/policycoreutils-2.7.ebuild | 2 +-
12 2 files changed, 35 insertions(+), 1 deletion(-)
13
14 diff --git a/sys-apps/policycoreutils/files/policycoreutils-2.7-musl.patch b/sys-apps/policycoreutils/files/policycoreutils-2.7-musl.patch
15 new file mode 100644
16 index 0000000..dc12f9d
17 --- /dev/null
18 +++ b/sys-apps/policycoreutils/files/policycoreutils-2.7-musl.patch
19 @@ -0,0 +1,34 @@
20 +From fa4f156c37043b2b60a75c968074a07c2bee0575 Mon Sep 17 00:00:00 2001
21 +From: Luis Ressel <aranea@×××××.de>
22 +Date: Mon, 13 Nov 2017 07:41:42 +0100
23 +Subject: [PATCH] Musl compatibility
24 +
25 +musl doesn't implement GLOB_BRACE and GLOB_TILDE, so simply don't use
26 +them there. This only affects "setfiles -f", which I don't expect many
27 +people use, and it's undocumented anyway that it expands globs.
28 +---
29 + setfiles/restore.c | 8 ++++++++
30 + 1 file changed, 8 insertions(+)
31 +
32 +diff --git a/setfiles/restore.c b/setfiles/restore.c
33 +index 50d192a..9dea565 100644
34 +--- a/setfiles/restore.c
35 ++++ b/setfiles/restore.c
36 +@@ -6,6 +6,14 @@
37 + #include "restore.h"
38 + #include <glob.h>
39 +
40 ++#ifndef GLOB_BRACE
41 ++#define GLOB_BRACE 0
42 ++#endif
43 ++
44 ++#ifndef GLOB_TILDE
45 ++#define GLOB_TILDE 0
46 ++#endif
47 ++
48 + char **exclude_list;
49 + int exclude_count;
50 +
51 +--
52 +2.15.0
53 +
54
55 diff --git a/sys-apps/policycoreutils/policycoreutils-2.7.ebuild b/sys-apps/policycoreutils/policycoreutils-2.7.ebuild
56 index 2f74519..a75b766 100644
57 --- a/sys-apps/policycoreutils/policycoreutils-2.7.ebuild
58 +++ b/sys-apps/policycoreutils/policycoreutils-2.7.ebuild
59 @@ -41,7 +41,6 @@ LICENSE="GPL-2"
60 SLOT="0"
61
62 DEPEND=">=sys-libs/libselinux-${SELNX_VER}:=[python,${PYTHON_USEDEP}]
63 - >=sys-libs/glibc-2.4
64 >=sys-libs/libcap-1.10-r10:=
65 >=sys-libs/libsemanage-${SEMNG_VER}:=[python,${PYTHON_USEDEP}]
66 sys-libs/libcap-ng:=
67 @@ -84,6 +83,7 @@ src_prepare() {
68 if [[ ${PV} != 9999 ]] ; then
69 # If needed for live ebuilds please use /etc/portage/patches
70 eapply "${FILESDIR}/policycoreutils-2.7-0001-newrole-not-suid.patch"
71 + eapply "${FILESDIR}/${P}-musl.patch"
72 fi
73
74 # rlpkg is more useful than fixfiles