diff options
author | Jeremy A. Puhlman <jpuhlman@mvista.com> | 2021-11-16 13:28:29 -0500 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-12-03 14:15:13 -0800 |
commit | c40e1e84da9624b9096a463dbed3b301c01c268e (patch) | |
tree | f0f7c0ac71a08bdef3c760fa5121bde43beb5684 | |
parent | d1d0b2a6d79878c17e0fe60f04a8f744f7dd6647 (diff) | |
download | meta-security-hardknott.tar.gz |
sssd: re-package to fix QA issueshardknott
It packages all file in ${libdir} to package sssd, including the .so
symlink files. Then it causes QA issues:
| ERROR: QA Issue: sssd rdepends on dbus-dev [dev-deps]
| ERROR: QA Issue: sssd rdepends on ding-libs-dev [dev-deps]
So re-package sssd then the .so symlink files and .pc files are packaged
to sssd-dev which should be.
File ${libdir}/libsss_sudo.so is not a symlink file but packaged to
sssd-dev too. Then causes another QA issue:
| ERROR: sssd-2.5.2-r0 do_package_qa: QA Issue:
-dev package sssd-dev contains non-symlink .so '/usr/lib/libsss_sudo.so' [dev-elf]
So create a new sub-package libsss-sudo to package file libsss_sudo.so
and make sssd rdepends on it.
JP: Updated for version differences.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit e81c15f851ca5396c78c8737967ee38db0ebe0cd)
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/sssd/sssd_1.16.5.bb | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/recipes-security/sssd/sssd_1.16.5.bb b/recipes-security/sssd/sssd_1.16.5.bb index 02d0837..f13fc49 100644 --- a/recipes-security/sssd/sssd_1.16.5.bb +++ b/recipes-security/sssd/sssd_1.16.5.bb | |||
@@ -120,10 +120,17 @@ SYSTEMD_SERVICE_${PN} = " \ | |||
120 | " | 120 | " |
121 | SYSTEMD_AUTO_ENABLE = "disable" | 121 | SYSTEMD_AUTO_ENABLE = "disable" |
122 | 122 | ||
123 | FILES_${PN} += "${libdir} ${datadir} ${base_libdir}/security/pam_sss.so" | 123 | PACKAGES =+ "libsss-sudo libsss-autofs" |
124 | FILES_${PN}-dev = " ${includedir}/* ${libdir}/*la ${libdir}/*/*la" | 124 | ALLOW_EMPTY_libsss-sudo = "1" |
125 | 125 | ALLOW_EMPTY_libsss-autofs = "1" | |
126 | # The package contains symlinks that trip up insane | 126 | |
127 | INSANE_SKIP_${PN} = "dev-so" | 127 | FILES_${PN}-dev += "${libdir}/sssd/modules/lib*.so" |
128 | 128 | FILES_${PN} += "${base_libdir}/security/pam_sss*.so \ | |
129 | RDEPENDS_${PN} = "bind dbus libldb libpam" | 129 | ${datadir}/dbus-1/system-services/*.service \ |
130 | ${libdir}/krb5/* \ | ||
131 | ${libdir}/ldb/* \ | ||
132 | " | ||
133 | FILES_libsss-autofs = "${libdir}/sssd/modules/libsss_autofs.so" | ||
134 | FILES_libsss-sudo = "${libdir}/libsss_sudo.so" | ||
135 | |||
136 | RDEPENDS_${PN} = "bind dbus libldb libpam libsss-sudo libsss-autofs" | ||