Your message dated Thu, 12 May 2016 19:19:09 +0000
with message-id <[email protected]>
and subject line Bug#824037: fixed in courier 0.76.1-2
has caused the Debian Bug report #824037,
regarding courier: please make the build reproducible (environment,timestamps)
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.)
--
824037: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824037
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: courier
Version: 0.76.1-1
Severity: wishlist
Tags: patch upstream
User: [email protected]
Usertags: environment timestamps
X-Debbugs-Cc: [email protected]
Dear Maintainer,
While working on the “reproducible builds” effort [1], we have noticed
that 'courier' could not be built reproducibly.
The attached patch honours the SOURCE_DATE_EPOCH environment variable
[2] to set the imapd version string from the last debian/changelog date,
and sets the shell to /bin/sh whatever SHELL is.
Once applied, courier can be built reproducibly in our current
experimental framework.
Regards,
Alexis Bienvenüe.
[1]: https://wiki.debian.org/ReproducibleBuilds
[2]: https://reproducible-builds.org/specs/source-date-epoch/
diff -Nru courier-0.76.1/debian/changelog courier-0.76.1/debian/changelog
--- courier-0.76.1/debian/changelog 2016-05-09 15:26:49.000000000 +0200
+++ courier-0.76.1/debian/changelog 2016-05-11 15:23:45.000000000 +0200
@@ -1,3 +1,10 @@
+courier (0.76.1-1.0~reproducible1) UNRELEASED; urgency=medium
+
+ * Always use /bin/sh as SHELL, to get reproducible build.
+ * Use SOURCE_DATE_EPOCH for imapd version string.
+
+ -- Alexis Bienvenüe <[email protected]> Wed, 11 May 2016 15:23:44 +0200
+
courier (0.76.1-1) unstable; urgency=medium
* Imported Upstream version 0.76.1
diff -Nru courier-0.76.1/debian/patches/0026-use-SOURCE_DATE_EPOCH-for-imapd-version.patch courier-0.76.1/debian/patches/0026-use-SOURCE_DATE_EPOCH-for-imapd-version.patch
--- courier-0.76.1/debian/patches/0026-use-SOURCE_DATE_EPOCH-for-imapd-version.patch 1970-01-01 01:00:00.000000000 +0100
+++ courier-0.76.1/debian/patches/0026-use-SOURCE_DATE_EPOCH-for-imapd-version.patch 2016-05-11 14:32:30.000000000 +0200
@@ -0,0 +1,20 @@
+Description: Use SOURCE_DATE_EPOCH for imapd version
+ Use the environment variable SOURCE_DATE_EPOCH (if set) for imapd
+ PROGRAMVERSION, to make the build reproducible.
+ See https://reproducible-builds.org/specs/source-date-epoch/
+Author: Alexis Bienvenüe <[email protected]>
+
+--- courier-0.76.1.orig/libs/imap/configure.ac
++++ courier-0.76.1/libs/imap/configure.ac
+@@ -340,8 +340,9 @@ courier)
+ ;;
+ esac
+
+-date=`date`
+-AC_DEFINE_UNQUOTED(PROGRAMVERSION, "$package/${target_cpu}-${target_vendor}-${target_os}/$date",
++SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}"
++BUILD_DATE=$(date -u -d "@$SOURCE_DATE_EPOCH" "+%F %R" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+%F %R" 2>/dev/null || date -u "+%F %R")
++AC_DEFINE_UNQUOTED(PROGRAMVERSION, "$package/${target_cpu}-${target_vendor}-${target_os}/$BUILD_DATE",
+ [ Source code version ])
+
+ AC_ARG_WITH(trashquota, [ --with-trashquota Count deleted messages as part of the quota],
diff -Nru courier-0.76.1/debian/patches/series courier-0.76.1/debian/patches/series
--- courier-0.76.1/debian/patches/series 2016-05-09 15:26:49.000000000 +0200
+++ courier-0.76.1/debian/patches/series 2016-05-11 14:30:51.000000000 +0200
@@ -22,3 +22,4 @@
0022-mkesmtpdcert-should-use-certsdir.patch
0024-Fix-missing-AC_PROG_SYSCONFTOOL-macro-on-autoreconf.patch
0025-Dynamically-resolver-mailuid-and-mailgid-on-runtime-.patch
+0026-use-SOURCE_DATE_EPOCH-for-imapd-version.patch
diff -Nru courier-0.76.1/debian/rules courier-0.76.1/debian/rules
--- courier-0.76.1/debian/rules 2016-05-09 15:26:49.000000000 +0200
+++ courier-0.76.1/debian/rules 2016-05-11 11:03:30.000000000 +0200
@@ -83,7 +83,7 @@
--disable-root-check
override_dh_auto_configure:
- dh_auto_configure -- $(COMMON_CONFIGURE)
+ CONFIG_SHELL=/bin/sh dh_auto_configure -- $(COMMON_CONFIGURE)
override_dh_auto_install:
INSTALL_IGNORE_UMASK=1 dh_auto_install -- install
--- End Message ---
--- Begin Message ---
Source: courier
Source-Version: 0.76.1-2
We believe that the bug you reported is fixed in the latest version of
courier, 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.
Ondřej Surý <[email protected]> (supplier of updated courier 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: Thu, 12 May 2016 10:16:09 +0200
Source: courier
Binary: courier-base courier-maildrop courier-mlm courier-mta courier-faxmail
courier-webadmin sqwebmail courier-pcp courier-pop courier-imap courier-ldap
courier-doc courier-ssl courier-mta-ssl courier-pop-ssl courier-imap-ssl
Architecture: source
Version: 0.76.1-2
Distribution: unstable
Urgency: medium
Maintainer: Stefan Hornburg (Racke) <[email protected]>
Changed-By: Ondřej Surý <[email protected]>
Description:
courier-base - Courier mail server - base system
courier-doc - Courier mail server - additional documentation
courier-faxmail - Courier mail server - Fax<->mail gateway
courier-imap - Courier mail server - IMAP server
courier-imap-ssl - Courier mail server - IMAP over SSL [transitional]
courier-ldap - Courier mail server - LDAP support
courier-maildrop - Courier mail server - mail delivery agent [transitional
package]
courier-mlm - Courier mail server - mailing list manager
courier-mta - Courier mail server - ESMTP daemon
courier-mta-ssl - Courier mail server - ESMTP over SSL
courier-pcp - Courier mail server - PCP server
courier-pop - Courier mail server - POP3 server
courier-pop-ssl - Courier mail server - POP3 over SSL [transitional]
courier-ssl - Courier mail server - SSL/TLS Support [transitional]
courier-webadmin - Courier mail server - web-based administration frontend
sqwebmail - Courier mail server - webmail server
Closes: 824037
Changes:
courier (0.76.1-2) unstable; urgency=medium
.
[ Alexis Bienvenüe ]
* Make the build reproducible (Closes: #824037)
+ Use SOURCE_DATE_EPOCH for imapd version string.
+ Always use /bin/sh as SHELL, to get reproducible build.
.
[ Ondřej Surý ]
* Rebase patches on top of 0.76.1 release
Checksums-Sha1:
af4cfb5a5d0712979bbd9d5f552ec62542904c3b 3188 courier_0.76.1-2.dsc
f253554b4204bf72cb9a6f461fb7f9464f4ca6af 94112 courier_0.76.1-2.debian.tar.xz
Checksums-Sha256:
db2ce7037d2f7ff4392dc38df14642bb137bb73ced51da5c7df1424c5af6372a 3188
courier_0.76.1-2.dsc
2b1dee30673846f2799e6a33d2c3340d2e51249fbf41e6e68a5e3e9c711124a2 94112
courier_0.76.1-2.debian.tar.xz
Files:
cad1931694e0f177440072b301664b3b 3188 mail optional courier_0.76.1-2.dsc
13d0445abcce77e9d35c84ee5a10d5be 94112 mail optional
courier_0.76.1-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQJ8BAEBCgBmBQJXNNMgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzMEI5MzNEODBGQ0UzRDk4MUEyRDM4RkIw
Qzk5QjcwRUY0RkNCQjA3AAoJEAyZtw70/LsHDjIQAJ/1XJBUtjt8s6fGHN13REd3
oaD1hKCvJxBeHbzSNAAkA8AEwYkVGQb+/cbCH/tzFjmS1qm3GlisRK35ErsG0MNj
s+kq37Z91Zu7xv57uktcfxDtdN9idOKzRcOTsJuuKnKuH8r6zPLTHqCimFSEtRCu
9bpYPXc1SbTm70rJ4ALbP/qgnngW2Hc/bma3xQUNbljXGv/oiP/do5lh7WWHgNVI
LvQNP64iH/ZIgSdG+z+kVxfhonQx175ubuN31+wUtH0FaqgbRdBB8WcSlr6GE4Rn
tsJ+5QKMoiY3U1g77C4avOqe/XeVpCuUX/qZ43g1Ub2lXmX96fKxRkSibNnUj0/U
vFLt8FGS+qOLY3Jpq2zx/ZLC5ua5KStCuBhfTBFbaXvBy3EBdWxfwkm+VlTwqPg7
l9prf8Ij4mf1CB9LRh7DGRJ0KyClnygfL1pqgTyLmjefgRuzF498G1Qv3dHNQWTl
gH3Lk5fuzSg0VowrNoOh0Qy8OiHGuShSf/zUisOvFJ2vAn2kEwM6+cT/PkNgXGLH
cdCjBOEO3f1kxeWzcZS2a7Ymv43TKchuIov0t36V8146JQGZXvBp2/lrCKqvs/ek
o8UxElerLddCuy7qQbQClQz4dX6dCW+U0H96f2b+f1TLj3LG9tqp30f6CJVPuCxi
VuNivDW9ujXLn/Y6WDgg
=eq1r
-----END PGP SIGNATURE-----
--- End Message ---