Debian Bug report logs - #1000685
Randomness in hunspell.db

version graph

Package: dictionaries-common; Maintainer for dictionaries-common is Agustin Martin Domingo <agmartin@debian.org>; Source for dictionaries-common is src:dictionaries-common (PTS, buildd, popcon).

Reported by: Roland Clobus <rclobus@rclobus.nl>

Date: Sat, 27 Nov 2021 08:33:02 UTC

Severity: wishlist

Tags: patch

Found in version dictionaries-common/1.28.12

Fixed in version dictionaries-common/1.28.13

Done: Agustin Martin Domingo <agmartin@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Agustin Martin Domingo <agmartin@debian.org>:
Bug#1000685; Package dictionaries-common. (Sat, 27 Nov 2021 08:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Roland Clobus <rclobus@rclobus.nl>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Agustin Martin Domingo <agmartin@debian.org>. (Sat, 27 Nov 2021 08:33:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Roland Clobus <rclobus@rclobus.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Randomness in hunspell.db
Date: Sat, 27 Nov 2021 09:27:54 +0100
[Message part 1 (text/plain, inline)]
Package: dictionaries-common
Version: 1.28.12
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hello maintainers of dictionaries-common,

While working on the “reproducible builds” effort [1], I have noticed
that the content of the file '/var/cache/dictionaries-common/hunspell.db' is
changing randomly.

The order of the comma separated values for the key 'hunspell-locales' is
random [2]. This can be reproduced when e.g. the hunspell-nl package is
installed (manually invoking 'update-dictcommon-hunspell' will rebuild the
file).

The attached patch sorts the values and will guarantee the order.

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'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages dictionaries-common depends on:
ii  debconf [debconf-2.0]  1.5.79
ii  emacsen-common         3.0.4
ii  libtext-iconv-perl     1.7-7+b1

dictionaries-common recommends no packages.

Versions of packages dictionaries-common suggests:
ii  aspell                0.60.8-4
ii  ispell                3.4.02-2
ii  wamerican [wordlist]  2020.12.07-1

-- debconf information excluded

-- debsums errors found:
debsums: changed file /usr/share/perl5/Debian/DictionariesCommon.pm (from dictionaries-common package)
[reproducible_hunspell_db.patch (text/plain, attachment)]

Reply sent to Agustin Martin Domingo <agmartin@debian.org>:
You have taken responsibility. (Tue, 30 Nov 2021 08:36:04 GMT) (full text, mbox, link).


Notification sent to Roland Clobus <rclobus@rclobus.nl>:
Bug acknowledged by developer. (Tue, 30 Nov 2021 08:36:04 GMT) (full text, mbox, link).


Message #10 received at 1000685-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1000685-close@bugs.debian.org
Subject: Bug#1000685: fixed in dictionaries-common 1.28.13
Date: Tue, 30 Nov 2021 08:33:45 +0000
Source: dictionaries-common
Source-Version: 1.28.13
Done: Agustin Martin Domingo <agmartin@debian.org>

We believe that the bug you reported is fixed in the latest version of
dictionaries-common, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1000685@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Agustin Martin Domingo <agmartin@debian.org> (supplier of updated dictionaries-common package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 30 Nov 2021 00:45:09 +0100
Source: dictionaries-common
Architecture: source
Version: 1.28.13
Distribution: unstable
Urgency: medium
Maintainer: Agustin Martin Domingo <agmartin@debian.org>
Changed-By: Agustin Martin Domingo <agmartin@debian.org>
Closes: 1000674 1000685
Changes:
 dictionaries-common (1.28.13) unstable; urgency=medium
 .
   * Debian/DictionariesCommon.pm.in::dc_merge_installed_hunspell_dicts:
     - Sort parsed hunspell-locales for hunspell.db reproducibility. Thanks
       Roland  Clobus (Closes: #1000685).
     - Fix hash dereferencing. Was causing some randomness in
       emacsen-ispell-dicts.el as a side effect. Thanks Roland Clobus
       (Closes: #1000674).
     - Code readability improvements.
     - Add some optional debugging code.
Checksums-Sha1:
 1149cda7096595ff23787efc5e9a8232767504c0 1896 dictionaries-common_1.28.13.dsc
 44ece9ed65c8791fd53059fb217c373fba1badb8 286188 dictionaries-common_1.28.13.tar.xz
 fbbb675b33c400142e572d00b7edde40e671d301 6666 dictionaries-common_1.28.13_amd64.buildinfo
Checksums-Sha256:
 5227fedefef853e9bed885acb7ddcae55eb32982ad3f7d464b7ddcd455e079d3 1896 dictionaries-common_1.28.13.dsc
 2387e7a3fdc49006a4f89cb1cc85a4cd051a42f20ad7f72d6b21c291b1a74013 286188 dictionaries-common_1.28.13.tar.xz
 2c896b30706a47a20793b773e8bc246ee34752d645f20873e33638ac9de7892a 6666 dictionaries-common_1.28.13_amd64.buildinfo
Files:
 4464ca99afbc224131606639f9b79e57 1896 text optional dictionaries-common_1.28.13.dsc
 8b0b6a177bfba374d851ac742ac90956 286188 text optional dictionaries-common_1.28.13.tar.xz
 531dcb035813b7a198d709a1a4d78182 6666 text optional dictionaries-common_1.28.13_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEEehey7p+gYd346SEFJrCLeiggvwFAmGlax0ACgkQFJrCLeig
gvzgIBAAwvIX4UY3HUtb5zr6XmmmhXIABUqRQKWsYc/xj56f7zega5wpQJ4SWKia
wx8FQNpo8a5I632tyJojWWrA8m6dDTMPEUT9nITf6i/6n3i1FS5915lD4DJVnMsL
GdbLOM1e9j1xbE6RzFrLeKMsnTt/VZnjxvbgsqDW5Qg5VbM4tgjDRQCPYqADFDOv
egcZtPZ+MBQnZ+uKFixmwMaS0Mdd/rt/Sj4R5h//dt5SIPChGMXCUyFLuFpHuIup
OTzdKfF3si86JsTIx2Fml6r7wYjZyKkL7uhYtGcx96YEZNTOCKh/LpCsgteL9noA
S4nco2gKC7v1UI8hPAakL1NMrd4eTOulCZuPMzavAm97HZbZz7jTxtgz8DHyS5Qh
Z53Wk+BUCQoSZT6jrgp2lGVDURFDkmhoMEf4E5JywrDhQAIuaeGUbnVyuLjR/oZo
KMLHIgoJIoRVU7aCYRIRzkSZ1fnidEmm+y/Gy2D7/EMMnyuiwOx+IVOeGHWaRJ6p
mrb1SfLxv/s76m34dtSTDv20UrLr2SNfHyv6HRykogAhcqWoN+f45/cYwtsd1XL1
0bZSwL+1Yc+qmH0vc7xWF2lBoBIXzoeG8NhIBEYa+SD5Hy7CsL7XrlApcYrhl1/S
idtCL5zBXGBOEWk+5Bexm/KcRDdN9/7gFNwEuuNx30nf1vOZfJU=
=1BFB
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 29 Dec 2021 07:28:10 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 09:34:06 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.