diff options
author | Tycho Andersen <tycho@docker.com> | 2017-03-16 20:56:06 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-03-17 20:34:35 +0000 |
commit | ec37205a090590146c529842d6af94221f292e61 (patch) | |
tree | 2da85da27473cb22abb5e1af3f7a513f25f5249f /testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch | |
parent | 8efbb80f050bc81ad9db7e15d7f305446279d446 (diff) | |
download | aports-ec37205a090590146c529842d6af94221f292e61.tar.bz2 aports-ec37205a090590146c529842d6af94221f292e61.tar.xz |
testing/policycoreutils: initial import
Two things to note here:
* we drop restorecond because it has quite a few
additional dependencies and it's unneeded at this time
* The 0002 patch is obviously incorrect, but without it things don't
compile, and there's no quick equivalent in musl libc. This will at least
let people use some features.
Signed-off-by: Tycho Andersen <tycho@docker.com>
Diffstat (limited to 'testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch')
-rw-r--r-- | testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch b/testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch new file mode 100644 index 0000000000..37e5a8ba1a --- /dev/null +++ b/testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch @@ -0,0 +1,32 @@ +From e10015ee546c549f1eb93388b5aa9723f510bcdc Mon Sep 17 00:00:00 2001 +From: Tycho Andersen <tycho@docker.com> +Date: Tue, 14 Mar 2017 20:53:52 -0700 +Subject: [PATCH 1/2] policycoreutils: hack around GLOB_{BRACE,TILDE} + +Signed-off-by: Tycho Andersen <tycho@docker.com> +--- + setfiles/restore.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/setfiles/restore.c b/setfiles/restore.c +index 50d192a..3bc3c39 100644 +--- a/setfiles/restore.c ++++ b/setfiles/restore.c +@@ -6,6 +6,14 @@ + #include "restore.h" + #include <glob.h> + ++#ifndef GLOB_TILDE ++#define GLOB_TILDE 0 ++#endif ++ ++#ifndef GLOB_BRACE ++#define GLOB_BRACE 0 ++#endif ++ + char **exclude_list; + int exclude_count; + +-- +2.11.1 + |