Source: libcap2
Version: 1:2.66-4
Severity: minor
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
User: [email protected]
Usertags: qa-doublebuild

Hi,

This package fails to build a source package after a successful build
(dpkg-buildpackage ; dpkg-buildpackage -S).

This is probably a clear violation of Debian Policy section 4.9 (clean target),
but this is filed as severity:minor for now, because a discussion on
debian-devel showed that we might want to revisit the requirement of a working
'clean' target.

More information about this class of issues, included common problems and
solutions, is available at
https://wiki.debian.org/qa.debian.org/FTBFS/SourceAfterBuild

Relevant part of the build log:
> cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env 
> -us -uc -rfakeroot -S
> --------------------------------------------------------------------------------------------------------------------
> 
> dpkg-buildpackage: info: source package libcap2
> dpkg-buildpackage: info: source version 1:2.66-4
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Christian Kastner <[email protected]>
>  dpkg-source --before-build .
>  debian/rules clean
> dh clean
>    debian/rules override_dh_auto_clean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_clean -- FORCELINKPAM=yes GOLANG=no
>       make -j8 distclean FORCELINKPAM=yes GOLANG=no
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> rm -f *~ core
> make -C libcap clean
> make[3]: Entering directory '/<<PKGBUILDDIR>>/libcap'
> rm -f *~ core
> rm -f cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o 
> libcap.so* libcap.a libcap.pc
> rm -f ../psx/psx.o libpsx.so* libpsx.a libpsx.pc
> rm -f cap_names.h cap_names.list.h _makenames _caps_output.gperf cap_test
> rm -f include/sys/psx_syscall.h
> rm -f cap_magic.o psx_magic.o empty loader.txt
> cd include/sys && rm -f *~ core
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/libcap'
> make -C pam_cap clean
> make[3]: Entering directory '/<<PKGBUILDDIR>>/pam_cap'
> rm -f *.o *.so testlink lazylink.so test_pam_cap pam_cap_linkopts *~
> rm -f LIBCAP
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/pam_cap'
> make -C tests clean
> make[3]: Entering directory '/<<PKGBUILDDIR>>/tests'
> rm -f psx_test libcap_psx_test libcap_launch_test uns_test *~
> rm -f libcap_launch_test libcap_psx_launch_test core noop
> rm -f exploit noexploit exploit.o
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
> make -C progs clean
> make[3]: Entering directory '/<<PKGBUILDDIR>>/progs'
> rm -f *~ core
> rm -f *.o getpcaps getcap setcap privileged ping hack.sh compare-cap uns_test
> rm -f capsh tcapsh* capshdoc.*.cf
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/progs'
> make -C doc clean
> make[3]: Entering directory '/<<PKGBUILDDIR>>/doc'
> rm -f *~ core
> rm -rf html
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/doc'
> CONFIRM Go package cap has right version dependency on cap/psx:
> for x in $(find . -name go.mod); do grep -F -v "module" $x | grep -F 
> "kernel.org/pub/linux/libs/security/libcap" > /dev/null || continue ; grep -F 
> "v1.2.66" $x  > /dev/null && continue ; echo "$x is not updated. Try running: 
> ./gomods.sh v1.2.66" ; exit 1 ; done
> ALL go.mod files updated
> Confirm headers export current version
> grep -F "#define LIBCAP_MAJOR 2" libcap/include/sys/capability.h
> #define LIBCAP_MAJOR 2
> grep -F "#define LIBCAP_MINOR 66" libcap/include/sys/capability.h
> #define LIBCAP_MINOR 66
> Now validate that everything is checked in to a clean tree..
> test -z "$(git status --ignored -s)"
> /bin/sh: 1: git: not found
> All good!
> make[2]: Leaving directory '/<<PKGBUILDDIR>>'
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_clean
>  dpkg-source -b .
> dpkg-source: warning: upstream signing key but no upstream tarball signature
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building libcap2 using existing ./libcap2_2.66.orig.tar.xz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: local changes detected, the modified files are:
>  libcap2-2.66/tests/libcap_launch_test.c
> dpkg-source: error: aborting due to unexpected upstream changes, see 
> /tmp/libcap2_2.66-4.diff.5NbSU1
> dpkg-source: info: Hint: make sure the version in debian/changelog matches 
> the unpacked source tree
> dpkg-source: info: you can integrate the local changes with dpkg-source 
> --commit
> dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
> 
> E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage 
> --sanitize-env -us -uc -rfakeroot -S' failed to run.


The full build log is available from:
http://qa-logs.debian.net/2023/08/13/libcap2_2.66-4_unstable.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to