Files
buildroot/package/libcap-ng/libcap-ng.mk
Bernd Kuhls d966da3581 package/libcap-ng: bump version to 0.9.3
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:
ba2e9e0319

Added _POST_EXTRACT_HOOKS and dependency to host-pkgconf to fix
autoreconf errors.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-04-23 22:04:31 +02:00

39 lines
1.2 KiB
Makefile

################################################################################
#
# 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
# pthread support uses pthread_atfork, which is not available on nommu
ifneq ($(BR2_USE_MMU),y)
LIBCAP_NG_CONF_ENV += ac_cv_header_pthread_h=no
endif
HOST_LIBCAP_NG_CONF_ENV = ac_cv_prog_swig_found=no
HOST_LIBCAP_NG_CONF_OPTS = --without-python3
$(eval $(autotools-package))
$(eval $(host-autotools-package))