Skip to contentSkip to conversation

lastlog2: add new recipe

PATCH In review [email protected] 2 participants 7 messages Jul 14, 2023 – Jul 18, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lastlog2: add new recipe

From: Wang Mingyu <[email protected]>

---
 .../lastlog2/lastlog2_1.1.0.bb                | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb
meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb new file +30 -0
new file mode 100644
index 0000000000..cc60a46899
@@ -0,0 +1,30 @@
+SUMMARY = "Y2038 safe version of lastlog"
+HOMEPAGE = "https://github.com/thkukuk/lastlog2"
+DESCRIPTION = "lastlog reports the last login of a given user or of all users who did ever login on a system."
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c"
+SECTION = "libs"
+
+SRCREV = "585153a577788c590370d20e40263b61238dfab3"
+
+SRC_URI = "git://github.com/thkukuk/lastlog2.git;branch=main;protocol=https"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd
+
+DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
+
+SYSTEMD_SERVICE:${PN} = "lastlog2-import.service"
+
+EXTRA_OEMESON = " -Dpamlibdir=${libdir}"
+
+do_install:append () {
+      # 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}`
+}
+
+FILES:${PN} += " ${systemd_system_unitdir} "
+FILES:${PN} += " ${libdir} "
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/1 libyang: Fix install conflict when enable multilib.

From: Wang Mingyu <[email protected]>

Error: Transaction test error:
file /usr/include/libyang/config.h conflicts between attempted installs of libyang-dev-2.1.55-r0.core2_64 and lib32-libyang-dev-2.1.55-r0.i686

The differences of config.h are as follows:
@@ -27,8 +27,8 @@
/** plugins */
#define LYPLG_SUFFIX ".so"
#define LYPLG_SUFFIX_LEN (sizeof LYPLG_SUFFIX - 1)
-#define LYPLG_TYPE_DIR "/usr/lib/libyang/types" -#define LYPLG_EXT_DIR "/usr/lib/libyang/extensions" +#define LYPLG_TYPE_DIR "/usr/lib64/libyang/types" +#define LYPLG_EXT_DIR "/usr/lib64/libyang/extensions"

---
 meta-oe/recipes-extended/libyang/libyang_2.1.55.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/libyang/libyang_2.1.55.bb +5 -1
index b1438c3b2b..bddf30bf6a 100644
@@ -16,7 +16,7 @@ SRC_URI = "git://github.com/CESNET/libyang.git;branch=master;protocol=https \
 S = "${WORKDIR}/git"
 
 # Main dependencies
-inherit cmake pkgconfig lib_package ptest
+inherit cmake pkgconfig lib_package ptest multilib_header
 DEPENDS = "libpcre2"
 DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'cmocka', '', d)}"
 
@@ -30,6 +30,10 @@ do_compile:prepend () {
     fi
 }
 
+do_install:append () {
+        oe_multilib_header  libyang/config.h
+}
+
 do_install_ptest () {
     install -d ${D}${PTEST_PATH}/tests
     cp -f ${B}/tests/utest_* ${D}${PTEST_PATH}/tests/
Signature · 1 line
2.34.1
#2 lore raw

PATCH 1/1 wtmpdb: add new recipe

In reply to [email protected]

From: Wang Mingyu <[email protected]>

---
 .../recipes-extended/wtmpdb/wtmpdb_0.7.1.bb   | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +30 -0
new file mode 100644
index 0000000000..c3b97b0630
@@ -0,0 +1,30 @@
+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"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd
+
+DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
+
+SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service"
+
+EXTRA_OEMESON = " -Dpamlibdir=${libdir}"
+
+do_install:append () {
+      # 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}`
+}
+
+FILES:${PN} += " ${systemd_system_unitdir} "
+FILES:${PN} += " ${libdir} "
Signature · 1 line
2.34.1
#3 lore raw

Re: [oe] [meta-oe] [PATCH] wtmpdb: add new recipe

fails to build with ptests

tests/tst-dlopen.p/tst-dlopen.c.o: file not recognized: file format not recognized

see - https://errors.yoctoproject.org/Errors/Details/716656/

Quoted 57 lines · wangmy

From: Wang Mingyu <[email protected]>

---
 .../recipes-extended/wtmpdb/wtmpdb_0.7.1.bb   | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +30 -1
new file mode 100644
index 0000000000..c3b97b0630
@@ -0,0 +1,30 @@
+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"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd
+
+DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
+
+SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service"
+
+EXTRA_OEMESON = " -Dpamlibdir=${libdir}"
+
+do_install:append () {
+      # 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}`
+}
+
+FILES:${PN} += " ${systemd_system_unitdir} "
+FILES:${PN} += " ${libdir} "
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103860): https://lists.openembedded.org/g/openembedded-devel/message/103860
Mute This Topic: https://lists.openembedded.org/mt/100132965/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

RE: [oe] [meta-oe] [PATCH] wtmpdb: add new recipe

Do I need to create a run-ptest to confirm the ptest? Or is there any other way to reproduce this problem?

  --
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 80 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Saturday, July 15, 2023 6:04 AM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe] [PATCH] wtmpdb: add new recipe

fails to build with ptests

tests/tst-dlopen.p/tst-dlopen.c.o: file not recognized: file format not recognized

see - https://errors.yoctoproject.org/Errors/Details/716656/

Quoted 6 lines · wangmy

From: Wang Mingyu <[email protected]>

---
 .../recipes-extended/wtmpdb/wtmpdb_0.7.1.bb   | 30

+++++++++++++++++++

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb line 3

Quoted 13 lines
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +3 -0
new file mode 100644
index 0000000000..c3b97b0630
@@ -0,0 +1,30 @@
+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."

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb line 5

Quoted 2 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +2 -0
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c"

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb

Quoted 5 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +5 -0
+SECTION = "libs"
+
+SRCREV = "502b19a41c7a3b1b5e70969b18088683825f71f8"
+
+SRC_URI =

"git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https"

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb

Quoted 6 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +6 -0
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd
+
+DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}

sqlite3 "

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb line 18

Quoted 2 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +2 -0
+
+SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service

wtmpdb-rotate.service"

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb

Quoted 5 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +5 -0
+
+EXTRA_OEMESON = " -Dpamlibdir=${libdir}"
+
+do_install:append () {
+      # Fix makefile hardcoded path assumptions for systemd (assumes

$prefix)

Quoted 20 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +6 -1
+      # without usrmerge distro feature enabled
+      install -d `dirname ${D}${systemd_unitdir}`
+      mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}` }
+
+FILES:${PN} += " ${systemd_system_unitdir} "
+FILES:${PN} += " ${libdir} "
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#103860):
https://lists.openembedded.org/g/openembedded-devel/message/103860
Mute This Topic: https://lists.openembedded.org/mt/100132965/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Re: [oe] [meta-oe] [PATCH] wtmpdb: add new recipe

Quoted 2 lines · Mingyu Wang (Fujitsu)

Do I need to create a run-ptest to confirm the ptest? Or is there any other way to reproduce this problem?

I am not sure since it failed to build so run-ptest was not used yet but it Might be good to have ptests supported

Quoted 100 lines

--
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
<https://www.google.com/maps/search/Wenzhu+Road,+Nanjing,+210012,+China?entry=gmail&source=g>
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 10 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Saturday, July 15, 2023 6:04 AM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe] [PATCH] wtmpdb: add new recipe

fails to build with ptests

tests/tst-dlopen.p/tst-dlopen.c.o: file not recognized: file format not

recognized

Quoted 14 lines

see - https://errors.yoctoproject.org/Errors/Details/716656/

Quoted 6 lines · wangmy

From: Wang Mingyu <[email protected]>

---
 .../recipes-extended/wtmpdb/wtmpdb_0.7.1.bb   | 30

+++++++++++++++++++

Quoted 3 lines
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb
Quoted 10 lines

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb line 3

Quoted 10 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +3 -0
new file mode 100644
index 0000000000..c3b97b0630
@@ -0,0 +1,30 @@
+SUMMARY = "Y2038 safe version of wtmp"
+HOMEPAGE = "https://github.com/thkukuk/wtmpdb"
+DESCRIPTION = "last reports the login and logout times of users and

when

Quoted 10 lines

the machine got rebooted."

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb line 5

Quoted 2 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +2 -0
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c"

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb

Quoted 5 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +5 -0
+SECTION = "libs"
+
+SRCREV = "502b19a41c7a3b1b5e70969b18088683825f71f8"
+
+SRC_URI =

"git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https"

Quoted 6 lines

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb

Quoted 6 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +6 -0
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd
+
+DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam',

'', d)}

Quoted 30 lines

sqlite3 "

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb line 18

Quoted 2 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +2 -0
+
+SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service

wtmpdb-rotate.service"

meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb

Quoted 5 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +5 -0
+
+EXTRA_OEMESON = " -Dpamlibdir=${libdir}"
+
+do_install:append () {
+      # Fix makefile hardcoded path assumptions for systemd (assumes

$prefix)

Quoted 20 lines
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file +6 -1
+      # without usrmerge distro feature enabled
+      install -d `dirname ${D}${systemd_unitdir}`
+      mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}` }
+
+FILES:${PN} += " ${systemd_system_unitdir} "
+FILES:${PN} += " ${libdir} "
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#103860):
https://lists.openembedded.org/g/openembedded-devel/message/103860
Mute This Topic: https://lists.openembedded.org/mt/100132965/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw
In reply to [email protected]

fails to build with ptests on

tests/tst-y2038-64bit-time_t.p/tst-y2038-64bit-time_t.c.o: file not
recognized: file format not recognized

see - https://errors.yoctoproject.org/Errors/Details/716657/

Quoted 57 lines · wangmy

From: Wang Mingyu <[email protected]>

---
 .../lastlog2/lastlog2_1.1.0.bb                | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb
meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb new file +30 -1
new file mode 100644
index 0000000000..cc60a46899
@@ -0,0 +1,30 @@
+SUMMARY = "Y2038 safe version of lastlog"
+HOMEPAGE = "https://github.com/thkukuk/lastlog2"
+DESCRIPTION = "lastlog reports the last login of a given user or of all users who did ever login on a system."
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c"
+SECTION = "libs"
+
+SRCREV = "585153a577788c590370d20e40263b61238dfab3"
+
+SRC_URI = "git://github.com/thkukuk/lastlog2.git;branch=main;protocol=https"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd
+
+DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
+
+SYSTEMD_SERVICE:${PN} = "lastlog2-import.service"
+
+EXTRA_OEMESON = " -Dpamlibdir=${libdir}"
+
+do_install:append () {
+      # 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}`
+}
+
+FILES:${PN} += " ${systemd_system_unitdir} "
+FILES:${PN} += " ${libdir} "
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#103858): https://lists.openembedded.org/g/openembedded-devel/message/103858
Mute This Topic: https://lists.openembedded.org/mt/100132957/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-