Debian Bug report logs - #1000674
dictionaries-common: Randomness in emacsen-ispell-dicts.el

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: Fri, 26 Nov 2021 23:03:02 UTC

Severity: wishlist

Found in versions dictionaries-common/1.28.12, dictionaries-common/1.28.13

Fixed in version dictionaries-common/1.28.14

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#1000674; Package dictionaries-common. (Fri, 26 Nov 2021 23:03:03 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>. (Fri, 26 Nov 2021 23:03: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: dictionaries-common: Randomness in emacsen-ispell-dicts.el
Date: Fri, 26 Nov 2021 23:47:04 +0100
Package: dictionaries-common
Version: 1.28.12
Severity: wishlist
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/emacsen-ispell-
dicts.el' is changing randomly.

In the section 'debian-hunspell-equivs-alist', the value for the 'ca' key can
toggle between 'ca' and 'catala8'. Because Perl does not have a reproducible
order in a foreach statement (unless the keyword sort is used), it will be
rather random which value for the key 'ca' will be set last. With the
environment variable PERL_HASH_SEED [2] I've been able to generate a
reproducible test case.

I'm unsure what would be the correct value. If you can tell me the desired
behaviour, I will provide a patch.

Steps to reproduce:
* Install a minimal Debian bookworm (a live image will work fine)
* Ensure that no aspell, hunspell or ispell is present
* Install 'hunspell-ca'
* Run either of the following commands:
** PERL_HASH_SEED=1 update-dictcommon-hunspell
** PERL_HASH_SEED=2 update-dictcommon-hunspell
* Look at the content of the file '/var/cache/dictionaries-common/emacsen-
ispell-dicts.el'

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.14.0-4-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)

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


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


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1000674-close@bugs.debian.org
Subject: Bug#1000674: 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 1000674@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-----




Information forwarded to debian-bugs-dist@lists.debian.org, Agustin Martin Domingo <agmartin@debian.org>:
Bug#1000674; Package dictionaries-common. (Wed, 01 Dec 2021 19:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to Roland Clobus <rclobus@rclobus.nl>:
Extra info received and forwarded to list. Copy sent to Agustin Martin Domingo <agmartin@debian.org>. (Wed, 01 Dec 2021 19:54:03 GMT) (full text, mbox, link).


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

From: Roland Clobus <rclobus@rclobus.nl>
To: 1000674@bugs.debian.org, control@bugs.debian.org
Subject: Unfortunately, not fixed yet...
Date: Wed, 1 Dec 2021 20:47:04 +0100
[Message part 1 (text/plain, inline)]
found 1000674 1.28.13
thanks

Hello Agustin Martin Domingo,

thank you for responding so quickly.

Unfortunately, this issue is still present in 1.28.13...

Here are the commands that I've used to reproduce the case (using 
hunspell-ca):

PERL_HASH_SEED=1 update-dictcommon-hunspell
grep "setq debian-hunspell-equivs-alist" -A 1 -B0 
/var/cache/dictionaries-common/emacsen-ispell-dicts.el

-> output: ("ca" "catala8")

PERL_HASH_SEED=2 update-dictcommon-hunspell
grep "setq debian-hunspell-equivs-alist" -A 1 -B0 
/var/cache/dictionaries-common/emacsen-ispell-dicts.el

-> output: ("ca" "ca")

With kind regards,
Roland Clobus
[OpenPGP_signature (application/pgp-signature, attachment)]

Marked as found in versions dictionaries-common/1.28.13; no longer marked as fixed in versions dictionaries-common/1.28.13 and reopened. Request was from Roland Clobus <rclobus@rclobus.nl> to control@bugs.debian.org. (Wed, 01 Dec 2021 19:54:07 GMT) (full text, mbox, link).


Reply sent to Agustin Martin Domingo <agmartin@debian.org>:
You have taken responsibility. (Thu, 02 Dec 2021 17:36:05 GMT) (full text, mbox, link).


Notification sent to Roland Clobus <rclobus@rclobus.nl>:
Bug acknowledged by developer. (Thu, 02 Dec 2021 17:36:05 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1000674-close@bugs.debian.org
Subject: Bug#1000674: fixed in dictionaries-common 1.28.14
Date: Thu, 02 Dec 2021 17:33:37 +0000
Source: dictionaries-common
Source-Version: 1.28.14
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 1000674@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: Thu, 02 Dec 2021 17:03:03 +0100
Source: dictionaries-common
Architecture: source
Version: 1.28.14
Distribution: unstable
Urgency: medium
Maintainer: Agustin Martin Domingo <agmartin@debian.org>
Changed-By: Agustin Martin Domingo <agmartin@debian.org>
Closes: 1000674
Changes:
 dictionaries-common (1.28.14) unstable; urgency=medium
 .
   * Debian/DictionariesCommon.pm.in::dc_merge_installed_hunspell_dicts:
     - Drop parsed dicts with a locale matching hash-name of a declared
       dict (Closes: #1000674).
     - Minor code simplifications.
     - Improve comments.
   * debian/control: Bump Standards-Version. No changes required.
Checksums-Sha1:
 51c87aef9796f034c956f580690e2a789be0c6a8 1898 dictionaries-common_1.28.14.dsc
 6cb2b61e3d2a6a709bd8099354b83cba67121cd1 286248 dictionaries-common_1.28.14.tar.xz
 31e2f730123f5db9df4da9aa3091a49f188743b7 6666 dictionaries-common_1.28.14_amd64.buildinfo
Checksums-Sha256:
 67877daf9c090595fa1262424611fa7ef22f7c837cc3a93b66f46b243d12ba96 1898 dictionaries-common_1.28.14.dsc
 9dcbe4b1e252290445bde7bbf302fa4b3c742ffc966dacbc01ebd2753b0be19d 286248 dictionaries-common_1.28.14.tar.xz
 ecb7cdb8e34ba28ef35e427acc2ade203da32338d3bdca9749a8c2c126a0842c 6666 dictionaries-common_1.28.14_amd64.buildinfo
Files:
 d2d9cae315367bec54129b94dba274f9 1898 text optional dictionaries-common_1.28.14.dsc
 122e84af8a41ce5e0eeee5ead98ed3bb 286248 text optional dictionaries-common_1.28.14.tar.xz
 4e1a9dc5587cf23e6fcecd7c4c7675ae 6666 text optional dictionaries-common_1.28.14_amd64.buildinfo

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

iQIzBAEBCAAdFiEEEehey7p+gYd346SEFJrCLeiggvwFAmGo93AACgkQFJrCLeig
gvxwtRAAuw1XbtM0zy0oBhT4kMxQtcagDRpCInocLVOaDoenkiUNxRSWNKYgJSt/
5CtiRX9ZRrDe5fB0EEhLu3Hh5axzYigxQfaLHBZ58qCcboIOJltkLxhMbDUicXeh
wheITH0jpM4IWcNbcJwuvYGE//ctQxt1kFe0m8A/gCyAC7AfO0B4cs3567D/+8dJ
X0BbLVgvR1aDV1R5pipE4Hk4FSlPO7sPH4dbIjznJLZFPzioxgLS2v8BayZ9rAh1
WE2QdVuZoSg69J5VBxioma0q5M4pUURXNbw3vUB4+G7fZqJOMvqEk4jlqqoRE0BP
r2FepcezMxBCpB5hUnrcsCyuSRopLxJYvOYQm2N3XqgnufUqPHAskaX93MkZkpq4
IllvX01QSsm09w+qdRinnMG6TtMADHbp8f/4oOcJhd2NoTTzkLOt3s1/eNd86TxD
bG409fSm3VxJNxpI2ffommqcgWQ9V4mGquvUYFzhd1V4oT7Po4QgigzxZzi77ZX3
/Z29Tz9z4YlDWr4I7ZyGL3IYpvBgBVFBFqG8NG0z9SiSQ18Yk/5mR3/EsSa3Oata
KIjCv5TATlPd0SJiR/aLJHqeNqLj9aoWfxXOOFJHUCv8RrXsYPxNu/B+wYH1wDGU
Ykw6WTzGoFdcXfP+c7oVNje5LwOvq7h5DtCO7qq/NYyQkN+1JMY=
=8c27
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 05 Jan 2022 07:28:06 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 10:02:18 2023; Machine Name: buxtehude

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.