[SSSD] [PATCH] move the sudo library outside libdir

Michal Šrubař xsruba03 at stud.fit.vutbr.cz
Tue Feb 11 11:15:02 UTC 2014


Hi,

those two patches fixes https://fedorahosted.org/sssd/ticket/1983.
Sudo modul will be now installed into $libdir/sssd/modules and no longer into
$libdir but because specfile has to work everywhere we have to add
--with-sudo-lib-path=$libdir for this time. For next update to F-20 we can add
something like:
if fedora_version >= 20; then
	sudo-lib-path=$libdir/sssd/modules;
else
	sudo-lib-path=$libdir;


 From 5e94532fe5b50cdfd16ddb4e7cf5a007e0fcc58c Mon Sep 17 00:00:00 2001
From: Michal Srubar <xsruba03 at stud.fit.vutbr.cz>
Date: Tue, 11 Feb 2014 12:01:28 +0100
Subject: [PATCH] sudo modul is now installed into $libdir/sssd/modules by
  default and no longer into $libdir

https://fedorahosted.org/sssd/ticket/1983
---
  contrib/sssd.spec.in | 1 +
  src/conf_macros.m4   | 2 +-
  2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 6bc2aa2a41bf100cfadda63ad83850e4b980647f..36627c591dfe28857554182c8aebe64ff672a639 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -417,6 +417,7 @@ autoreconf -ivf
      --with-krb5-rcache-dir=%{_localstatedir}/cache/krb5rcache \
      --enable-nsslibdir=/%{_lib} \
      --enable-pammoddir=/%{_lib}/security \
+    --with-sudo-lib-path=/%{_libdir} \
      --disable-static \
      --disable-rpath \
      %{?with_ccache} \
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 4be819d4a3389dfcf89a0452aab8165c0ec216e4..597e9ec6c9b85880616bb89659bbfc09be556470 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -588,7 +588,7 @@ AC_DEFUN([WITH_SUDO_LIB_PATH],
                                 )
                  ]
                 )
-    sudolibpath="${libdir}"
+    sudolibpath="${libdir}/sssd/modules"
      if test x"$with_sudo_lib_path" != x; then
          sudolibpath=$with_sudo_lib_path
      fi
-- 
1.8.3.1




More information about the sssd-devel mailing list