* [Buildroot] [PATCH v2 1/1] package/libcap-ng: bump version to 0.9.3
@ 2026-04-17 7:59 Bernd Kuhls
2026-04-19 21:08 ` Julien Olivain via buildroot
0 siblings, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2026-04-17 7:59 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
https://github.com/stevegrubb/libcap-ng/blob/v0.9.3/ChangeLog
The source tarball is not distributed on the project site anymore so we
switch to the github helper and need to enable autoreconf.
Added _POST_EXTRACT_HOOKS and dependency to host-pkgconf to fix
autoreconf errors.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: fixed autoreconf (Julien)
package/libcap-ng/libcap-ng.hash | 2 +-
package/libcap-ng/libcap-ng.mk | 16 ++++++++++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/package/libcap-ng/libcap-ng.hash b/package/libcap-ng/libcap-ng.hash
index 022dd1f895..d79ef54d07 100644
--- a/package/libcap-ng/libcap-ng.hash
+++ b/package/libcap-ng/libcap-ng.hash
@@ -1,4 +1,4 @@
# Locally calculated
-sha256 3ba5294d1cbdfa98afaacfbc00b6af9ed2b83e8a21817185dfd844cc8c7ac6ff libcap-ng-0.8.5.tar.gz
+sha256 fe11ebbb55904763b3532f19069f13ec319042634620180a03bd4653d301563e libcap-ng-0.9.3.tar.gz
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
sha256 f18a0811fa0e220ccbc42f661545e77f0388631e209585ed582a1c693029c6aa COPYING.LIB
diff --git a/package/libcap-ng/libcap-ng.mk b/package/libcap-ng/libcap-ng.mk
index e544e27696..31e0ff8d64 100644
--- a/package/libcap-ng/libcap-ng.mk
+++ b/package/libcap-ng/libcap-ng.mk
@@ -4,13 +4,25 @@
#
################################################################################
-LIBCAP_NG_VERSION = 0.8.5
-LIBCAP_NG_SITE = https://people.redhat.com/sgrubb/libcap-ng
+LIBCAP_NG_VERSION = 0.9.3
+LIBCAP_NG_SITE = $(call github,stevegrubb,libcap-ng,v$(LIBCAP_NG_VERSION))
LIBCAP_NG_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (library)
LIBCAP_NG_LICENSE_FILES = COPYING COPYING.LIB
LIBCAP_NG_CPE_ID_VALID = YES
LIBCAP_NG_INSTALL_STAGING = YES
+# github tarball does not include configure
+LIBCAP_NG_AUTORECONF = YES
+# needed for autoreconf
+LIBCAP_NG_DEPENDENCIES = host-pkgconf
+HOST_LIBCAP_NG_DEPENDENCIES = host-pkgconf
+
+define LIBCAP_NG_CREATE_MISSING_FILES
+ touch $(@D)/NEWS
+endef
+LIBCAP_NG_POST_EXTRACT_HOOKS += LIBCAP_NG_CREATE_MISSING_FILES
+HOST_LIBCAP_NG_POST_EXTRACT_HOOKS += LIBCAP_NG_CREATE_MISSING_FILES
+
LIBCAP_NG_CONF_ENV = ac_cv_prog_swig_found=no
LIBCAP_NG_CONF_OPTS = --without-python3
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/libcap-ng: bump version to 0.9.3
2026-04-17 7:59 Bernd Kuhls
@ 2026-04-19 21:08 ` Julien Olivain via buildroot
0 siblings, 0 replies; 4+ messages in thread
From: Julien Olivain via buildroot @ 2026-04-19 21:08 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot, Fabrice Fontaine
Hi Bernd,
Thanks for the v2.
On 17/04/2026 09:59, Bernd Kuhls wrote:
> https://github.com/stevegrubb/libcap-ng/blob/v0.9.3/ChangeLog
>
> The source tarball is not distributed on the project site anymore so we
> switch to the github helper and need to enable autoreconf.
>
> Added _POST_EXTRACT_HOOKS and dependency to host-pkgconf to fix
> autoreconf errors.
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> v2: fixed autoreconf (Julien)
>
> package/libcap-ng/libcap-ng.hash | 2 +-
> package/libcap-ng/libcap-ng.mk | 16 ++++++++++++++--
> 2 files changed, 15 insertions(+), 3 deletions(-)
>
[...]
> diff --git a/package/libcap-ng/libcap-ng.mk
> b/package/libcap-ng/libcap-ng.mk
> index e544e27696..31e0ff8d64 100644
> --- a/package/libcap-ng/libcap-ng.mk
> +++ b/package/libcap-ng/libcap-ng.mk
> @@ -4,13 +4,25 @@
> #
>
> ################################################################################
>
> -LIBCAP_NG_VERSION = 0.8.5
> -LIBCAP_NG_SITE = https://people.redhat.com/sgrubb/libcap-ng
> +LIBCAP_NG_VERSION = 0.9.3
I still have one build failure with test-pkg:
https://gitlab.com/jolivain/buildroot/-/jobs/13989916951
It seems this new version needs a toolchain with sync4.
Could you have a look, please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/libcap-ng: bump version to 0.9.3
@ 2026-04-20 16:55 Bernd Kuhls
2026-04-23 20:06 ` Julien Olivain via buildroot
0 siblings, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2026-04-20 16:55 UTC (permalink / raw)
To: buildroot
Cc: Clayton Shotwell, Fabrice Fontaine, Giulio Benetti, Norbert Lange
https://github.com/stevegrubb/libcap-ng/blob/v0.9.3/ChangeLog
The source tarball is not distributed on the project site anymore so we
switch to the github helper and need to enable autoreconf.
Added dependency to BR2_TOOLCHAIN_HAS_SYNC_4 to fix a build error:
/home/bernd/buildroot/test-libcap/bootlin-sparc-uclibc/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/14.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
../src/.libs/libcap-ng.so: undefined reference to `__sync_bool_compare_and_swap_4'
due to this upstream commit added in version 0.9.2:
https://github.com/stevegrubb/libcap-ng/commit/ba2e9e03199541b1c07f3e925ffc5b23774bd18f
Added _POST_EXTRACT_HOOKS and dependency to host-pkgconf to fix
autoreconf errors.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: added dependency to BR2_TOOLCHAIN_HAS_SYNC_4 (Julien)
package/dbus-broker/Config.in | 2 ++
package/libcap-ng/Config.in | 2 ++
package/libcap-ng/libcap-ng.hash | 2 +-
package/libcap-ng/libcap-ng.mk | 16 ++++++++++++++--
package/linux-tools/Config.in | 2 ++
package/openvpn/Config.in | 1 +
package/policycoreutils/Config.in | 2 ++
package/util-linux/Config.in | 1 +
8 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/package/dbus-broker/Config.in b/package/dbus-broker/Config.in
index aa6584c392..634a3ee62c 100644
--- a/package/dbus-broker/Config.in
+++ b/package/dbus-broker/Config.in
@@ -3,6 +3,7 @@ config BR2_PACKAGE_DBUS_BROKER
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libcap-ng
depends on BR2_PACKAGE_SYSTEMD
select BR2_PACKAGE_EXPAT
select BR2_PACKAGE_LIBCAP_NG if BR2_PACKAGE_AUDIT
@@ -21,4 +22,5 @@ config BR2_PACKAGE_DBUS_BROKER
comment "dbusbroker needs systemd and a toolchain w/ threads"
depends on BR2_USE_MMU
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_SYSTEMD
diff --git a/package/libcap-ng/Config.in b/package/libcap-ng/Config.in
index bee66b3357..18a527ee08 100644
--- a/package/libcap-ng/Config.in
+++ b/package/libcap-ng/Config.in
@@ -1,5 +1,7 @@
config BR2_PACKAGE_LIBCAP_NG
bool "libcap-ng"
+ # uses __sync_val_compare_and_swap_4
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
help
The libcap-ng library is intended to make programming with
posix capabilities much easier than the traditional libcap
diff --git a/package/libcap-ng/libcap-ng.hash b/package/libcap-ng/libcap-ng.hash
index 022dd1f895..d79ef54d07 100644
--- a/package/libcap-ng/libcap-ng.hash
+++ b/package/libcap-ng/libcap-ng.hash
@@ -1,4 +1,4 @@
# Locally calculated
-sha256 3ba5294d1cbdfa98afaacfbc00b6af9ed2b83e8a21817185dfd844cc8c7ac6ff libcap-ng-0.8.5.tar.gz
+sha256 fe11ebbb55904763b3532f19069f13ec319042634620180a03bd4653d301563e libcap-ng-0.9.3.tar.gz
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
sha256 f18a0811fa0e220ccbc42f661545e77f0388631e209585ed582a1c693029c6aa COPYING.LIB
diff --git a/package/libcap-ng/libcap-ng.mk b/package/libcap-ng/libcap-ng.mk
index e544e27696..31e0ff8d64 100644
--- a/package/libcap-ng/libcap-ng.mk
+++ b/package/libcap-ng/libcap-ng.mk
@@ -4,13 +4,25 @@
#
################################################################################
-LIBCAP_NG_VERSION = 0.8.5
-LIBCAP_NG_SITE = https://people.redhat.com/sgrubb/libcap-ng
+LIBCAP_NG_VERSION = 0.9.3
+LIBCAP_NG_SITE = $(call github,stevegrubb,libcap-ng,v$(LIBCAP_NG_VERSION))
LIBCAP_NG_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (library)
LIBCAP_NG_LICENSE_FILES = COPYING COPYING.LIB
LIBCAP_NG_CPE_ID_VALID = YES
LIBCAP_NG_INSTALL_STAGING = YES
+# github tarball does not include configure
+LIBCAP_NG_AUTORECONF = YES
+# needed for autoreconf
+LIBCAP_NG_DEPENDENCIES = host-pkgconf
+HOST_LIBCAP_NG_DEPENDENCIES = host-pkgconf
+
+define LIBCAP_NG_CREATE_MISSING_FILES
+ touch $(@D)/NEWS
+endef
+LIBCAP_NG_POST_EXTRACT_HOOKS += LIBCAP_NG_CREATE_MISSING_FILES
+HOST_LIBCAP_NG_POST_EXTRACT_HOOKS += LIBCAP_NG_CREATE_MISSING_FILES
+
LIBCAP_NG_CONF_ENV = ac_cv_prog_swig_found=no
LIBCAP_NG_CONF_OPTS = --without-python3
diff --git a/package/linux-tools/Config.in b/package/linux-tools/Config.in
index 20131b0d9f..b9adc25ad5 100644
--- a/package/linux-tools/Config.in
+++ b/package/linux-tools/Config.in
@@ -153,6 +153,7 @@ config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS
depends on BR2_USE_MMU # bash, util-linux-schedutils
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14 # util-linux schedutils
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libcap-ng
select BR2_PACKAGE_LINUX_TOOLS
select BR2_PACKAGE_BASH # runtime
select BR2_PACKAGE_NCURSES
@@ -177,6 +178,7 @@ config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS
comment "selftests needs BR2_PACKAGE_BUSYBOX_SHOW_OTHERS and a toolchain w/ dynamic library and headers >= 3.14"
depends on BR2_USE_MMU
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS || \
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
diff --git a/package/openvpn/Config.in b/package/openvpn/Config.in
index 77afc9eaf4..e2735dae03 100644
--- a/package/openvpn/Config.in
+++ b/package/openvpn/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_OPENVPN
bool "openvpn"
depends on BR2_USE_MMU # fork()
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libcap-ng
select BR2_PACKAGE_LIBCAP_NG
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS
select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
diff --git a/package/policycoreutils/Config.in b/package/policycoreutils/Config.in
index db9eb9f6b5..7050fc3fad 100644
--- a/package/policycoreutils/Config.in
+++ b/package/policycoreutils/Config.in
@@ -1,5 +1,6 @@
comment "policycoreutils needs a toolchain w/ threads, dynamic library, gcc >= 5"
depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
@@ -9,6 +10,7 @@ config BR2_PACKAGE_POLICYCOREUTILS
depends on BR2_TOOLCHAIN_HAS_THREADS # libselinux, libsemanage, libsepol
depends on !BR2_STATIC_LIBS # libselinux, libsemanage, libsepol
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsemanage -> libselinux -> libsepol
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libcap-ng
select BR2_PACKAGE_LIBSELINUX
select BR2_PACKAGE_LIBSEMANAGE
select BR2_PACKAGE_LIBSEPOL
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index dfebaa0947..c63cec2a9c 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -395,6 +395,7 @@ comment "scheduling utilities need a toolchain w/ headers >= 3.14"
config BR2_PACKAGE_UTIL_LINUX_SETPRIV
bool "setpriv"
depends on BR2_USE_MMU # fork()
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libcap-ng
select BR2_PACKAGE_LIBCAP_NG
help
Run a program with different Linux privilege settings
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/libcap-ng: bump version to 0.9.3
2026-04-20 16:55 [Buildroot] [PATCH v2 1/1] package/libcap-ng: bump version to 0.9.3 Bernd Kuhls
@ 2026-04-23 20:06 ` Julien Olivain via buildroot
0 siblings, 0 replies; 4+ messages in thread
From: Julien Olivain via buildroot @ 2026-04-23 20:06 UTC (permalink / raw)
To: Bernd Kuhls
Cc: buildroot, Clayton Shotwell, Fabrice Fontaine, Giulio Benetti,
Norbert Lange
On 20/04/2026 18:55, Bernd Kuhls wrote:
> https://github.com/stevegrubb/libcap-ng/blob/v0.9.3/ChangeLog
>
> The source tarball is not distributed on the project site anymore so we
> switch to the github helper and need to enable autoreconf.
>
> Added dependency to BR2_TOOLCHAIN_HAS_SYNC_4 to fix a build error:
>
> /home/bernd/buildroot/test-libcap/bootlin-sparc-uclibc/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/14.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
> ../src/.libs/libcap-ng.so: undefined reference to
> `__sync_bool_compare_and_swap_4'
>
> due to this upstream commit added in version 0.9.2:
> https://github.com/stevegrubb/libcap-ng/commit/ba2e9e03199541b1c07f3e925ffc5b23774bd18f
>
> Added _POST_EXTRACT_HOOKS and dependency to host-pkgconf to fix
> autoreconf errors.
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-04-23 20:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20 16:55 [Buildroot] [PATCH v2 1/1] package/libcap-ng: bump version to 0.9.3 Bernd Kuhls
2026-04-23 20:06 ` Julien Olivain via buildroot
-- strict thread matches above, loose matches on Subject: below --
2026-04-17 7:59 Bernd Kuhls
2026-04-19 21:08 ` Julien Olivain via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox