mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-15 06:10:02 +00:00
a090cd3e0e
wtmpdb installs a PAM plugin in "${base_libdir}/security/pam_wtmpdb.so".
This path is not in default FILES.
Add this path to FILES:${PN} to fix this error:
ERROR: wtmpdb-0.11.0-r0 do_package: QA Issue: wtmpdb: Files/directories were installed but not shipped in any package:
/lib/security/pam_wtmpdb.so
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
wtmpdb: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: wtmpdb-0.11.0-r0 do_package: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: .../poky/build-master/tmp/work/core2-64-poky-linux/wtmpdb/0.11.0/temp/log.do_package.939726
ERROR: Task (.../poky/meta-openembedded/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.11.0.bb:do_package) failed with exit code '1'
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
37 lines
1.4 KiB
BlitzBasic
37 lines
1.4 KiB
BlitzBasic
SUMMARY = "Y2038 safe version of wtmp"
|
|
HOMEPAGE = "https://github.com/thkukuk/wtmpdb"
|
|
DESCRIPTION = "last reports the login and logout times of users and when the machine got rebooted."
|
|
LICENSE = "BSD-2-Clause"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c"
|
|
SECTION = "libs"
|
|
|
|
SRCREV = "493e9704dbc50f141d5fbd41c823311e79d7e8d3"
|
|
|
|
SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https \
|
|
file://0001-include-libgen.h-for-basename.patch"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit meson pkgconfig systemd features_check
|
|
|
|
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
|
|
REQUIRED_DISTRO_FEATURES = "pam"
|
|
|
|
SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service"
|
|
|
|
EXTRA_OEMESON = " -Dpamlibdir=${base_libdir}/security"
|
|
|
|
do_install:append () {
|
|
if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then
|
|
# Fix makefile hardcoded path assumptions for systemd (assumes $prefix)
|
|
# without usrmerge distro feature enabled
|
|
install -d `dirname ${D}${systemd_unitdir}`
|
|
mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}`
|
|
fi
|
|
}
|
|
|
|
FILES:${PN} += " ${systemd_system_unitdir} "
|
|
FILES:${PN} += " ${libdir} "
|
|
FILES:${PN} += " ${nonarch_libdir}/tmpfiles.d/* "
|
|
FILES:${PN} += " ${base_libdir}/security/*.so "
|