From 8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 27 Feb 2010 14:05:10 +0000 Subject: Convert to source format 3.0 (quilt). --- debian/patches/selinux-autoconf.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 debian/patches/selinux-autoconf.patch (limited to 'debian/patches/selinux-autoconf.patch') diff --git a/debian/patches/selinux-autoconf.patch b/debian/patches/selinux-autoconf.patch new file mode 100644 index 000000000..934f885c8 --- /dev/null +++ b/debian/patches/selinux-autoconf.patch @@ -0,0 +1,33 @@ +Index: b/configure +=================================================================== +--- a/configure ++++ b/configure +@@ -28011,6 +28011,8 @@ + $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } + if test $ac_cv_lib_selinux_setexeccon = yes; then + LIBSELINUX="-lselinux" ++ LIBS="$LIBS -lselinux" ++ + else + { { $as_echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 + $as_echo "$as_me: error: SELinux support requires libselinux library" >&2;} +Index: b/configure.ac +=================================================================== +--- a/configure.ac ++++ b/configure.ac +@@ -3422,9 +3422,12 @@ + AC_DEFINE(WITH_SELINUX,1,[Define if you want SELinux support.]) + SELINUX_MSG="yes" + AC_CHECK_HEADER([selinux/selinux.h], , +- AC_MSG_ERROR(SELinux support requires selinux.h header)) +- AC_CHECK_LIB(selinux, setexeccon, [ LIBSELINUX="-lselinux" ], +- AC_MSG_ERROR(SELinux support requires libselinux library)) ++ AC_MSG_ERROR(SELinux support requires selinux.h header)) ++ AC_CHECK_LIB(selinux, setexeccon, ++ [ LIBSELINUX="-lselinux" ++ LIBS="$LIBS -lselinux" ++ ], ++ AC_MSG_ERROR(SELinux support requires libselinux library)) + SSHDLIBS="$SSHDLIBS $LIBSELINUX" + AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level) + LIBS="$save_LIBS" -- cgit v1.2.3