Hi,

* Gioele Barabucci <gio...@svario.it> [2024-12-05 11:00]:
Package: devscripts
Version: 2.24.5
User: devscri...@packages.debian.org
Usertags: debrebuild
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps toolchain
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Dear debrebuild developers,

about 10% of packages failing to reproduce on reproduce.d.n show a peculiar issue: some (not all) of the timestamps of the packaged files are exactly 1-second in the future compared to the reference package.

See, for example, the following (abbreviated) diffoscope output from vip-manager_1.0.2-9+b2_amd64:

--rw-r--r-- […] 743 2024-10-20 17:14:00 ./u/l/sd/s/vip-manager.service
+-rw-r--r-- […] 743 2024-10-20 17:14:01 ./u/l/sd/s/vip-manager.service

Full log: <https://reproduce.debian.net/api/v0/builds/107546/diffoscope>

I had a look at this and it it seems to be some interaction of debhelper and sbuild when doing a binNMU, thus pinging Josch and Niels for input:

An other example is:

https://reproduce.debian.net/api/v0/builds/107322/diffoscope

Which can be reproduced on a trixie system with:

apt source minia
sbuild --chroot-mode=unshare --dist=testing --no-run-lintian --make-binNMU=foo -m "bar 
<b...@debian.org>" minia_3.2.6-4.dsc
debrebuild --buildresult=out --builder=sbuild+unshare --cache=cache -- 
minia_3.2.6-4+b1_amd64.buildinfo

It works if I do an NMU instead:

cd minia-3.2.6
dch --nmu foo
sbuild --chroot-mode=unshare --dist=testing --no-run-lintian --no-clean-source 
--no-arch-all
debrebuild --buildresult=out --builder=sbuild+unshare --cache=cache -- 
minia_3.2.6-4.1_amd64.buildinfo

(Note that I use testing as the target distribution to work around packages not available from snapshot.d.o.)

From my understanding dh uses the date from the changelog when creating files and directories. For vip-manager in the original bug report the binNMU changelog date is:

-- all / amd64 / i386 Build Daemon (x86-conova-01) 
<buildd_amd64-x86-conova...@buildd.debian.org>  Sun, 20 Oct 2024 17:14:01 +0000

As can be found here:

https://buildd.debian.org/status/fetch.php?pkg=vip-manager&arch=amd64&ver=1.0.2-9%2Bb2&stamp=1729444489&raw=0

Note that the service file from the ftp.d.o package in the quote above has 17:14:00 so is one second older and the one from debrebuild matches the time in the changelog.

I looked through a number of diffoscope file on reproduce.d.n and found examples produced by dh_installdocs, dh_installsystemd and dh_installexamples.

Cheers Jochen

Attachment: signature.asc
Description: PGP signature

Reply via email to