Thanks, applied as 79b84cd64d3ca8b243ba7ffeac2154b47fd2495b. Michael
[sent from post-receive hook] On Fri, 23 Jan 2026 16:02:10 +0100, Christian Melki <[email protected]> wrote: > The most interesting tidbit is a new tool cap-audit. > Unfortunatly cap-audit requires clang, bpftool, libbpf, and libaudit. > I haven't had time to check it out and wire it up yet. > https://github.com/stevegrubb/libcap-ng/releases/tag/v0.9 > > Also noteworthy. Author has decided to stop delivering dist format > tarballs, hence the need for autoreconf. > > Also, one of the original source tarball URLs won't be used > more according to author. > > * Add patchset, removing SWIG now that we have to autoreconf it. > Also fix some other minor issues. > > Signed-off-by: Christian Melki <[email protected]> > Message-Id: <[email protected]> > Signed-off-by: Michael Olbrich <[email protected]> > > diff --git a/patches/libcap-ng-0.9/0001-Makefile.am-Remove-bindings-dir.patch > b/patches/libcap-ng-0.9/0001-Makefile.am-Remove-bindings-dir.patch > new file mode 100644 > index 000000000000..7d1d002b7b7b > --- /dev/null > +++ b/patches/libcap-ng-0.9/0001-Makefile.am-Remove-bindings-dir.patch > @@ -0,0 +1,65 @@ > +From: Christian Melki <[email protected]> > +Date: Thu, 15 Jan 2026 20:20:39 +0100 > +Subject: [PATCH] Makefile.am: Remove bindings dir. > + > +Author thought it would be a good idea to stop delivering libcap-ng in > non-dist format. > +So no more proper tarball releases with functioning configure scripts. > +SWIG binding was causing autoreconf errors. > + > +* Add missing files. > + > +Signed-off-by: Christian Melki <[email protected]> > +--- > + Makefile.am | 3 --- > + NEWS | 0 > + bindings/src/Makefile.am | 4 ---- > + configure.ac | 6 ------ > + 4 files changed, 13 deletions(-) > + create mode 100644 NEWS > + > +diff --git a/Makefile.am b/Makefile.am > +index 82976206de34..aec072a11e9d 100644 > +--- a/Makefile.am > ++++ b/Makefile.am > +@@ -22,9 +22,6 @@ > + # > + ACLOCAL_AMFLAGS = -I m4 > + SUBDIRS = src utils m4 docs > +-if HAVE_SWIG > +-SUBDIRS += bindings > +-endif > + EXTRA_DIST = ChangeLog AUTHORS README.md INSTALL COPYING COPYING.LIB \ > + libcap-ng.spec autogen.sh > + > +diff --git a/NEWS b/NEWS > +new file mode 100644 > +index 000000000000..e69de29bb2d1 > +diff --git a/bindings/src/Makefile.am b/bindings/src/Makefile.am > +index 301ed0fb8af5..626241c6328c 100644 > +--- a/bindings/src/Makefile.am > ++++ b/bindings/src/Makefile.am > +@@ -19,7 +19,3 @@ > + # Authors: > + # Steve Grubb <[email protected]> > + # > +- > +-EXTRA_DIST = capng_swig.i > +-SWIG_SOURCES = capng_swig.i > +-CONFIG_CLEAN_FILES = *.loT *.rej *.orig > +diff --git a/configure.ac b/configure.ac > +index 45372108b92e..ed8a1ff34282 100644 > +--- a/configure.ac > ++++ b/configure.ac > +@@ -208,12 +208,6 @@ if test x"${ac_cv_have_decl_PR_CAP_AMBIENT}" = x"no" ; > then > + fi > + AM_CONDITIONAL(BUILD_LIBDROP_AMBIENT, test > x"${ac_cv_have_decl_PR_CAP_AMBIENT}" = x"yes") > + > +-AC_CHECK_PROG(swig_found, swig, yes, no) > +-if test x"${swig_found}" = x"no" ; then > +- AC_MSG_WARN("Swig not found - python bindings will not be made") > +-fi > +-AM_CONDITIONAL(HAVE_SWIG, test x"${swig_found}" = x"yes") > +- > + withval="" > + AC_MSG_CHECKING(whether to create python3 bindings) > + AC_ARG_WITH(python3, > diff --git a/patches/libcap-ng-0.9/autogen.sh > b/patches/libcap-ng-0.9/autogen.sh > new file mode 120000 > index 000000000000..9f8a4cb7ddcb > --- /dev/null > +++ b/patches/libcap-ng-0.9/autogen.sh > @@ -0,0 +1 @@ > +../autogen.sh > \ No newline at end of file > diff --git a/patches/libcap-ng-0.9/series b/patches/libcap-ng-0.9/series > new file mode 100644 > index 000000000000..581024abe448 > --- /dev/null > +++ b/patches/libcap-ng-0.9/series > @@ -0,0 +1,4 @@ > +# generated by git-ptx-patches > +#tag:base --start-number 1 > +0001-Makefile.am-Remove-bindings-dir.patch > +# e1618b784536819902b7fd66deca77ba - git-ptx-patches magic > diff --git a/rules/libcap-ng.make b/rules/libcap-ng.make > index 2a7059b7d208..e5285aa170e3 100644 > --- a/rules/libcap-ng.make > +++ b/rules/libcap-ng.make > @@ -14,12 +14,12 @@ PACKAGES-$(PTXCONF_LIBCAP_NG) += libcap-ng > # > # Paths and names > # > -LIBCAP_NG_VERSION := 0.8.5 > -LIBCAP_NG_MD5 := 3c280d902b902f28caf3990e018fcd31 > +LIBCAP_NG_VERSION := 0.9 > +LIBCAP_NG_MD5 := abc6ba14f5b96041abe8e41c59aed7ed > LIBCAP_NG := libcap-ng-$(LIBCAP_NG_VERSION) > LIBCAP_NG_SUFFIX := tar.gz > LIBCAP_NG_URL := \ > - > https://people.redhat.com/sgrubb/libcap-ng/$(LIBCAP_NG).$(LIBCAP_NG_SUFFIX) \ > + > https://github.com/stevegrubb/libcap-ng/archive/refs/tags/v$(LIBCAP_NG_VERSION).$(LIBCAP_NG_SUFFIX) > \ > https://sources.buildroot.net/libcap-ng/$(LIBCAP_NG).$(LIBCAP_NG_SUFFIX) > LIBCAP_NG_SOURCE := $(SRCDIR)/$(LIBCAP_NG).$(LIBCAP_NG_SUFFIX) > LIBCAP_NG_DIR := $(BUILDDIR)/$(LIBCAP_NG) > @@ -34,12 +34,9 @@ LIBCAP_NG_LICENSE := LGPL-2.1-or-later AND > GPL-2.0-or-later > # > LIBCAP_NG_CONF_TOOL := autoconf > > -LIBCAP_NG_CONF_ENV := \ > - ac_cv_prog_swig_found=no > - > LIBCAP_NG_CONF_OPT := \ > $(CROSS_AUTOCONF_USR) \ > - --without-debug \ > + --disable-cap-audit \ > --without-warn \ > --without-python3 >
