From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 23 Jan 2026 16:04:12 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vjIho-004W3O-1n for lore@lore.pengutronix.de; Fri, 23 Jan 2026 16:04:12 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vjIhn-0004I4-Us; Fri, 23 Jan 2026 16:04:11 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vjIfr-0001B4-G3; Fri, 23 Jan 2026 16:02:11 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vjIfr-0026yI-2l; Fri, 23 Jan 2026 16:02:11 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1vjIfr-00000006bdK-0TJ7; Fri, 23 Jan 2026 16:02:11 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 23 Jan 2026 16:02:11 +0100 Message-ID: <20260123150211.1574414-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260115203224.1953721-1-christian.melki@t2data.com> References: <20260115203224.1953721-1-christian.melki@t2data.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] libcap-ng: Version bump. 0.8.5 -> 0.9 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Christian Melki Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 79b84cd64d3ca8b243ba7ffeac2154b47fd2495b. Michael [sent from post-receive hook] On Fri, 23 Jan 2026 16:02:10 +0100, Christian Melki 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 > Message-Id: <20260115203224.1953721-1-christian.melki@t2data.com> > Signed-off-by: Michael Olbrich > > 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 > +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 > +--- > + 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 > + # > +- > +-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 >