diff options
author | Kai Kang <kai.kang@windriver.com> | 2021-06-16 14:42:33 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-06-20 15:49:26 -0700 |
commit | 94aa6efec6b29288c2d211de3fb7b0c82759a8b5 (patch) | |
tree | bead27c0dd63eb54e1d16108a1803cae96a2f8b0 | |
parent | 0705f60b819bc26b46e3afc9568e350785add860 (diff) | |
download | meta-security-94aa6efec6b29288c2d211de3fb7b0c82759a8b5.tar.gz |
sssd: add fix-ldblibdir.patch back
The patch fix-ldblibdir.patch has been dropped when update sssd to
2.5.0. But it fails to start sssd without this patch. So add it back.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/sssd/files/fix-ldblibdir.patch | 25 | ||||
-rw-r--r-- | recipes-security/sssd/sssd_2.5.0.bb | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/recipes-security/sssd/files/fix-ldblibdir.patch b/recipes-security/sssd/files/fix-ldblibdir.patch new file mode 100644 index 0000000..e350baf --- /dev/null +++ b/recipes-security/sssd/files/fix-ldblibdir.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | When calculate value of ldblibdir, it checks whether the directory of | ||
2 | $ldblibdir exists. If not, it assigns ldblibdir with ${libdir}/ldb. It is not | ||
3 | suitable for cross compile. Fix it that only re-assign ldblibdir when its value | ||
4 | is empty. | ||
5 | |||
6 | Upstream-Status: Inappropriate [cross compile specific] | ||
7 | |||
8 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
9 | --- | ||
10 | src/external/libldb.m4 | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/src/external/libldb.m4 b/src/external/libldb.m4 | ||
14 | index c400add..5e5f06d 100644 | ||
15 | --- a/src/external/libldb.m4 | ||
16 | +++ b/src/external/libldb.m4 | ||
17 | @@ -19,7 +19,7 @@ if test x"$with_ldb_lib_dir" != x; then | ||
18 | ldblibdir=$with_ldb_lib_dir | ||
19 | else | ||
20 | ldblibdir="`$PKG_CONFIG --variable=modulesdir ldb`" | ||
21 | - if ! test -d $ldblibdir; then | ||
22 | + if test -z $ldblibdir; then | ||
23 | ldblibdir="${libdir}/ldb" | ||
24 | fi | ||
25 | fi | ||
diff --git a/recipes-security/sssd/sssd_2.5.0.bb b/recipes-security/sssd/sssd_2.5.0.bb index c699527..84b7b0e 100644 --- a/recipes-security/sssd/sssd_2.5.0.bb +++ b/recipes-security/sssd/sssd_2.5.0.bb | |||
@@ -21,6 +21,7 @@ SRC_URI = "https://github.com/SSSD/sssd/releases/download/2.5.0/sssd-2.5.0.tar.g | |||
21 | file://no_gen.patch \ | 21 | file://no_gen.patch \ |
22 | file://fix_gid.patch \ | 22 | file://fix_gid.patch \ |
23 | file://drop_ntpdate_chk.patch \ | 23 | file://drop_ntpdate_chk.patch \ |
24 | file://fix-ldblibdir.patch \ | ||
24 | " | 25 | " |
25 | SRC_URI[sha256sum] = "afa62d7d8d23fca3aba093abe4ec0d14e7d9346c5b28ceb7c2c624bed98caa06" | 26 | SRC_URI[sha256sum] = "afa62d7d8d23fca3aba093abe4ec0d14e7d9346c5b28ceb7c2c624bed98caa06" |
26 | 27 | ||