diff options
| author | gael.portay+rtone@gmail.com <gael.portay+rtone@gmail.com> | 2024-10-25 10:22:38 +0200 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2024-11-24 20:19:50 -0500 |
| commit | 8221b0e5caf63263b6f36987b1ffbb4ef29f3ecb (patch) | |
| tree | f8f58fc5cd52da5da9b12ffd5b6d79a4cf15035a /dynamic-layers/networking-layer | |
| parent | db828d9556399719ba0aeb09316894bb4bf9baf9 (diff) | |
| download | meta-security-8221b0e5caf63263b6f36987b1ffbb4ef29f3ecb.tar.gz | |
sssd: fix shipping python script and modules
The project installs the python script sss_obfuscate to the /usr/sbin
directory and the modules to the /usr/lib/python3.X directory.
The recipe does not ship the python modules to the package sssd, and
thus, it raises the QA issue attached below.
This adds the python artifacts (sss_obfuscate script and module files)
to the dedicated package sssd-python.
Fixes:
NOTE: Executing Tasks
ERROR: sssd-2.9.2-r0 do_package: QA Issue: sssd: Files/directories were installed but not shipped in any package:
/usr/lib/python3.12/site-packages/pysss.so
/usr/lib/python3.12/site-packages/pyhbac.so
/usr/lib/python3.12/site-packages/pysss_murmur.so
/usr/lib/python3.12/site-packages/pysss_nss_idmap.so
/usr/lib/python3.12/site-packages/SSSDConfig
/usr/lib/python3.12/site-packages/SSSDConfig-2.9.2-py3.12.egg-info
/usr/lib/python3.12/site-packages/SSSDConfig/__init__.py
/usr/lib/python3.12/site-packages/SSSDConfig/ipachangeconf.py
/usr/lib/python3.12/site-packages/SSSDConfig/sssdoptions.py
/usr/lib/python3.12/site-packages/SSSDConfig/__pycache__
/usr/lib/python3.12/site-packages/SSSDConfig/__pycache__/__init__.cpython-312.pyc
/usr/lib/python3.12/site-packages/SSSDConfig/__pycache__/ipachangeconf.cpython-312.pyc
/usr/lib/python3.12/site-packages/SSSDConfig/__pycache__/sssdoptions.cpython-312.pyc
/usr/lib/python3.12/site-packages/SSSDConfig-2.9.2-py3.12.egg-info/dependency_links.txt
/usr/lib/python3.12/site-packages/SSSDConfig-2.9.2-py3.12.egg-info/top_level.txt
/usr/lib/python3.12/site-packages/SSSDConfig-2.9.2-py3.12.egg-info/SOURCES.txt
/usr/lib/python3.12/site-packages/SSSDConfig-2.9.2-py3.12.egg-info/PKG-INFO
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
sssd: 17 installed and not shipped files. [installed-vs-shipped]
ERROR: sssd-2.9.2-r0 do_package: Fatal QA errors were found, failing task.
Signed-off-by: Gaƫl PORTAY <gael.portay+rtone@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'dynamic-layers/networking-layer')
| -rw-r--r-- | dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb b/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb index a3b1659..e5cd4d8 100644 --- a/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb +++ b/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb | |||
| @@ -139,7 +139,7 @@ SYSTEMD_SERVICE:${PN} = " \ | |||
| 139 | " | 139 | " |
| 140 | SYSTEMD_AUTO_ENABLE = "disable" | 140 | SYSTEMD_AUTO_ENABLE = "disable" |
| 141 | 141 | ||
| 142 | PACKAGES =+ "libsss-sudo" | 142 | PACKAGES =+ "sssd-python libsss-sudo" |
| 143 | ALLOW_EMPTY:libsss-sudo = "1" | 143 | ALLOW_EMPTY:libsss-sudo = "1" |
| 144 | 144 | ||
| 145 | FILES:${PN} += "${base_libdir}/security/pam_sss*.so \ | 145 | FILES:${PN} += "${base_libdir}/security/pam_sss*.so \ |
| @@ -151,6 +151,9 @@ FILES:${PN} += "${base_libdir}/security/pam_sss*.so \ | |||
| 151 | ${PYTHON_SITEPACKAGES_DIR}/sssd \ | 151 | ${PYTHON_SITEPACKAGES_DIR}/sssd \ |
| 152 | " | 152 | " |
| 153 | 153 | ||
| 154 | FILES:${PN}-python = "${sbindir}/sss_obfuscate \ | ||
| 155 | ${PYTHON_SITEPACKAGES_DIR} \ | ||
| 156 | " | ||
| 154 | FILES:libsss-sudo = "${libdir}/libsss_sudo.so" | 157 | FILES:libsss-sudo = "${libdir}/libsss_sudo.so" |
| 155 | 158 | ||
| 156 | RDEPENDS:${PN} = "bind \ | 159 | RDEPENDS:${PN} = "bind \ |
| @@ -162,3 +165,4 @@ RDEPENDS:${PN} = "bind \ | |||
| 162 | python3-core \ | 165 | python3-core \ |
| 163 | python3-logging \ | 166 | python3-logging \ |
| 164 | " | 167 | " |
| 168 | RDEPENDS:${PN}-python = "python3-core" | ||
