Bug#1048718: tar: Fails to build source after successful build

2023-08-26 Thread Gioele Barabucci

Control: tags -1 patch

On Sun, 13 Aug 2023 21:21:29 +0200 Lucas Nussbaum  wrote:

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


A fix for this issue is included in 
.


Tested via the `test-build-twice` test on salsa-ci.

Regards,

--
Gioele Barabucci



Bug#1048718: tar: Fails to build source after successful build

2023-08-13 Thread Lucas Nussbaum
Source: tar
Version: 1.34+dfsg-1.2
Severity: minor
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
User: debian...@lists.debian.org
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 /<> && runuser -u user42 -- dpkg-buildpackage --sanitize-env 
> -us -uc -rfakeroot -S
> -
> 
> dpkg-buildpackage: info: source package tar
> dpkg-buildpackage: info: source version 1.34+dfsg-1.2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Paul Gevers 
>  dpkg-source --before-build .
>  fakeroot debian/rules clean
> dh_testdir
> dh_testroot
> rm -f build-stamp configure-stamp
> [ ! -f Makefile ] || /usr/bin/make distclean
> make[1]: Entering directory '/<>'
> Making distclean in doc
> make[2]: Entering directory '/<>/doc'
> rm -f Makefile
> make[2]: Leaving directory '/<>/doc'
> Making distclean in gnu
> make[2]: Entering directory '/<>/gnu'
> make[3]: Entering directory '/<>/gnu'
> test -z "configmake.h configmake.h-t" || rm -f configmake.h configmake.h-t
> test -z "libgnu.a" || rm -f libgnu.a
> test -z "" || rm -f 
> rm -f *.o
> test -z "core *.stackdump alloca.h alloca.h-t ctype.h ctype.h-t dirent.h 
> dirent.h-t errno.h errno.h-t fcntl.h fcntl.h-t float.h float.h-t fnmatch.h 
> fnmatch.h-t getopt.h getopt.h-t getopt-cdefs.h getopt-cdefs.h-t inttypes.h 
> inttypes.h-t langinfo.h langinfo.h-t limits.h limits.h-t locale.h locale.h-t 
> parse-datetime.tab.c parse-datetime.tab.h parse-datetime.c-tmp 
> parse-datetime-gen.h-tmp selinux/selinux.h selinux/selinux.h-t 
> selinux/context.h selinux/context.h-t selinux/label.h selinux/label.h-t 
> signal.h signal.h-t stdalign.h stdalign.h-t stdarg.h stdarg.h-t stdbool.h 
> stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t stdio.h stdio.h-t 
> stdlib.h stdlib.h-t string.h string.h-t strings.h strings.h-t sys/random.h 
> sys/random.h-t sys/stat.h sys/stat.h-t sys/time.h sys/time.h-t sys/types.h 
> sys/types.h-t 
> sysexits.h sysexits.h-t time.h time.h-t unistd.h unistd.h-t unitypes.h 
> unitypes.h-t uniwidth.h uniwidth.h-t utime.h utime.h-t wchar.h wchar.h-t 
> wctype.h wctype.h-t" || rm -f core *.stackdump alloca.h alloca.h-t ctype.h 
> ctype.h-t dirent.h dirent.h-t errno.h errno.h-t fcntl.h fcntl.h-t float.h 
> float.h-t fnmatch.h fnmatch.h-t getopt.h getopt.h-t getopt-cdefs.h 
> getopt-cdefs.h-t inttypes.h inttypes.h-t langinfo.h langinfo.h-t limits.h 
> limits.h-t locale.h locale.h-t parse-datetime.tab.c parse-datetime.tab.h 
> parse-datetime.c-tmp parse-datetime-gen.h-tmp selinux/selinux.h 
> selinux/selinux.h-t selinux/context.h selinux/context.h-t selinux/label.h 
> selinux/label.h-t signal.h signal.h-t stdalign.h stdalign.h-t stdarg.h 
> stdarg.h-t stdbool.h stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t 
> stdio.h stdio.h-t 
> stdlib.h stdlib.h-t string.h string.h-t strings.h strings.h-t sys/random.h 
> sys/random.h-t sys/stat.h sys/stat.h-t sys/time.h sys/time.h-t sys/types.h 
> sys/types.h-t sysexits.h sysexits.h-t time.h time.h-t unistd.h unistd.h-t 
> unitypes.h unitypes.h-t uniwidth.h uniwidth.h-t utime.h utime.h-t wchar.h 
> wchar.h-t wctype.h wctype.h-t
> rm -f *.tab.c
> test -z "" || rm -f 
> rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
> test . = "." || test -z "" || rm -f 
> rm -f malloc/.deps/.dirstamp
> rm -f malloc/.dirstamp
> rmdir selinux
> rmdir sys
> rm -f uniwidth/.deps/.dirstamp
> rm -f malloc/*.o
> rm -f uniwidth/.dirstamp
> test -z "" || rm -f 
> rm -f uniwidth/*.o
> make[3]: Leaving directory '/<>/gnu'
> rm -f ./.deps/acl-errno-valid.Po
> rm -f ./.deps/acl-internal.Po
> rm -f ./.deps/acl_entries.Po
> rm -f ./.deps/alloca.Po
> rm -f ./.deps/allocator.Po
> rm -f ./.deps/anytostr.Po
> rm -f ./.deps/areadlink-with-size.Po
> rm -f ./.deps/areadlink.Po
> rm -f ./.deps/areadlinkat-with-size.Po
> rm -f ./.deps/areadlinkat.Po
> rm -f ./.deps/argmatch.Po
> rm -f ./.deps/argp-ba.Po
> rm -f ./.deps/argp-eexst.Po
> rm -f ./.deps/argp-fmtstream.Po
> rm -f ./.deps/argp-fs-xinl.Po
> rm -f ./.deps/argp-help.Po
> rm -f ./.deps/argp-parse.Po
> rm -f ./.deps/argp-pin.Po
> rm -f ./.deps/argp-pv.Po
> rm -f ./.deps/argp-pvh.Po
> rm -f ./.deps/argp-version-etc.Po
> rm -f ./.deps/argp-xinl.Po
> rm -f ./.deps/asnprintf.Po
> rm -f ./.deps/asprintf.Po
> rm -f ./.deps/at-func.Po
> rm -f ./.deps/at-func2.Po
> rm -f