Article View: linux.debian.bugs.dist
Article #906Bug#985335: cdebootstrap: please make the build reproducible
From: 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----- --==-=-=--
Technical Details
Message-ID:
<NOhZ7-5z84-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<BTebv-1iz-1@gated-at.bofh.it> <BTebv-1iz-1@gated-at.bofh.it> <NfiZH-3U1E-1@gated-at.bofh.it> <NGXC9-1AeB-1@gated-at.bofh.it> <NH9Dj-1GC9-11@gated-at.bofh.it> <NJ7e1-2LsN-1@gated-at.bofh.it> <NJ7H3-2LD1-1@gated-at.bofh.it> <BTebv-1iz-1@gated-at.bofh.it> <NJ7H3-2LD1-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Vagrant Cascadian <vagrant@reproducible-builds.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#985335: cdebootstrap: please make the build reproducible Date: Thu, 15 Oct 2026 03:00:01 +0200 Message-ID: <NOhZ7-5z84-1@gated-at.bofh.it> References: <BTebv-1iz-1@gated-at.bofh.it> <BTebv-1iz-1@gated-at.bofh.it> <NfiZH-3U1E-1@gated-at.bofh.it> <NGXC9-1AeB-1@gated-at.bofh.it> <NH9Dj-1GC9-11@gated-at.bofh.it> <NJ7e1-2LsN-1@gated-at.bofh.it> <NJ7H3-2LD1-1@gated-at.bofh.it> <BTebv-1iz-1@gated-at.bofh.it> <NJ7H3-2LD1-1@gated-at.bofh.it> X-Original-To: Jochen Sprickerhof <jspricke@debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Oct 15 00:51:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 985335@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: waldi@debian.org X-Debian-Pr-Message: followup 985335 X-Debian-Pr-Package: src:cdebootstrap X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: cdebootstrap MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996856 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 139 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 985335@bugs.debian.org, Chris Lamb <lamby@debian.org>, waldi@debian.org X-Original-Date: Wed, 14 Oct 2026 17:47:53 -0700 X-Original-Message-ID: <87y0bzssau.fsf@wireframe> X-Original-References: <161588529982.32348.11797708345774006074@be9a314bb5f4> <161588529982.32348.11797708345774006074@be9a314bb5f4> <alDrICYtdX8oZCet@fenchel> <87qzii1m1q.fsf@wireframe> <arYxMv90__MC2NUp@mpd> <875wzmzjjm.fsf@wireframe> <8733uqzi39.fsf@wireframe> <161588529982.32348.11797708345774006074@be9a314bb5f4> <8733uqzi39.fsf@wireframe>