mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
wtmpdb: add new recipe
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
|||||||
|
From 9840939789dec9153150e8f9ae34de4171a5c15e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Wang Mingyu <wangmy@fujitsu.com>
|
||||||
|
Date: Wed, 19 Jul 2023 07:31:32 +0000
|
||||||
|
Subject: [PATCH] remove lto to fix link error of clang
|
||||||
|
|
||||||
|
error message:
|
||||||
|
| tests/tst-dlopen.p/tst-dlopen.c.o: file not recognized: file format not recognized
|
||||||
|
| clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
|
||||||
|
---
|
||||||
|
meson.build | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index 6fe8045..166a15b 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -28,7 +28,6 @@ add_project_arguments(['-D_GNU_SOURCE=1',
|
||||||
|
'-D_TIME_BITS=64'], language : 'c')
|
||||||
|
|
||||||
|
possible_cc_flags = [
|
||||||
|
- '-flto=auto',
|
||||||
|
'-ffat-lto-objects',
|
||||||
|
'-fstack-protector-strong',
|
||||||
|
'-funwind-tables',
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
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 = "502b19a41c7a3b1b5e70969b18088683825f71f8"
|
||||||
|
|
||||||
|
SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https \
|
||||||
|
file://0001-remove-lto-to-fix-link-error-of-clang.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=${libdir}"
|
||||||
|
|
||||||
|
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/* "
|
||||||
Reference in New Issue
Block a user