Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1069312

Bug#993444: libxml-sax-perl: Reproducible content for 'update-perl-sax-parsers'

From Roland Clobus <rclobus@rclobus.nl>
Newsgroups linux.debian.bugs.dist
Subject Bug#993444: libxml-sax-perl: Reproducible content for 'update-perl-sax-parsers'
Date 2021-09-01 15:40 +0200
Message-ID <CSyD7-1LM-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Package: libxml-sax-perl
Version: 1.02+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hello maintainers for libxml-sax-perl,

While working on the “reproducible builds” effort [1], I have noticed
that the output of the script 'update-perl-sax-parsers' is not stable.

You can reproduce this with the following snippet:
mkdir test
PERL_HASH_SEED=0 update-perl-sax-parsers --directory test --file
test/ParserDetails.ini --add XML::SAX::Expat --priority 10
mv test/10-XML\:\:SAX\:\:Expat seed0
PERL_HASH_SEED=42 update-perl-sax-parsers --directory test --file
test/ParserDetails.ini --add XML::SAX::Expat --priority 10
mv test/10-XML\:\:SAX\:\:Expat seed42
md5sum seed*

After issuing the add command, the generated ini file has a random order for
its keys. See [2] for more information.

The attached patch sorts the keys prior to writing the file.
Once applied, it will be possible for the live-build live image with the
Cinnamon desktop to be built reproducibly.

With kind regards,
Roland Clobus

 [1]: https://wiki.debian.org/ReproducibleBuilds
 [2]: https://reproducible-builds.org/docs/stable-outputs/

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libxml-sax-perl depends on:
ii  libxml-namespacesupport-perl  1.12-1.1
ii  libxml-sax-base-perl          1.09-1.1
ii  perl                          5.32.1-5
ii  ucf                           3.0043

Versions of packages libxml-sax-perl recommends:
ii  libwww-perl            6.53-1
ii  libxml-sax-expat-perl  0.51-1

libxml-sax-perl suggests no packages.

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#993444: libxml-sax-perl: Reproducible content for 'update-perl-sax-parsers' Roland Clobus <rclobus@rclobus.nl> - 2021-09-01 15:40 +0200

csiph-web