forked from jengelh/sssd
Add 0001-BUILD-Link-libsss_ldap_common.so-to-libsss_idmap.so.patch
OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=115
This commit is contained in:
parent
0f8c31ef53
commit
87020fc869
@ -0,0 +1,48 @@
|
||||
From 7fc27c7a3ccbb6aecb8cf4a4a5f91962028cb897 Mon Sep 17 00:00:00 2001
|
||||
From: Lukas Slebodnik <lslebodn@redhat.com>
|
||||
Date: Mon, 17 Mar 2014 09:07:56 +0100
|
||||
Subject: [PATCH] BUILD: Link libsss_ldap_common.so to libsss_idmap.so
|
||||
|
||||
Library libsss_ldap.so does not directly use functions from library
|
||||
libsss_idmap.so. It only call function sdap_idmap_init (from file sdap_idmap.c)
|
||||
which is in library libsss_ldap_common.so
|
||||
|
||||
sh-4.2$ nm -D --undefined-only /usr/lib64/sssd/libsss_ldap.so | grep idmap
|
||||
U sdap_idmap_init
|
||||
|
||||
On the other hand, libsss_ldap_common.so uses functions from libsss_idmap
|
||||
but it was not linked to libsss_idmap.so.
|
||||
|
||||
sh-4.2$ objdump -p /usr/lib64/sssd/libsss_ldap_common.so | grep idmap
|
||||
sh-4.2$ echo $?
|
||||
1
|
||||
|
||||
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
||||
Reviewed-by: Simo Sorce <simo@redhat.com>
|
||||
---
|
||||
Makefile.am | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
Index: sssd-1.11.5.1/Makefile.am
|
||||
===================================================================
|
||||
--- sssd-1.11.5.1.orig/Makefile.am
|
||||
+++ sssd-1.11.5.1/Makefile.am
|
||||
@@ -1618,6 +1618,8 @@ libsss_ldap_common_la_SOURCES = \
|
||||
src/providers/ldap/sdap_dyndns.c \
|
||||
src/providers/ldap/sdap_refresh.c \
|
||||
src/providers/ldap/sdap.c
|
||||
+libsss_ldap_common_la_LIBADD = \
|
||||
+ libsss_idmap.la
|
||||
libsss_ldap_common_la_LDFLAGS = \
|
||||
-avoid-version
|
||||
|
||||
@@ -1675,8 +1677,7 @@ libsss_ldap_la_LIBADD = \
|
||||
$(OPENLDAP_LIBS) \
|
||||
$(DHASH_LIBS) \
|
||||
$(KRB5_LIBS) \
|
||||
- libsss_ldap_common.la \
|
||||
- libsss_idmap.la
|
||||
+ libsss_ldap_common.la
|
||||
libsss_ldap_la_LDFLAGS = \
|
||||
-avoid-version \
|
||||
-module
|
@ -8,14 +8,14 @@ Samba. See Samba's byteorder.h header for an example.
|
||||
|
||||
Signed-off-by: David Disseldorp <ddiss@samba.org>
|
||||
---
|
||||
configure.ac | 7 +++++++
|
||||
configure.ac | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git configure.ac configure.ac
|
||||
index eb7e376..3ed8e69 100644
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -309,6 +309,13 @@ AM_CHECK_CMOCKA
|
||||
Index: sssd-1.11.5.1/configure.ac
|
||||
===================================================================
|
||||
--- sssd-1.11.5.1.orig/configure.ac
|
||||
+++ sssd-1.11.5.1/configure.ac
|
||||
@@ -301,6 +301,13 @@ AM_CHECK_CMOCKA
|
||||
|
||||
AM_CONDITIONAL([HAVE_DEVSHM], [test -d /dev/shm])
|
||||
|
||||
@ -29,6 +29,3 @@ index eb7e376..3ed8e69 100644
|
||||
abs_build_dir=`pwd`
|
||||
AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory])
|
||||
AC_SUBST([abs_builddir], $abs_build_dir)
|
||||
--
|
||||
1.8.4.5
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 24 14:36:43 UTC 2014 - jengelh@inai.de
|
||||
|
||||
- Redo 0001-build-detect-endianness-at-configure-time.patch to be -p1
|
||||
- Add 0001-BUILD-Link-libsss_ldap_common.so-to-libsss_idmap.so.patch
|
||||
to resolve runtime loading problems
|
||||
(http://lists.opensuse.org/opensuse-factory/2014-05/msg00181.html )
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 13 11:11:59 UTC 2014 - varkoly@suse.com
|
||||
|
||||
|
@ -31,6 +31,7 @@ Source3: baselibs.conf
|
||||
Source4: sssd.service
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Patch1: 0001-build-detect-endianness-at-configure-time.patch
|
||||
Patch2: 0001-BUILD-Link-libsss_ldap_common.so-to-libsss_idmap.so.patch
|
||||
|
||||
%define servicename sssd
|
||||
%define sssdstatedir %_localstatedir/lib/sss
|
||||
@ -286,7 +287,7 @@ Security Services Daemon (sssd).
|
||||
%prep
|
||||
%{?gpg_verify: %gpg_verify %{S:2}}
|
||||
%setup -q
|
||||
%patch1 -p0
|
||||
%patch -P 1 -P 2 -p1
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} < 1210
|
||||
|
Loading…
Reference in New Issue
Block a user