From eb3561fd749e807d58da050b39cbe396b996fe6d Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Tue, 2 Nov 2004 11:53:07 +0000 Subject: [PATCH] fix selinux patch, so that HAVE_SELINUX will not be defined on non-selinux systems (#137860) --- vim-selinux.patch | 7 ++++--- vim.spec | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/vim-selinux.patch b/vim-selinux.patch index 9c5f7bff..c657f71e 100644 --- a/vim-selinux.patch +++ b/vim-selinux.patch @@ -1,6 +1,6 @@ --- vim62/src/configure.in.selinux 2004-01-20 11:34:17.177103792 -0500 +++ vim62/src/configure.in 2004-01-20 11:34:18.507126105 -0500 -@@ -195,6 +195,20 @@ +@@ -195,6 +195,21 @@ fi @@ -12,8 +12,9 @@ + , [enable_selinux="yes"]) +if test "$enable_selinux" = "yes"; then + AC_MSG_RESULT(no) -+ AC_CHECK_LIB(selinux, is_selinux_enabled, [LIBS="$LIBS -lselinux"]) -+ AC_DEFINE(HAVE_SELINUX) ++ AC_CHECK_LIB(selinux, is_selinux_enabled, ++ [LIBS="$LIBS -lselinux" ++ AC_DEFINE(HAVE_SELINUX)]) +else + AC_MSG_RESULT(yes) +fi diff --git a/vim.spec b/vim.spec index a468d079..ebb6fa94 100644 --- a/vim.spec +++ b/vim.spec @@ -491,6 +491,10 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Tue Nov 02 2004 Karsten Hopp 6.3.030-3 +- fix selinux patch, so that HAVE_SELINUX will not be defined on + non-selinux systems (#137860) + * Tue Oct 19 2004 Karsten Hopp 6.3.030-3 - fix dependencies on vim-common (#132371)