kea: Fix EXTRA_OE config to EXTRA_OEMESON and installation umask of meson
cover kea: Fix EXTRA_OE config to EXTRA_OEMESON and installation umask of meson
*** BLURB HERE ***
Liu Yiding (2):
Subject: [OE-core][PATCH] kea: fix EXTRA_OE config to EXTRA_OEMESON
Subject: [OE-core][PATCH] kea: fix installation umask to 0022 of
meson.
meta/recipes-connectivity/kea/kea_3.0.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0
PATCH 1/2 kea: fix EXTRA_OE config to EXTRA_OEMESON
After kea has been upgrade to 3.0.1,the build system changed to meson,but the config of build system is still be EXTRA_OECONF. So this commit fix it.
--- meta/recipes-connectivity/kea/kea_3.0.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-connectivity/kea/kea_3.0.1.bb +2 -1
@@ -26,7 +26,7 @@ SRC_URI[sha256sum] = "ec84fec4bb7f6b9d15a82e755a571e9348eb4d6fbc62bb3f6f1296cd7a inherit meson pkgconfig systemd update-rc.d upstream-version-is-even -EXTRA_OECONF += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled" +EXTRA_OEMESON += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled" INITSCRIPT_NAME = "kea-dhcp4-server" INITSCRIPT_PARAMS = "defaults 30"
@@ -72,6 +72,7 @@ do_install:append() { -e "s:${S}:@abs_top_srcdir_placeholder@:g" \ ${D}${sbindir}/kea-admin rm -rf ${D}${datadir}/${BPN}/meson-info + rm -rf ${D}${runtimedir} } do_install:append() {
Signature · 1 line
2.43.0
Re: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
Hi Yiding Liu,
Quoted 21 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
After kea has been upgrade to 3.0.1,the build system changed to meson,but the config of build system is still be
EXTRA_OECONF. So this commit fix it.Signed-off-by Liu Yiding <[email protected]>--- meta/recipes-connectivity/kea/kea_3.0.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/recipes-connectivity/kea/kea_3.0.1.bb +1
-1@@ -26,7 +26,7 @@ SRC_URI[sha256sum] = "ec84fec4bb7f6b9d15a82e755a571e9348eb4d6fbc62bb3f6f1296cd7a inherit meson pkgconfig systemd update-rc.d upstream-version-is-even -EXTRA_OECONF += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled" +EXTRA_OEMESON += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled" INITSCRIPT_NAME = "kea-dhcp4-server" INITSCRIPT_PARAMS = "defaults 30"
meta/recipes-connectivity/kea/kea_3.0.1.bb do_install:append() { · line 75
Quoted 4 lines
meta/recipes-connectivity/kea/kea_3.0.1.bb +1
-0@@ -72,6 +72,7 @@ do_install:append() { -e "s:${S}:@abs_top_srcdir_placeholder@:g" \ ${D}${sbindir}/kea-admin rm -rf ${D}${datadir}/${BPN}/meson-info + rm -rf ${D}${runtimedir}
This change seems unrelated to the meson build system change (maybe it isn't?). Can you explain why this is needed?
Cheers,
Quentin
回复: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
Hi Cheers
When I changed to EXTRA_OEMESON, -Drunstatedir=${runtimedir} will be enabled,and it will produce /run directory which will cause do_package QA Error as follows:
ERROR: kea-3.0.1-r0 do_package: QA Issue: kea: Files/directories were installed but not shipped in any package:
/run
/run/kea
So I remove ${runtimedir} before do_package.
Liu
________________________________
发件人: Quentin Schulz <[email protected]>
发送时间: 2025年10月21日 01:05
收件人: Liu, Yiding/刘 乙丁 <[email protected]>; [email protected] <[email protected]> 主题: Re: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Hi Yiding Liu,
Quoted 21 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
After kea has been upgrade to 3.0.1,the build system changed to meson,but the config of build system is still be
EXTRA_OECONF. So this commit fix it.Signed-off-by Liu Yiding <[email protected]>--- meta/recipes-connectivity/kea/kea_3.0.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/recipes-connectivity/kea/kea_3.0.1.bb +1
-1@@ -26,7 +26,7 @@ SRC_URI[sha256sum] = "ec84fec4bb7f6b9d15a82e755a571e9348eb4d6fbc62bb3f6f1296cd7a inherit meson pkgconfig systemd update-rc.d upstream-version-is-even -EXTRA_OECONF += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled" +EXTRA_OEMESON += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled" INITSCRIPT_NAME = "kea-dhcp4-server" INITSCRIPT_PARAMS = "defaults 30"
meta/recipes-connectivity/kea/kea_3.0.1.bb do_install:append() { · line 75
Quoted 4 lines
meta/recipes-connectivity/kea/kea_3.0.1.bb +1
-0@@ -72,6 +72,7 @@ do_install:append() { -e "s:${S}:@abs_top_srcdir_placeholder@:g" \ ${D}${sbindir}/kea-admin rm -rf ${D}${datadir}/${BPN}/meson-info + rm -rf ${D}${runtimedir}
This change seems unrelated to the meson build system change (maybe it isn't?). Can you explain why this is needed?
Cheers,
Quentin
Re: 回复: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
Hi Yiding Liu,
Quoted 9 lines · Yiding Liu (Fujitsu)
Hi Cheers
When I changed to EXTRA_OEMESON, -Drunstatedir=${runtimedir} will be enabled,and it will produce /run directory which will cause
do_packageQA Error as follows:
ERROR: kea-3.0.1-r0do_package: QA Issue: kea: Files/directories were installed but not shipped in any package:
/run
/run/keaSo I remove ${runtimedir} before
do_package.
runstatedir is "The directory for installing data files which the programs modify while they run". Looking quickly in the source code, it seems this is used mainly for control sockets or PID files. Which is confirmed by https://www.gnu.org/prep/standards/html_node/Directory-Variables.html which is pointing at by https://github.com/isc-projects/kea/blob/master/ChangeLog#L211-L217.
kea's meson explicitly generates an empty directory for this path, hinting that this is necessary for the programs to function correctly.
We have another recipe removing runtimedir which is dbus and it's removed because "Remove /run as it is created on startup".
Does kea work properly if the directory pointed at by runtimedir doesn't exist? (Note that kea's meson creates a subdirectory named "kea" in the runtimedir directory). https://kea.readthedocs.io/en/latest/arm/security.html#securing-kea-administrative-access seems to indicate that CONTROL_SOCKET_DIR/KEA_CONTROL_SOCKET_DIR is used for the control channel which is disabled by default but notes "however, many configuration examples have it enabled, as it is a very popular feature.". SO I'm wondering if we should not rather *add* runtimedir to the package if it's actually necessary?
Cheers,
Quentin
reply: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
Hi Cheers
Thanks for your answer.
Quoted 1 line
Quoted 1 line
Does kea work properly if the directory pointed at by runtimedir doesn't
exist?
I tryed to start kea-dhcp-ddns.service in runtime and the runtimedir /run/kea/ was created on startup as dbus.
root@qemux86-64:~# systemctl start kea-dhcp-ddns.service root@qemux86-64:~# ls /run/ agetty.reload dbus klogd.pid log sepermit syslogd.pid udev utmp credentials kea lock mount sshd systemd user root@qemux86-64:~# ls /run/kea/ kea-ddns-ctrl-socket kea-ddns-ctrl-socket.lock kea-dhcp-ddns.kea-dhcp-ddns.pid logger_lockfile
So I think we can remove ${runtimedir} before do_package.
________________________________
Quoted 9 lines · Yiding Liu (Fujitsu)
Hi Cheers
When I changed to EXTRA_OEMESON, -Drunstatedir=${runtimedir} will be enabled,and it will produce /run directory which will cause
do_packageQA Error as follows:
ERROR: kea-3.0.1-r0do_package: QA Issue: kea: Files/directories were installed but not shipped in any package:
/run
/run/keaSo I remove ${runtimedir} before
do_package.
runstatedir is "The directory for installing data files which the programs modify while they run". Looking quickly in the source code, it seems this is used mainly for control sockets or PID files. Which is confirmed by
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
which is pointing at by
https://github.com/isc-projects/kea/blob/master/ChangeLog#L211-L217.
kea's meson explicitly generates an empty directory for this path, hinting that this is necessary for the programs to function correctly.
We have another recipe removing runtimedir which is dbus and it's removed because "Remove /run as it is created on startup".
Does kea work properly if the directory pointed at by runtimedir doesn't exist? (Note that kea's meson creates a subdirectory named "kea" in the runtimedir directory).
https://kea.readthedocs.io/en/latest/arm/security.html#securing-kea-administrative-access
seems to indicate that CONTROL_SOCKET_DIR/KEA_CONTROL_SOCKET_DIR is used for the control channel which is disabled by default but notes "however, many configuration examples have it enabled, as it is a very popular feature.". SO I'm wondering if we should not rather *add* runtimedir to the package if it's actually necessary?
Cheers,
Quentin
Re: reply: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
Hi Yiding Liu,
Quoted 8 lines · Yiding Liu (Fujitsu)
Hi Cheers
Thanks for your answer.
Quoted 1 line
Quoted 1 line
Does kea work properly if the directory pointed at by runtimedir doesn't
exist?
I tryed to start kea-dhcp-ddns.service in runtime and the runtimedir/run/kea/was created on startup as dbus.
Quoted 9 lines
root@qemux86-64:~# systemctl start kea-dhcp-ddns.service root@qemux86-64:~# ls /run/ agetty.reload dbus klogd.pid log sepermit syslogd.pid udev utmp credentials kea lock mount sshd systemd user root@qemux86-64:~# ls /run/kea/ kea-ddns-ctrl-socket kea-ddns-ctrl-socket.lock kea-dhcp-ddns.kea-dhcp-ddns.pid logger_lockfileSo I think we can remove ${runtimedir} before
do_package.
Great! Thanks for confirming! Can you add a comment like for meta/recipes-core/dbus/dbus_1.16.2.bb?
# Remove /run as it is created on startup
What do you think?
Cheers,
Quentin
PATCH 2/2 kea: fix installation umask to 0022 of meson.
In reply to Liu YidingThe default installation umask is 0027 for Kea-built artifacts.
And it caused package conflicts as following:
Error: Transaction test error:
file /usr/lib/pkgconfig conflicts between attempted installs of kea-dev-3.0.1-r0.x86_64_v3 and btrfs-tools-dev-6.16-r0.x86_64_v3 file /usr/lib/pkgconfig conflicts between attempted installs of libgcrypt-dev-1.11.2-r0.x86_64_v3 and kea-dev-3.0.1-r0.x86_64_v3
I submitted an issue to the upstream and found upstream alreadly known this issue.
https://gitlab.isc.org/isc-projects/kea/-/issues/4171
https://gitlab.isc.org/isc-projects/kea/-/issues/3993
Then I follow the method in the SPEC file of upstream to fix this problem in Yocto.
https://gitlab.isc.org/isc-projects/kea-packaging/-/blob/master/rpm/kea.spec?ref_type=heads
meson setup build \
--buildtype release \
--install-umask 0022 \
--bindir %{_bindir} \--- meta/recipes-connectivity/kea/kea_3.0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/kea/kea_3.0.1.bb +1 -1
@@ -26,7 +26,7 @@ SRC_URI[sha256sum] = "ec84fec4bb7f6b9d15a82e755a571e9348eb4d6fbc62bb3f6f1296cd7a inherit meson pkgconfig systemd update-rc.d upstream-version-is-even -EXTRA_OEMESON += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled" +EXTRA_OEMESON += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled --install-umask=0022" INITSCRIPT_NAME = "kea-dhcp4-server" INITSCRIPT_PARAMS = "defaults 30"
Signature · 1 line
2.43.0
Re: [OE-core][PATCH 2/2] kea: fix installation umask to 0022 of meson.
Thanks, this patchset is good.
Alex
Quoted 49 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
The default installation umask is 0027 for Kea-built artifacts.
And it caused package conflicts as following:
Error: Transaction test error:
file/usr/lib/pkgconfigconflicts between attempted installs of kea-dev-3.0.1-r0.x86_64_v3 and btrfs-tools-dev-6.16-r0.x86_64_v3 file/usr/lib/pkgconfigconflicts between attempted installs of libgcrypt-dev-1.11.2-r0.x86_64_v3 and kea-dev-3.0.1-r0.x86_64_v3I submitted an issue to the upstream and found upstream alreadly known this issue.
https://gitlab.isc.org/isc-projects/kea/-/issues/4171
https://gitlab.isc.org/isc-projects/kea/-/issues/3993Then I follow the method in the SPEC file of upstream to fix this problem in Yocto.
https://gitlab.isc.org/isc-projects/kea-packaging/-/blob/master/rpm/kea.spec?ref_type=headsmeson setup build \ --buildtype release \ --install-umask 0022 \ --bindir %{_bindir} \Signed-off-by Liu Yiding <[email protected]>--- meta/recipes-connectivity/kea/kea_3.0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-connectivity/kea/kea_3.0.1.bb +1
-2@@ -26,7 +26,7 @@ SRC_URI[sha256sum] = "ec84fec4bb7f6b9d15a82e755a571e9348eb4d6fbc62bb3f6f1296cd7a inherit meson pkgconfig systemd update-rc.d upstream-version-is-even -EXTRA_OEMESON += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled" +EXTRA_OEMESON += "-Dcrypto=openssl -Drunstatedir=${runtimedir} -Dkrb5=disabled -Dnetconf=disabled --install-umask=0022" INITSCRIPT_NAME = "kea-dhcp4-server" INITSCRIPT_PARAMS = "defaults 30" --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#225092): https://lists.openembedded.org/g/openembedded-core/message/225092
Mute This Topic: https://lists.openembedded.org/mt/115848091/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-