Bug#1049683: t50: Fails to build binary packages again after successful build

2023-08-23 Thread Peter Wienemann

Control: tags -1 + patch

See https://salsa.debian.org/pkg-security-team/t50/-/merge_requests/1



Bug#1049683: t50: Fails to build binary packages again after successful build

2023-08-16 Thread Lucas Nussbaum
Source: t50
Version: 5.8.7b-1
Severity: minor
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-binary-20230816 ftbfs-binary-after-build
User: debian...@lists.debian.org
Usertags: qa-doublebuild

Hi,

This package fails to do build a binary-only build (not source) after a
successful build (dpkg-buildpackage ; dpkg-buildpackage -b).

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/DoubleBuild

Relevant part of the build log:
> cd /<> && runuser -u user42 -- dpkg-buildpackage --sanitize-env 
> -us -uc -rfakeroot -b
> --
> 
> dpkg-buildpackage: info: source package t50
> dpkg-buildpackage: info: source version 5.8.7b-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Marcos Fouces 
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  debian/rules clean
> dh clean
>dh_auto_clean
>   make -j8 distclean
> make[1]: Entering directory '/<>'
> Deleting .o files...
> find src/ -type f -name '*.o' -delete
> rm t50 dist/*.gz dist/*.asc
> rm: cannot remove 'dist/*.gz': No such file or directory
> rm: cannot remove 'dist/*.asc': No such file or directory
> make[1]: [Makefile:161: distclean] Error 1 (ignored)
> make[1]: Leaving directory '/<>'
>dh_clean
>  debian/rules binary
> dh binary
>dh_update_autotools_config
>dh_autoreconf
>dh_auto_configure
>   ./configure --build=x86_64-linux-gnu --prefix=/usr 
> --includedir=\${prefix}/include --mandir=\${prefix}/share/man 
> --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var 
> --disable-option-checking --disable-silent-rules 
> --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run 
> --disable-maintainer-mode --disable-dependency-tracking
> To comple and install:
> 
>   $ make
>   $ sudo make install
> 
> To uninstall:
> 
>   $ sudo make uninstall
>debian/rules override_dh_auto_build
> make[1]: Entering directory '/<>'
> dh_auto_build --buildsystem=makefile
>   make -j8 "INSTALL=install --strip-program=true"
> make[2]: Entering directory '/<>'
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/cidr.o src/cidr.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/cksum.o src/cksum.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/config.o src/config.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/errors.o src/errors.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/main.o src/main.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/memalloc.o 
> src/memalloc.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/modules.o src/modules.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/netio.o src/netio.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/randomizer.o 
> src/randomizer.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/shuffle.o src/shuffle.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security -std=gnu11 -I src/include -O2 -DNDEBUG 
> -ffast-math -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/usage.o src/usage.c
> cc -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -Wformat -Werror=format-security