Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libcap-ng for openSUSE:Factory checked in at 2024-05-23 15:34:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libcap-ng (Old) and /work/SRC/openSUSE:Factory/.libcap-ng.new.24587 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libcap-ng" Thu May 23 15:34:48 2024 rev:34 rq:1175502 version:0.8.5 Changes: -------- --- /work/SRC/openSUSE:Factory/libcap-ng/libcap-ng.changes 2024-01-11 21:04:37.093343329 +0100 +++ /work/SRC/openSUSE:Factory/.libcap-ng.new.24587/libcap-ng.changes 2024-05-23 15:35:23.275893530 +0200 @@ -1,0 +2,9 @@ +Mon May 20 17:29:35 UTC 2024 - Matej Cepl <mc...@cepl.eu> + +- Update to version 0.8.5: + * Remove python global exception handler since it's deprecated + * Make the utilities link against just built libraries + * Remove unused macro in cap-ng.h +- Remove libcap-ng.rpmlintrc, it doesn't seem to be used any more. + +------------------------------------------------------------------- Old: ---- libcap-ng-0.8.4.tar.gz libcap-ng.rpmlintrc New: ---- libcap-ng-0.8.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libcap-ng-python.spec ++++++ --- /var/tmp/diff_new_pack.3zFguQ/_old 2024-05-23 15:35:24.471936931 +0200 +++ /var/tmp/diff_new_pack.3zFguQ/_new 2024-05-23 15:35:24.475937077 +0200 @@ -17,10 +17,8 @@ %define sover 0 -%bcond_without python2 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: libcap-ng-python -Version: 0.8.4 +Version: 0.8.5 Release: 0 Summary: An alternate Linux/POSIX capabilities library License: LGPL-2.1-or-later @@ -28,12 +26,12 @@ URL: https://people.redhat.com/sgrubb/libcap-ng Source0: https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz Source1: baselibs.conf -Source99: libcap-ng.rpmlintrc -BuildRequires: %{python_module devel} +BuildRequires: fdupes BuildRequires: kernel-headers >= 2.6.11 BuildRequires: libcap-ng-devel = %{version} BuildRequires: pkgconfig BuildRequires: python-rpm-macros +BuildRequires: python3-devel BuildRequires: swig %description @@ -41,15 +39,6 @@ inspect and set Linux process and file capabilities (modeled upon a withdrawn POSIX.1e draft). -%package -n python2-capng -Summary: Python bindings for libcap-ng library -Group: Development/Libraries/Python -Requires: libcap-ng%{sover} = %{version} - -%description -n python2-capng -The libcap-ng-python package contains the bindings so that libcap-ng -and can be used by Python applications. - %package -n python3-capng Summary: Python bindings for libcap-ng library Group: Development/Libraries/Python @@ -65,24 +54,16 @@ %build %configure \ --disable-static \ -%if %{with python2} - --with-python \ -%endif --with-python3 -make %{?_smp_mflags} +make %{?_smp_mflags} PYTHON="python3" %install -%if %{with python2} -%make_install -C bindings/python -%endif -%make_install -C bindings/python3 +%make_install -C bindings/python3 PYTHON="python3" find %{buildroot} -type f -name "*.la" -delete -print - -%if %{with python2} -%files -n python2-capng -%{python2_sitearch}/* -%endif +%fdupes %{buildroot}%{python3_sitearch} %files -n python3-capng -%{python3_sitearch}/* +%pycache_only %{python3_sitearch}/__pycache__/capng*.pyc +%{python3_sitearch}/_capng.so +%{python3_sitearch}/capng.py ++++++ libcap-ng.spec ++++++ --- /var/tmp/diff_new_pack.3zFguQ/_old 2024-05-23 15:35:24.555939980 +0200 +++ /var/tmp/diff_new_pack.3zFguQ/_new 2024-05-23 15:35:24.559940125 +0200 @@ -20,7 +20,7 @@ %define ambient_sover 0 Name: libcap-ng -Version: 0.8.4 +Version: 0.8.5 Release: 0 Summary: An alternate Linux/POSIX capabilities library License: LGPL-2.1-or-later @@ -28,7 +28,6 @@ URL: https://people.redhat.com/sgrubb/libcap-ng Source0: https://people.redhat.com/sgrubb/%{name}/%{name}-%{version}.tar.gz Source1: baselibs.conf -Source99: libcap-ng.rpmlintrc BuildRequires: kernel-headers >= 2.6.11 BuildRequires: pkgconfig ++++++ libcap-ng-0.8.4.tar.gz -> libcap-ng-0.8.5.tar.gz ++++++ ++++ 2036 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/ChangeLog new/libcap-ng-0.8.5/ChangeLog --- old/libcap-ng-0.8.4/ChangeLog 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/ChangeLog 2024-04-09 23:11:23.000000000 +0200 @@ -1,3 +1,8 @@ +0.8.5 +- Remove python global exception handler since it's deprecated +- Make the utilities link against just built libraries +- Remove unused macro in cap-ng.h + 0.8.4 - In capng_change_id, clear PR_SET_KEEPCAPS if returning an error - pscap: add -p option for reporting a specified process (Masatake Yamato) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/README.md new/libcap-ng-0.8.5/README.md --- old/libcap-ng-0.8.4/README.md 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/README.md 2024-04-09 23:11:23.000000000 +0200 @@ -159,6 +159,21 @@ systemd service (using ld), or create a wrapper script that then starts the daemon. +Building +-------- + +After cloning libcap-ng, run: + +``` +cd libcap-ng +./autogen.sh +./configure +make +make install +``` + +If you want python bindings, add that option to the configure command. There is also a spec file to use if you are on a rpm based distribution. To do that, run "make dist" instead of make in the above instructions. Then use the resulting tar file with the spec file. + NOTE: to distributions ---------------------- There is a "make check" target. It only works if the available kernel headers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/TODO new/libcap-ng-0.8.5/TODO --- old/libcap-ng-0.8.4/TODO 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/TODO 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -Change python detection in configure.ac to: - -import sysconfig - -sysconfig.get_config_var('INCLUDEPY') -sysconfig.get_path('purelib', vars={'base': '$PYTHON3_PREFIX'}) -sysconfig.get_path('platlib', vars={'platbase': '$PYTHON3_PREFIX'}) - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/bindings/python3/Makefile.am new/libcap-ng-0.8.5/bindings/python3/Makefile.am --- old/libcap-ng-0.8.4/bindings/python3/Makefile.am 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/bindings/python3/Makefile.am 2024-04-09 23:11:23.000000000 +0200 @@ -28,9 +28,9 @@ SWIG_FLAGS = -python SWIG_INCLUDES = ${AM_CPPFLAGS} PYTHON = $(PYTHON3) -py3exec_PYTHON = capng.py -py3exec_LTLIBRARIES = _capng.la -py3exec_SOLIBRARIES = _capng.so +pyexec_PYTHON = capng.py +pyexec_LTLIBRARIES = _capng.la +pyexec_SOLIBRARIES = _capng.so _capng_la_CFLAGS = -shared _capng_la_LDFLAGS = -module -avoid-version -Wl,-z,relro _capng_la_HEADERS: $(top_builddir)/config.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/bindings/src/capng_swig.i new/libcap-ng-0.8.5/bindings/src/capng_swig.i --- old/libcap-ng-0.8.4/bindings/src/capng_swig.i 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/bindings/src/capng_swig.i 2024-04-09 23:11:23.000000000 +0200 @@ -30,13 +30,6 @@ %varargs(16, signed capability = 0) capng_updatev; -%except(python) { - $action - if (result < 0) { - PyErr_SetFromErrno(PyExc_OSError); - return NULL; - } -} #endif %define __signed__ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/configure.ac new/libcap-ng-0.8.5/configure.ac --- old/libcap-ng-0.8.4/configure.ac 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/configure.ac 2024-04-09 23:11:23.000000000 +0200 @@ -30,7 +30,7 @@ ]) AC_REVISION($Revision: 1.3 $)dnl -AC_INIT([libcap-ng],[0.8.4]) +AC_INIT([libcap-ng],[0.8.5]) AC_PREREQ([2.50])dnl AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) @@ -181,22 +181,13 @@ else echo "Python3 bindings WILL be built" use_python3=yes - AC_PATH_PROG([PYTHON3], [python3], [no]) - if test "x$PYTHON3" == "xno" ; then - echo "The python3 program was not found in the search path. Please ensure" - echo "that it is installed and its directory is included in the search path or" - echo "pass --without-python3 to ./configure." - exit 1 - fi + AM_PATH_PYTHON([3.1],, [:]) PYTHON3_CFLAGS=`python3-config --cflags 2> /dev/null` PYTHON3_LIBS=`python3-config --libs 2> /dev/null` PYTHON3_INCLUDES=`python3-config --includes 2> /dev/null` - AC_SUBST([PYTHON3_PREFIX], ['${prefix}']) - PYTHON3_EXECDIR=`$PYTHON3 -c "import sysconfig; print(sysconfig.get_path('platlib'))"` AC_SUBST(PYTHON3_CFLAGS) AC_SUBST(PYTHON3_LIBS) AC_SUBST(PYTHON3_INCLUDES) - AC_SUBST(py3execdir, $PYTHON3_EXECDIR) fi fi AM_CONDITIONAL(USE_PYTHON3, test ${use_python3} = "yes") @@ -214,7 +205,7 @@ libcap-ng Version: $VERSION Target: $target Installation prefix: $prefix - PYTHON3_PREFIX: $PYTHON3_PREFIX + PYTHON_PREFIX: $PYTHON_PREFIX Compiler: $CC Compiler flags: `echo $CFLAGS | fmt -w 50 | sed 's,^, ,'` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/libcap-ng.spec new/libcap-ng-0.8.5/libcap-ng.spec --- old/libcap-ng-0.8.4/libcap-ng.spec 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/libcap-ng.spec 2024-04-09 23:11:23.000000000 +0200 @@ -1,6 +1,6 @@ Summary: An alternate POSIX capabilities library Name: libcap-ng -Version: 0.8.4 +Version: 0.8.5 Release: 1%{?dist} License: LGPLv2+ Group: System Environment/Libraries @@ -96,6 +96,6 @@ %attr(0644,root,root) %{_mandir}/man8/* %changelog -* Wed Dec 20 2023 Steve Grubb <sgr...@redhat.com> 0.8.4-1 +* Tue Apr 09 2024 Steve Grubb <sgr...@redhat.com> 0.8.5-1 - New upstream release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/src/cap-ng.c new/libcap-ng-0.8.5/src/cap-ng.c --- old/libcap-ng-0.8.4/src/cap-ng.c 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/src/cap-ng.c 2024-04-09 23:11:23.000000000 +0200 @@ -445,7 +445,7 @@ #ifdef HAVE_SYSCALL_H (int)syscall(__NR_gettid)); #else - (int)getpid(); + (int)getpid()); #endif f = fopen(buf, "re"); if (f) { @@ -490,7 +490,7 @@ #ifdef HAVE_SYSCALL_H (int)syscall(__NR_gettid)); #else - (int)getpid(); + (int)getpid()); #endif f = fopen(buf, "re"); if (f) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/src/cap-ng.h new/libcap-ng-0.8.5/src/cap-ng.h --- old/libcap-ng-0.8.4/src/cap-ng.h 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/src/cap-ng.h 2024-04-09 23:11:23.000000000 +0200 @@ -30,8 +30,7 @@ // The next 2 macros originate in sys/cdefs.h // gcc-analyzer notation -#ifndef __attr_dealloc -# define __attr_dealloc(dealloc, argno) +#ifndef __attr_dealloc_free # define __attr_dealloc_free #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/utils/Makefile.am new/libcap-ng-0.8.5/utils/Makefile.am --- old/libcap-ng-0.8.4/utils/Makefile.am 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/utils/Makefile.am 2024-04-09 23:11:23.000000000 +0200 @@ -25,7 +25,7 @@ AUTOMAKE_OPTIONS = no-dependencies EXTRA_DIST = $(man_MANS) AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/src -LIBS = -L${top_builddir}/src -lcap-ng +LDADD = ${top_builddir}/src/libcap-ng.la AM_CFLAGS = -W -Wall -Wshadow ${WFLAGS} -Wundef -D_GNU_SOURCE bin_PROGRAMS = pscap netcap filecap captest man_MANS = pscap.8 netcap.8 filecap.8 captest.8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/utils/netcap.c new/libcap-ng-0.8.5/utils/netcap.c --- old/libcap-ng-0.8.4/utils/netcap.c 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/utils/netcap.c 2024-04-09 23:11:23.000000000 +0200 @@ -109,9 +109,15 @@ fprintf(stderr, "Out of memory\n"); continue; } - } else + } else { text = capng_print_caps_text(CAPNG_PRINT_BUFFER, CAPNG_PERMITTED); + if (text == NULL) { + fprintf(stderr, "Out of memory doing pid %d\n", + pid); + continue; + } + } // Get the effective uid snprintf(buf, 32, "/proc/%d/status", pid); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libcap-ng-0.8.4/utils/pscap.c new/libcap-ng-0.8.5/utils/pscap.c --- old/libcap-ng-0.8.4/utils/pscap.c 2023-12-20 16:23:01.000000000 +0100 +++ new/libcap-ng-0.8.5/utils/pscap.c 2024-04-09 23:11:23.000000000 +0200 @@ -75,6 +75,7 @@ int main(int argc, char *argv[]) { + char *endptr = NULL; DIR *d; struct dirent *ent; int header = 0, show_all = 0, caps; @@ -94,11 +95,15 @@ else if (argc == 3) { if (strcmp(argv[1], "-p") == 0) { errno = 0; - target_pid = strtol(argv[2], NULL, 10); + target_pid = strtol(argv[2], &endptr, 10); if (errno) { fprintf(stderr, "Can't read pid: %s\n", argv[2]); return 1; } + if ((endptr == argv[2]) || (*endptr != '\0') || !target_pid) { + fprintf(stderr, "Invalid pid argument: %s\n", argv[2]); + return 1; + } if (target_pid == 1) show_all = 1; } else