summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/cryptsetup/files')
-rw-r--r--sys-fs/cryptsetup/files/1.1.0_rc3-static-no-selinux.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-fs/cryptsetup/files/1.1.0_rc3-static-no-selinux.patch b/sys-fs/cryptsetup/files/1.1.0_rc3-static-no-selinux.patch
new file mode 100644
index 000000000000..d64867d42352
--- /dev/null
+++ b/sys-fs/cryptsetup/files/1.1.0_rc3-static-no-selinux.patch
@@ -0,0 +1,18 @@
+diff -Naur cryptsetup-1.1.0-rc3/configure.in cryptsetup-1.1.0-rc3-areyoufuckingserious/configure.in
+--- cryptsetup-1.1.0-rc3/configure.in 2009-11-16 17:39:37.000000000 -0500
++++ cryptsetup-1.1.0-rc3-areyoufuckingserious/configure.in 2009-11-17 19:49:08.000000000 -0500
+@@ -93,9 +93,11 @@
+ saved_LIBS2=$LIBS
+ LIBS="$LIBS -static"
+ # Check if it there is still not some missing dependency like static selinux libs
+- AC_SEARCH_LIBS([dm_set_selinux_context], [devmapper],,
+- [AC_MSG_ERROR([Your system requires SElinux libraries for static compilation.])])
+- LIBS=$saved_LIBS2
++ if test "x$enable_selinux" != xno; then
++ AC_SEARCH_LIBS([dm_set_selinux_context], [devmapper],,
++ [AC_MSG_ERROR([Your system requires SElinux libraries for static compilation.])])
++ LIBS=$saved_LIBS2
++ fi
+ fi
+
+ LIBS=$saved_LIBS