From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Christian Melki <christian.melki@t2data.com>
Subject: Re: [ptxdist] [APPLIED] libcap-ng: Version bump. 0.8.5 -> 0.9
Date: Fri, 23 Jan 2026 16:02:11 +0100 [thread overview]
Message-ID: <20260123150211.1574414-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20260115203224.1953721-1-christian.melki@t2data.com>
Thanks, applied as 79b84cd64d3ca8b243ba7ffeac2154b47fd2495b.
Michael
[sent from post-receive hook]
On Fri, 23 Jan 2026 16:02:10 +0100, Christian Melki <christian.melki@t2data.com> 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 <christian.melki@t2data.com>
> Message-Id: <20260115203224.1953721-1-christian.melki@t2data.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> 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 <christian.melki@t2data.com>
> +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 <christian.melki@t2data.com>
> +---
> + 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 <sgrubb@redhat.com>
> + #
> +-
> +-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
>
prev parent reply other threads:[~2026-01-23 15:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 20:32 [ptxdist] [PATCH] " Christian Melki
2026-01-23 15:02 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260123150211.1574414-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=christian.melki@t2data.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox