Your message dated Thu, 27 Jul 2023 10:25:42 +0000
with message-id <[email protected]>
and subject line Bug#1040904: fixed in unity-java 1.1~b1+dfsg-3
has caused the Debian Bug report #1040904,
regarding unity-java: 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.)
--
1040904: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040904
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: unity-java
Version: 1.1~b1+dfsg-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
unity-java could not be built reproducibly.
This is because it shipped a 'STAMP' file within the .jar that contained
the current build date. I'm not convinced by the value of including this
file, but a patch is attached that ensures that the content of this file
is based on the value of SOURCE_DATE_EPOCH if it is available.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/Reproducible-build.patch 1970-01-01 01:00:00.000000000
+0100
--- b/debian/patches/Reproducible-build.patch 2023-07-12 09:30:30.471901700
+0100
@@ -0,0 +1,27 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2023-07-12
+
+--- unity-java-1.1~b1+dfsg.orig/src/java/Makefile.in
++++ unity-java-1.1~b1+dfsg/src/java/Makefile.in
+@@ -33,6 +33,11 @@ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ bindir=@bindir@
+
++ifdef SOURCE_DATE_EPOCH
++ BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" 2>/dev/null ||
date -u -r "$(SOURCE_DATE_EPOCH)" 2>/dev/null || date -u)
++else
++ BUILD_DATE ?= $(shell date)
++endif
+
+ all: unity.jar
+
+@@ -49,7 +54,7 @@ unity.jar: build/$(CP)/UnitParser.class
+ build/STAMP:
+ mkdir -p build/jdk
+ mkdir -p gen/$(CP)
+- date >build/STAMP
++ echo $(BUILD_DATE) >build/STAMP
+
+ build/$(CP)/UnitParser.class: $(CP)/UnitParser.java \
+ $(CP)/OneUnit.java \
--- a/debian/patches/series 2023-07-12 09:27:01.315266534 +0100
--- b/debian/patches/series 2023-07-12 09:30:28.083894735 +0100
@@ -1,3 +1,4 @@
Remove-Java-compatibility-restrictions-from-javac-call.patch
Fix-glitches-in-documentation-generation.patch
Disable-failing-test.patch
+Reproducible-build.patch
--- End Message ---
--- Begin Message ---
Source: unity-java
Source-Version: 1.1~b1+dfsg-3
Done: Ole Streicher <[email protected]>
We believe that the bug you reported is fixed in the latest version of
unity-java, 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.
Ole Streicher <[email protected]> (supplier of updated unity-java 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, 27 Jul 2023 11:52:27 +0200
Source: unity-java
Architecture: source
Version: 1.1~b1+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Astro Team <[email protected]>
Changed-By: Ole Streicher <[email protected]>
Closes: 1040904
Changes:
unity-java (1.1~b1+dfsg-3) unstable; urgency=medium
.
[ Ole Streicher ]
* Fix wrong dependency on junit4
.
[ Chris Lamb ]
* unity-java: please make the build reproducible (Closes: #1040904)
Checksums-Sha1:
3ec0a04934ee3d1c2a140e0208b81b0a90bc79eb 2197 unity-java_1.1~b1+dfsg-3.dsc
07af8f518e292024cf3971246fc2cc018a271fe7 4820
unity-java_1.1~b1+dfsg-3.debian.tar.xz
Checksums-Sha256:
4e55569582c1460b7675667abcb909766994d14294f20927e5440d736ef8f8aa 2197
unity-java_1.1~b1+dfsg-3.dsc
eaefce65b017c27fe7ac42ea38ff71c0c795031aadee20180b5eec201f332476 4820
unity-java_1.1~b1+dfsg-3.debian.tar.xz
Files:
943cee5ff65f110157effe1b4f140ccc 2197 java optional
unity-java_1.1~b1+dfsg-3.dsc
3fc81c6d6d7ead6dfe330b6c40e5a61c 4820 java optional
unity-java_1.1~b1+dfsg-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEuvxshffLFD/utvsVcRWv0HcQ3PcFAmTCPu8ACgkQcRWv0HcQ
3PfinRAAkAA7TmZPmF/ghGh1WiAb2Pv/BJ+7wAKXGB9UKxbJXWoFvyLKaIax0j7F
7F9ArG2mNALHnuVVN+nnq3C/jbUv3zx7yPlnTQavA8Onu51QNW6efSvZYA2LMtMd
1mnZaVYn3MY56Rv9QVEtF0W0YKxTa//9580mk3rTXmaBX3lxmoD6UnXReflEW1P7
ILmPv73p3jekA37ZYpkHjYFp6WfT72CmwRKeoAMJhIZy+q7ftQgKKpALUlzBk7gO
yXSeT6Iq/VjDRB01cQDw+jQ+Po1/SClwMyCfRBIMh2cPSGiNPT3qvGbOS3FsPahY
X8v7O3/PYzsYczZtXFXSxTdb425xhR6Z3Jqq3SlK+TpAbip/n5sRKpzyLCWAbWJZ
iCcBFc2Ua6PLy6ZxukfDebxnEdFoHe5IoVboaf0khPOBMvnY7u/OwpSWcYKkyam0
OVMYoXNT4y7kxMYYqjfOSe4IDdAPZvtLUrocy1/DcUnIFqMNp5gw5iwl+N1aPnBQ
IyK1jsM7VPGCBsCAeggWSOmrEFCyINf5NcVAQg3hVkxaNjg9wRpQ6MIK5ETtNYgb
v+RQ4pag2/QuV8f9RS6v8plhWd/mt4wyYHQb6eh7KjlHn8yCgXFqODI4yEqPpZm/
7mgXvY0AcnG9GY6orddN4TDYho5jTnZscqOTu6Woa5FxC+AJsTE=
=tyWf
-----END PGP SIGNATURE-----
--- End Message ---