summaryrefslogtreecommitdiff
path: root/app-admin/setools/files/setools-3.3.8-no-check-file.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/setools/files/setools-3.3.8-no-check-file.patch')
-rw-r--r--app-admin/setools/files/setools-3.3.8-no-check-file.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-admin/setools/files/setools-3.3.8-no-check-file.patch b/app-admin/setools/files/setools-3.3.8-no-check-file.patch
new file mode 100644
index 000000000000..31848e9564b8
--- /dev/null
+++ b/app-admin/setools/files/setools-3.3.8-no-check-file.patch
@@ -0,0 +1,15 @@
+there's no real need to run AC_CHECK_FILE to see if a file exists. if the
+static link fails later on, then the static lib didn't exist. this also
+breaks cross-compiling.
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -448,8 +448,6 @@
+ sepol_srcdir="")
+ if test "x${sepol_srcdir}" = "x"; then
+ sepol_srcdir=${sepol_devel_libdir}
+- AC_CHECK_FILE([${sepol_srcdir}/libsepol.a],,
+- AC_MSG_ERROR([make sure libsepol-static is installed]))
+ else
+ AC_MSG_CHECKING([for compatible sepol source tree])
+ sepol_version=${sepol_srcdir}/VERSION