Your message dated Mon, 29 Jun 2026 08:40:05 +0000
with message-id <[email protected]>
and subject line Bug#1141059: fixed in mah-jong 1.17.2-4
has caused the Debian Bug report #1141059,
regarding mah-jong: please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1141059: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1141059
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: mah-jong
Version: 1.17.2-3
Severity: wishlist
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: randomness

Hi!

While working on the “reproducible builds” effort, we have noticed that
that mah-jong does not build reproducible:

https://reproduce.debian.net/amd64/forky.html#mah-jong

This is due to randomness in the proto-encode-msg.pl code generator.

The attached patch fixes this and makes the package reproducible.

Cheers Jochen
diff --git a/debian/patches/0006-Generate-reproducible-proto-msg-code.patch 
b/debian/patches/0006-Generate-reproducible-proto-msg-code.patch
new file mode 100644
index 0000000..6c13e59
--- /dev/null
+++ b/debian/patches/0006-Generate-reproducible-proto-msg-code.patch
@@ -0,0 +1,30 @@
+From: Jochen Sprickerhof <[email protected]>
+Date: Mon, 29 Jun 2026 07:51:26 +0200
+Subject: Generate reproducible proto msg code
+
+---
+ proto-encode-msg.pl | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/proto-encode-msg.pl b/proto-encode-msg.pl
+index bb3a97f..2dd895d 100644
+--- a/proto-encode-msg.pl
++++ b/proto-encode-msg.pl
+@@ -185,7 +185,7 @@ print SIZE
+   switch ( m->type ) {
+ ";
+ 
+-foreach $k ( keys %charstar ) {
++foreach $k ( sort keys %charstar ) {
+   $c = $charstar{$k};
+   print SIZE
+ "  case ${L}Msg$k:
+@@ -214,7 +214,7 @@ print SIZE
+   switch ( m->type ) {
+ ";
+ 
+-foreach $k ( keys %charstar ) {
++foreach $k ( sort keys %charstar ) {
+   $c = $charstar{$k};
+   print SIZE
+ "  case ${L}Msg$k:
diff --git a/debian/patches/series b/debian/patches/series
index def71a9..129fd83 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ Makefile.in.Hardening.patch
 gui.c-fix-typo.patch
 0001-Port-GUI-from-GTK-2-to-GTK-3.patch
 cross.patch
+0006-Generate-reproducible-proto-msg-code.patch

--- End Message ---
--- Begin Message ---
Source: mah-jong
Source-Version: 1.17.2-4
Done: xiao sheng wen <[email protected]>

We believe that the bug you reported is fixed in the latest version of
mah-jong, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
xiao sheng wen <[email protected]> (supplier of updated mah-jong 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 29 Jun 2026 15:38:16 +0800
Source: mah-jong
Architecture: source
Version: 1.17.2-4
Distribution: unstable
Urgency: medium
Maintainer: xiao sheng wen <[email protected]>
Changed-By: xiao sheng wen <[email protected]>
Closes: 1141059
Changes:
 mah-jong (1.17.2-4) unstable; urgency=medium
 .
   * add d/p/0006-Generate-reproducible-proto-msg-code.patch, Closes: #1141059,
     Thanks Jochen Sprickerhof
   * d/control: remove Priority: optional line
   * Bump Standards-Version: 4.7.4
Checksums-Sha1:
 e0a19c8be5de372f767faf4fdbcdea0e507b666c 1873 mah-jong_1.17.2-4.dsc
 3384f1453352987ac44cddde462329c25a81b6ca 41932 mah-jong_1.17.2-4.debian.tar.xz
 23a7b942488b416f268e92a45de747cfc4f85ec9 14722 
mah-jong_1.17.2-4_source.buildinfo
Checksums-Sha256:
 b288dabc171d4643596d591abb8e95f71816fad9791906daf37636384becbdf1 1873 
mah-jong_1.17.2-4.dsc
 9d85db45c6da8d5899ba126bb105448afc2b5b83bb6329f2b16cdbf29bab183e 41932 
mah-jong_1.17.2-4.debian.tar.xz
 daf1e3172cb671fd4e64fec598bcd26179d0a76d79d256590e7e5d32ff18f6a4 14722 
mah-jong_1.17.2-4_source.buildinfo
Files:
 7ff785818cd0c976d6b0f3355ad0d8ab 1873 games - mah-jong_1.17.2-4.dsc
 e30977e864ee6f101c9df42b837423b7 41932 games - mah-jong_1.17.2-4.debian.tar.xz
 d61d9082c89738788cd4aa6dd1f4f338 14722 games - 
mah-jong_1.17.2-4_source.buildinfo

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

iQIzBAEBCgAdFiEEvGv7H5NUQYeSuhtTJ2Egg8PSprAFAmpCJ7MACgkQJ2Egg8PS
prDrRA//Q+TYijx7gk3IdKpRcklQFsZY5JvwVYfas4cBTEygEOCeYMjaZKSeHiNN
DcK6GzpUfQVljCTTFIpuVx2PVzzwjbnN/ysfpW7Twyiw1q7Sm3edOgczBBRYPe3o
EE2k7opl6hnJgpY4Vvnzfi/3mjrMBCYZJRF/VPpnlpYNjwms41pbmY25OwAOpjfz
tUcGM/gnsOicqALyjTiwRIfN2H7AHzI+spN6rfHYdbH7Ay6mVEhI7zPsaL7gqWgr
j8jtf9B7MBehmQp2UB1nWEYFEspJfZUennDaHRhBCGN1FAs47DCc2na83V9Xv++0
iNuzVgQ3hqRDHHl1+s7BhdceGHWmkPXSolB0FAjf9DgLSzkQ9WOnGYg+zkzWHSi6
J2MqaKep/GaAqPteGcU+/XTg54XkuCH05lNBX1e6iV/as2EZS2DvrQF8UVU7ka1r
XeeYa1jNt2f4GK/76SCVWsHSg3Ua0+9VfWaNF70nVLu3nMsZIT6yLBWhJmZXCWoZ
ZjGH0lzYt6enhVPbLUGldiWaUoVWSaKg0ZgUvVVupMoX8jgXYFL+HfxBjHPXBfX3
LLYnqMAHEi4x5ZZ3JkJy4XzeOo75Vk+8CP95/KXLNc8OaG4G1AjK018J6RSzb5pP
jw3ab2WqmySv7iDePLyWIJY8oAJSewd3OdOD+LOrvevVpCrKfCw=
=89F0
-----END PGP SIGNATURE-----

Attachment: pgpQJnhv84M4w.pgp
Description: PGP signature


--- End Message ---

Reply via email to