diff mbox series

kea: fix installation umask to 0022 of meson.

Message ID 20251015081156.11738-1-liuyd.fnst@fujitsu.com
State New
Headers show
Series kea: fix installation umask to 0022 of meson. | expand

Commit Message

Liu Yiding Oct. 15, 2025, 8:11 a.m. UTC
The default installation umask of 0027 for Kea-built artifacts, particularly for directories like /usr/lib, results in restrictive permissions (0750, drwxr-x---).This deviates from the common Linux and Yocto standard of 0755 (drwxr-xr-x) for shared library directories.

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

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
 ...n-Correct-installation-umask-to-0022.patch | 34 +++++++++++++++++++
 meta/recipes-connectivity/kea/kea_3.0.1.bb    |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-connectivity/kea/files/0001-meson-Correct-installation-umask-to-0022.patch
diff mbox series

Patch

diff --git a/meta/recipes-connectivity/kea/files/0001-meson-Correct-installation-umask-to-0022.patch b/meta/recipes-connectivity/kea/files/0001-meson-Correct-installation-umask-to-0022.patch
new file mode 100644
index 0000000000..0d68c5823f
--- /dev/null
+++ b/meta/recipes-connectivity/kea/files/0001-meson-Correct-installation-umask-to-0022.patch
@@ -0,0 +1,34 @@ 
+From 4cf8b90e89fd4834afc9710ae98d6541def066d0 Mon Sep 17 00:00:00 2001
+From: Liu Yiding <liuyd.fnst@fujitsu.com>
+Date: Wed, 15 Oct 2025 07:04:59 +0000
+Subject: [PATCH] meson: Correct installation umask to 0022.
+
+The default installation umask of 0027 for Kea-built artifacts, particularly for directories like /usr/lib, results in restrictive permissions (0750, drwxr-x---).This deviates from the common Linux and Yocto standard of 0755 (drwxr-xr-x) for shared library directories.
+
+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
+
+Upstream-Status: Submitted https://gitlab.isc.org/isc-projects/kea/-/issues/4171
+Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index f1016e2..af7b864 100644
+--- a/meson.build
++++ b/meson.build
+@@ -26,7 +26,7 @@ project(
+         'b_lundef=false',  # required for clang++ when used with sanitizers and for BSD ld when linking with extern char **environ.
+         'b_pch=false',
+         'b_pie=true',
+-        'install_umask=0027',
++        'install_umask=0022',
+         'warning_level=2',
+     ],
+ )
+-- 
+2.43.0
+
diff --git a/meta/recipes-connectivity/kea/kea_3.0.1.bb b/meta/recipes-connectivity/kea/kea_3.0.1.bb
index cc34c05093..2d64917e51 100644
--- a/meta/recipes-connectivity/kea/kea_3.0.1.bb
+++ b/meta/recipes-connectivity/kea/kea_3.0.1.bb
@@ -21,6 +21,7 @@  SRC_URI = "http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.xz \
            file://0001-meson-use-a-runtime-safe-interpreter-string.patch \
            file://0001-mk_cfgrpt.sh-strip-prefixes.patch \
            file://0001-d2-dhcp-46-radius-dhcpsrv-Avoid-Boost-lexical_cast-o.patch \
+           file://0001-meson-Correct-installation-umask-to-0022.patch \
            "
 SRC_URI[sha256sum] = "ec84fec4bb7f6b9d15a82e755a571e9348eb4d6fbc62bb3f6f1296cd7a24c566"