Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Vagrant Cascadian
Thu, 15 Oct 2026 01:00
Bug#985335: cdebootstrap: please make the build reproducible
Author: Vagrant Cascadian
Date: Thu, 15 Oct 2026 01:00
Date: Thu, 15 Oct 2026 01:00
139 lines
7353 bytes
7353 bytes
--==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2026-09-30, Vagrant Cascadian wrote: > On 2026-09-30, Vagrant Cascadian wrote: >> On 2026-09-25, Jochen Sprickerhof wrote: >>> * Vagrant Cascadian <vagrant@reproducible-builds.org> [2026-09-24 12:33= ]: >>>>On 2026-07-10, Jochen Sprickerhof wrote: >>>>> * Chris Lamb <lamby@debian.org> [2021-03-16 09:19]: >>>>>>Whilst working on the Reproducible Builds effort [0] we noticed that >>>>>>cdebootstrap could not be built reproducibly. > ... >>>>in debian/rules and setting "Rules-Requires-Root: binary-targets" in >>>>debian/control, otherwise the username, groupname and user id and group >>>>id also get embedded in both the tarball: >>> >>> I don't see a need for that and I just tested the change without and=20 >>> build is fine and autopkgtest runs without problem. As we only change a= =20 >>> tar call I don't think there is a need. >> >> Well, tests.reproducible-builds.org still shows differences in the >> various package data.tar.gz, so it will continue to be unreproducible >> there unless that part gets fixed: >> >> https://tests.reproducible-builds.org/debian/rb-pkg/forky/amd64/diffos= cope-results/cdebootstrap.html >> >> Less important, but my test setup also tests this... :) >> >> With a closer look, it only appears to be the directories in the >> data.tar.gz, not the regular files... >> >>> In general we try to avoid R=C2=B3 binary-targts as it makes reproducin= g much=20 >>> harder and in case there is a need debputy should be the better option. >> >> Open to other ideas of how to fix it properly. Might try to poke at this >> a little more... > > Ok, passing "dpkg-deb --root-owner-group" in helper/Makefile.am did the t= rick! > > So, a complete patch that works for me: ... > I would like to perform a Non-Maintainer Upload (NMU) with this patch in > the coming weeks. I have uploaded an NMU to DELAYED/10, debdiff attached. More granular git commits are available via dgit. live well, vagrant --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=cdebootstrap_0.7.9+nmu1.debdiff.txt Content-Transfer-Encoding: quoted-printable diff -Nru cdebootstrap-0.7.9/debian/changelog cdebootstrap-0.7.9+nmu1/debia= n/changelog =2D-- cdebootstrap-0.7.9/debian/changelog 2025-07-21 07:33:58.000000000 -07= 00 +++ cdebootstrap-0.7.9+nmu1/debian/changelog 2026-10-14 17:36:50.000000000 = -0700 @@ -1,3 +1,18 @@ +cdebootstrap (0.7.9+nmu1) unstable; urgency=3Dmedium + + * Non-maintainer upload. + + [ Chris Lamb ] + * debian/rules: Pass argument to sort tar entries. (Closes: #985335) + + [ Vagrant Cascadian ] + * debian/rules: Pass options to tar to use numeric owner and group. + (Closes: #985335) + * helper/Makefile.am: Pass --root-owner-group tp dpkg-deb. + (Closes: #985335) + + -- Vagrant Cascadian <vagrant@reproducible-builds.org> Wed, 14 Oct 2026 = 17:36:50 -0700 + cdebootstrap (0.7.9) unstable; urgency=3Dmedium =20 * Test current Debian releases. (closes: #1109454) diff -Nru cdebootstrap-0.7.9/debian/rules cdebootstrap-0.7.9+nmu1/debian/ru= les =2D-- cdebootstrap-0.7.9/debian/rules 2025-07-21 00:30:41.000000000 -0700 +++ cdebootstrap-0.7.9+nmu1/debian/rules 2026-10-14 17:36:50.000000000 -0700 @@ -38,7 +38,10 @@ =20 dh_auto_install --builddir build-tar --destdir debian/tmp strip --remove-section=3D.comment --remove-section=3D.note debian/tmp/usr= /bin/cdebootstrap =2D tar -C debian/tmp/usr/bin --mtime=3D@$(SOURCE_DATE_EPOCH) -cf debian/tm= p/cdebootstrap_$(DEB_VERSION)_$(DEB_HOST_ARCH).tar . + tar -C debian/tmp/usr/bin --sort=3Dname \ + --owner=3D0 --group=3D0 --numeric-owner \ + --mtime=3D@$(SOURCE_DATE_EPOCH) \ + -cf debian/tmp/cdebootstrap_$(DEB_VERSION)_$(DEB_HOST_ARCH).tar . mkdir -p debian/cdebootstrap-static/usr/lib/cdebootstrap cp debian/tmp/cdebootstrap_$(DEB_VERSION)_$(DEB_HOST_ARCH).tar debian/cde= bootstrap-static/usr/lib/cdebootstrap =20 diff -Nru cdebootstrap-0.7.9/helper/Makefile.am cdebootstrap-0.7.9+nmu1/hel= per/Makefile.am =2D-- cdebootstrap-0.7.9/helper/Makefile.am 2025-07-21 00:30:41.000000000 -= 0700 +++ cdebootstrap-0.7.9+nmu1/helper/Makefile.am 2026-10-14 17:36:50.00000000= 0 -0700 @@ -24,7 +24,7 @@ $(MAKE) -C $(PACKAGE) package DESTDIR=3D$(CURDIR)/temp-$(PACKAGE) =20 root-%: =2D dpkg-deb -Zgzip --build temp-$(PACKAGE) $(PACKAGE).deb + dpkg-deb -Zgzip --root-owner-group --build temp-$(PACKAGE) $(PACKAGE).deb =20 clean-local: rm -rf $(foreach package,$(packages),temp-$(package)) --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCatAiuQAKCRDcUY/If5cW qqV0AQD5gM6zw0tPPFlvg6D0UfOU+VqYNhLWALxhz6ETuV/fWQEAhzXGNKq+AyuH T9uXZfeW3vJy1GcN69b1Jl7Dl3KQUw0= =7dfN -----END PGP SIGNATURE----- --==-=-=--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads