Skip to contentSkip to conversation

sssd: fix for ldblibdir and systemd etc

PATCH New kai 1 participant 1 message Mar 2, 2020

lore
Share & tools
lore

kai

author
#0 lore raw

PATCH 1/1 sssd: fix for ldblibdir and systemd etc

From: Kai Kang <[email protected]>

Fix sssd issue for ldblibdir, systemd, pam etc.

* fix ldblibdir which is not calculated right for cross compile
* create directory /var/log/sssd which is required by sssd daemon
* disable building python2 binding
* fix pam module path
* update systemd configure options and service files

---
 .../sssd/files/fix-ldblibdir.patch            | 25 +++++++++++
 recipes-security/sssd/files/volatiles.99_sssd |  1 +
 recipes-security/sssd/sssd_1.16.4.bb          | 43 ++++++++++++++++---
 3 files changed, 62 insertions(+), 7 deletions(-)
 create mode 100644 recipes-security/sssd/files/fix-ldblibdir.patch
 create mode 100644 recipes-security/sssd/files/volatiles.99_sssd
recipes-security/sssd/files/fix-ldblibdir.patch new file +25 -0
new file mode 100644
index 0000000..e350baf
@@ -0,0 +1,25 @@
+When calculate value of ldblibdir, it checks whether the directory of
+$ldblibdir exists. If not, it assigns ldblibdir with ${libdir}/ldb. It is not
+suitable for cross compile. Fix it that only re-assign ldblibdir when its value
+is empty.
+
+Upstream-Status: Inappropriate [cross compile specific]
+
+Signed-off-by: Kai Kang <[email protected]>
+---
+ src/external/libldb.m4 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/external/libldb.m4 b/src/external/libldb.m4
+index c400add..5e5f06d 100644
+--- a/src/external/libldb.m4
++++ b/src/external/libldb.m4
+@@ -19,7 +19,7 @@ if test x"$with_ldb_lib_dir" != x; then
+     ldblibdir=$with_ldb_lib_dir
+ else
+     ldblibdir="`$PKG_CONFIG --variable=modulesdir ldb`"
+-    if ! test -d $ldblibdir; then
++    if test -z $ldblibdir; then
+         ldblibdir="${libdir}/ldb"
+     fi
+ fi
recipes-security/sssd/files/volatiles.99_sssd new file +1 -0
new file mode 100644
index 0000000..2a82413
@@ -0,0 +1 @@
+d root root 0750 /var/log/sssd none
recipes-security/sssd/sssd_1.16.4.bb +36 -7

76 lines not on this page · raw message

Signature · 1 line
2.17.1