diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2023-07-25 14:57:22 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-07-25 08:43:53 -0700 |
| commit | 34609fd7bb2e329b8ecca98526e741eb488053dc (patch) | |
| tree | 7936f08f2ece382860d21b571178b300732ac20b /meta-oe | |
| parent | 171df142f213db5e5e880733c13dbda80f63c5af (diff) | |
| download | meta-openembedded-34609fd7bb2e329b8ecca98526e741eb488053dc.tar.gz | |
wtmpdb: add new recipe
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch | 31 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb | 36 |
2 files changed, 67 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch b/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch new file mode 100644 index 0000000000..ef188e7a15 --- /dev/null +++ b/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 9840939789dec9153150e8f9ae34de4171a5c15e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Wang Mingyu <wangmy@fujitsu.com> | ||
| 3 | Date: Wed, 19 Jul 2023 07:31:32 +0000 | ||
| 4 | Subject: [PATCH] remove lto to fix link error of clang | ||
| 5 | |||
| 6 | error message: | ||
| 7 | | tests/tst-dlopen.p/tst-dlopen.c.o: file not recognized: file format not recognized | ||
| 8 | | clang-16: error: linker command failed with exit code 1 (use -v to see invocation) | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | ||
| 13 | --- | ||
| 14 | meson.build | 1 - | ||
| 15 | 1 file changed, 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/meson.build b/meson.build | ||
| 18 | index 6fe8045..166a15b 100644 | ||
| 19 | --- a/meson.build | ||
| 20 | +++ b/meson.build | ||
| 21 | @@ -28,7 +28,6 @@ add_project_arguments(['-D_GNU_SOURCE=1', | ||
| 22 | '-D_TIME_BITS=64'], language : 'c') | ||
| 23 | |||
| 24 | possible_cc_flags = [ | ||
| 25 | - '-flto=auto', | ||
| 26 | '-ffat-lto-objects', | ||
| 27 | '-fstack-protector-strong', | ||
| 28 | '-funwind-tables', | ||
| 29 | -- | ||
| 30 | 2.34.1 | ||
| 31 | |||
diff --git a/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb b/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file mode 100644 index 0000000000..cffae2d432 --- /dev/null +++ b/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | SUMMARY = "Y2038 safe version of wtmp" | ||
| 2 | HOMEPAGE = "https://github.com/thkukuk/wtmpdb" | ||
| 3 | DESCRIPTION = "last reports the login and logout times of users and when the machine got rebooted." | ||
| 4 | LICENSE = "BSD-2-Clause" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c" | ||
| 6 | SECTION = "libs" | ||
| 7 | |||
| 8 | SRCREV = "502b19a41c7a3b1b5e70969b18088683825f71f8" | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https \ | ||
| 11 | file://0001-remove-lto-to-fix-link-error-of-clang.patch \ | ||
| 12 | " | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | inherit meson pkgconfig systemd features_check | ||
| 17 | |||
| 18 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 " | ||
| 19 | REQUIRED_DISTRO_FEATURES = "pam" | ||
| 20 | |||
| 21 | SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service" | ||
| 22 | |||
| 23 | EXTRA_OEMESON = " -Dpamlibdir=${libdir}" | ||
| 24 | |||
| 25 | do_install:append () { | ||
| 26 | if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then | ||
| 27 | # Fix makefile hardcoded path assumptions for systemd (assumes $prefix) | ||
| 28 | # without usrmerge distro feature enabled | ||
| 29 | install -d `dirname ${D}${systemd_unitdir}` | ||
| 30 | mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}` | ||
| 31 | fi | ||
| 32 | } | ||
| 33 | |||
| 34 | FILES:${PN} += " ${systemd_system_unitdir} " | ||
| 35 | FILES:${PN} += " ${libdir} " | ||
| 36 | FILES:${PN} += " ${nonarch_libdir}/tmpfiles.d/* " | ||
