* [PATCH 0/2] kea: Fix EXTRA_OE config to EXTRA_OEMESON and installation umask of meson
@ 2025-10-20 2:39 Liu Yiding
2025-10-20 2:39 ` [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON Liu Yiding
2025-10-20 2:39 ` [OE-core][PATCH 2/2] kea: fix installation umask to 0022 of meson Liu Yiding
0 siblings, 2 replies; 9+ messages in thread
From: Liu Yiding @ 2025-10-20 2:39 UTC (permalink / raw)
To: openembedded-core
*** 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(-)
--
2.43.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
2025-10-20 2:39 [PATCH 0/2] kea: Fix EXTRA_OE config to EXTRA_OEMESON and installation umask of meson Liu Yiding
@ 2025-10-20 2:39 ` Liu Yiding
2025-10-20 17:05 ` Quentin Schulz
2025-10-20 2:39 ` [OE-core][PATCH 2/2] kea: fix installation umask to 0022 of meson Liu Yiding
1 sibling, 1 reply; 9+ messages in thread
From: Liu Yiding @ 2025-10-20 2:39 UTC (permalink / raw)
To: openembedded-core; +Cc: Liu Yiding
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 <liuyd.fnst@fujitsu.com>
---
meta/recipes-connectivity/kea/kea_3.0.1.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-connectivity/kea/kea_3.0.1.bb b/meta/recipes-connectivity/kea/kea_3.0.1.bb
index cc34c05093..06f1a5edc3 100644
--- a/meta/recipes-connectivity/kea/kea_3.0.1.bb
+++ b/meta/recipes-connectivity/kea/kea_3.0.1.bb
@@ -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() {
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [OE-core][PATCH 2/2] kea: fix installation umask to 0022 of meson.
2025-10-20 2:39 [PATCH 0/2] kea: Fix EXTRA_OE config to EXTRA_OEMESON and installation umask of meson Liu Yiding
2025-10-20 2:39 ` [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON Liu Yiding
@ 2025-10-20 2:39 ` Liu Yiding
2025-10-20 12:10 ` Alexander Kanavin
1 sibling, 1 reply; 9+ messages in thread
From: Liu Yiding @ 2025-10-20 2:39 UTC (permalink / raw)
To: openembedded-core; +Cc: Liu Yiding
The 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} \
Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
meta/recipes-connectivity/kea/kea_3.0.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-connectivity/kea/kea_3.0.1.bb b/meta/recipes-connectivity/kea/kea_3.0.1.bb
index 06f1a5edc3..4a6623f94a 100644
--- a/meta/recipes-connectivity/kea/kea_3.0.1.bb
+++ b/meta/recipes-connectivity/kea/kea_3.0.1.bb
@@ -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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [OE-core][PATCH 2/2] kea: fix installation umask to 0022 of meson.
2025-10-20 2:39 ` [OE-core][PATCH 2/2] kea: fix installation umask to 0022 of meson Liu Yiding
@ 2025-10-20 12:10 ` Alexander Kanavin
0 siblings, 0 replies; 9+ messages in thread
From: Alexander Kanavin @ 2025-10-20 12:10 UTC (permalink / raw)
To: liuyd.fnst; +Cc: openembedded-core
Thanks, this patchset is good.
Alex
On Mon, 20 Oct 2025 at 04:40, Yiding Liu (Fujitsu) via
lists.openembedded.org <liuyd.fnst=fujitsu.com@lists.openembedded.org>
wrote:
>
> The 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} \
>
> Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
> ---
> meta/recipes-connectivity/kea/kea_3.0.1.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/kea/kea_3.0.1.bb b/meta/recipes-connectivity/kea/kea_3.0.1.bb
> index 06f1a5edc3..4a6623f94a 100644
> --- a/meta/recipes-connectivity/kea/kea_3.0.1.bb
> +++ b/meta/recipes-connectivity/kea/kea_3.0.1.bb
> @@ -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: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
2025-10-20 2:39 ` [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON Liu Yiding
@ 2025-10-20 17:05 ` Quentin Schulz
2025-10-21 6:46 ` 回复: " Yiding Liu (Fujitsu)
0 siblings, 1 reply; 9+ messages in thread
From: Quentin Schulz @ 2025-10-20 17:05 UTC (permalink / raw)
To: liuyd.fnst, openembedded-core
Hi Yiding Liu,
On 10/20/25 4:39 AM, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
> 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 <liuyd.fnst@fujitsu.com>
> ---
> meta/recipes-connectivity/kea/kea_3.0.1.bb | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/kea/kea_3.0.1.bb b/meta/recipes-connectivity/kea/kea_3.0.1.bb
> index cc34c05093..06f1a5edc3 100644
> --- a/meta/recipes-connectivity/kea/kea_3.0.1.bb
> +++ b/meta/recipes-connectivity/kea/kea_3.0.1.bb
> @@ -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}
This change seems unrelated to the meson build system change (maybe it
isn't?). Can you explain why this is needed?
Cheers,
Quentin
^ permalink raw reply [flat|nested] 9+ messages in thread
* 回复: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
2025-10-20 17:05 ` Quentin Schulz
@ 2025-10-21 6:46 ` Yiding Liu (Fujitsu)
2025-10-21 9:43 ` Quentin Schulz
0 siblings, 1 reply; 9+ messages in thread
From: Yiding Liu (Fujitsu) @ 2025-10-21 6:46 UTC (permalink / raw)
To: Quentin Schulz, openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 2348 bytes --]
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 <quentin.schulz@cherry.de>
发送时间: 2025年10月21日 01:05
收件人: Liu, Yiding/刘 乙丁 <liuyd.fnst@fujitsu.com>; openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org>
主题: Re: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
[You don't often get email from quentin.schulz@cherry.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Hi Yiding Liu,
On 10/20/25 4:39 AM, Yiding Liu (Fujitsu) via lists.openembedded.org wrote:
> 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 <liuyd.fnst@fujitsu.com>
> ---
> meta/recipes-connectivity/kea/kea_3.0.1.bb | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/kea/kea_3.0.1.bb b/meta/recipes-connectivity/kea/kea_3.0.1.bb
> index cc34c05093..06f1a5edc3 100644
> --- a/meta/recipes-connectivity/kea/kea_3.0.1.bb
> +++ b/meta/recipes-connectivity/kea/kea_3.0.1.bb
> @@ -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}
This change seems unrelated to the meson build system change (maybe it
isn't?). Can you explain why this is needed?
Cheers,
Quentin
[-- Attachment #2: Type: text/html, Size: 4497 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 回复: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
2025-10-21 6:46 ` 回复: " Yiding Liu (Fujitsu)
@ 2025-10-21 9:43 ` Quentin Schulz
2025-10-22 5:27 ` reply: " Yiding Liu (Fujitsu)
0 siblings, 1 reply; 9+ messages in thread
From: Quentin Schulz @ 2025-10-21 9:43 UTC (permalink / raw)
To: Yiding Liu (Fujitsu), openembedded-core@lists.openembedded.org
Hi Yiding Liu,
On 10/21/25 8:46 AM, Yiding Liu (Fujitsu) wrote:
> 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.
>
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* reply: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
2025-10-21 9:43 ` Quentin Schulz
@ 2025-10-22 5:27 ` Yiding Liu (Fujitsu)
2025-10-22 9:04 ` Quentin Schulz
0 siblings, 1 reply; 9+ messages in thread
From: Yiding Liu (Fujitsu) @ 2025-10-22 5:27 UTC (permalink / raw)
To: Quentin Schulz, openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 2495 bytes --]
Hi Cheers
Thanks for your answer.
>>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.
________________________________
On 10/21/25 8:46 AM, Yiding Liu (Fujitsu) wrote:
> 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.
>
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
[-- Attachment #2: Type: text/html, Size: 5136 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: reply: [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON
2025-10-22 5:27 ` reply: " Yiding Liu (Fujitsu)
@ 2025-10-22 9:04 ` Quentin Schulz
0 siblings, 0 replies; 9+ messages in thread
From: Quentin Schulz @ 2025-10-22 9:04 UTC (permalink / raw)
To: Yiding Liu (Fujitsu), openembedded-core@lists.openembedded.org
Hi Yiding Liu,
On 10/22/25 7:27 AM, Yiding Liu (Fujitsu) wrote:
> Hi Cheers
>
> Thanks for your answer.
>
>>> 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.
>
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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-10-22 9:04 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20 2:39 [PATCH 0/2] kea: Fix EXTRA_OE config to EXTRA_OEMESON and installation umask of meson Liu Yiding
2025-10-20 2:39 ` [OE-core][PATCH 1/2] kea: fix EXTRA_OE config to EXTRA_OEMESON Liu Yiding
2025-10-20 17:05 ` Quentin Schulz
2025-10-21 6:46 ` 回复: " Yiding Liu (Fujitsu)
2025-10-21 9:43 ` Quentin Schulz
2025-10-22 5:27 ` reply: " Yiding Liu (Fujitsu)
2025-10-22 9:04 ` Quentin Schulz
2025-10-20 2:39 ` [OE-core][PATCH 2/2] kea: fix installation umask to 0022 of meson Liu Yiding
2025-10-20 12:10 ` Alexander Kanavin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox