aports/testing/policycoreutils/0002-hack-around-GLOB-BRACE-TILDE.patch
Tycho Andersen ec37205a09 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>
2017-03-17 20:34:35 +00:00

33 lines
692 B
Diff

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