Your message dated Mon, 28 Aug 2017 13:35:23 +0000
with message-id <[email protected]>
and subject line Bug#863015: fixed in jellyfish 2.2.6-4
has caused the Debian Bug report #863015,
regarding jellyfish: please make the output 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.)
--
863015: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863015
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: jellyfish
Version: 2.2.6-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps toolchain buildpath
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that jellyfish generated JSON files that are not reproducible.
This is due to including the output of getcwd(3) and the current date
in the local timezone. It affects other packages in the archive (eg.
src:quorum).
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/include/jellyfish/generic_file_header.hpp
b/include/jellyfish/generic_file_header.hpp
index a8ddf82..99f80b2 100644
--- a/include/jellyfish/generic_file_header.hpp
+++ b/include/jellyfish/generic_file_header.hpp
@@ -180,6 +180,8 @@ public:
protected:
std::string get_hostname() const {
+ if(std::getenv("SOURCE_DATE_EPOCH"))
+ return "";
struct utsname buf;
if(uname(&buf) == -1)
return "";
@@ -187,6 +189,8 @@ protected:
}
std::string get_pwd() const {
+ if(std::getenv("SOURCE_DATE_EPOCH"))
+ return ".";
#ifdef PATH_MAX
size_t len = PATH_MAX;
#else
@@ -202,6 +206,16 @@ protected:
std::string get_localtime() const {
time_t t = time(0);
std::string res(ctime(&t));
+ char *source_date_epoch = std::getenv("SOURCE_DATE_EPOCH");
+ if(source_date_epoch) {
+ std::istringstream iss(source_date_epoch);
+ iss >> t;
+ if(iss.fail() || !iss.eof()) {
+ std::cerr << "Error: Cannot parse SOURCE_DATE_EPOCH as integer\n";
+ exit(27);
+ }
+ res = asctime(gmtime(&t));
+ }
chomp(res);
return res;
}
--- End Message ---
--- Begin Message ---
Source: jellyfish
Source-Version: 2.2.6-4
We believe that the bug you reported is fixed in the latest version of
jellyfish, 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.
Andreas Tille <[email protected]> (supplier of updated jellyfish 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, 28 Aug 2017 14:40:40 +0200
Source: jellyfish
Binary: jellyfish libjellyfish-2.0-2 libjellyfish-2.0-dev python3-dna-jellyfish
libjellyfish-perl jellyfish-examples
Architecture: source
Version: 2.2.6-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team
<[email protected]>
Changed-By: Andreas Tille <[email protected]>
Description:
jellyfish - count k-mers in DNA sequences
jellyfish-examples - count k-mers in DNA sequences (examples for testing)
libjellyfish-2.0-2 - count k-mers in DNA sequences (dynamic library of
jellyfish)
libjellyfish-2.0-dev - count k-mers in DNA sequences (development files of
jellyfish)
libjellyfish-perl - count k-mers in DNA sequences (Perl bindings of jellyfish)
python3-dna-jellyfish - count k-mers in DNA sequences (Python bindings of
jellyfish)
Closes: 863015
Changes:
jellyfish (2.2.6-4) unstable; urgency=medium
.
* Make sure reproducible patch will not break test suite (Thanks to
Chris Lamb <[email protected]> for the fix)
Closes: #863015
* Autoreconf not needed with debhelper 10
* Do not parse debian/changelog
* Fix whatis entry in manpage
* Fix spelling in manpage
Checksums-Sha1:
57d9b23d7d5ac347b1a19eb1e8d6e3652bcaff33 2570 jellyfish_2.2.6-4.dsc
f5567d9718a128770f331ea64926df4ddcc88763 12240 jellyfish_2.2.6-4.debian.tar.xz
4a9d9017ca1ba65d0f4ddaba20740255a302d168 13018
jellyfish_2.2.6-4_source.buildinfo
Checksums-Sha256:
f6019ac0bea1dc452c728a085bdf042bc3841c6f59cc4a7d59554410a6d1e792 2570
jellyfish_2.2.6-4.dsc
d5fd20cd31019c8fef541c96a4c6206b9cc02891906ae0526db0fea38b93d457 12240
jellyfish_2.2.6-4.debian.tar.xz
8a84bd7ea92610d308923b4f935f7ec2b8fff12ef7e1acbe33e81e7fe731e2a6 13018
jellyfish_2.2.6-4_source.buildinfo
Files:
d7a7a41fde6f6ea5d636b9314d31c8f6 2570 science optional jellyfish_2.2.6-4.dsc
897d3d52a131c462604f63cdfb025d0f 12240 science optional
jellyfish_2.2.6-4.debian.tar.xz
fbed2483e0ef9dbe0f241cb8d86a99b8 13018 science optional
jellyfish_2.2.6-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJCBAEBCgAsFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAlmkGQYOHHRpbGxlYUBy
a2kuZGUACgkQV4oElNHGRtGUuxAAmqYi1YyzCf+yj+g9KAMv2B6vqMkdpp5ZCRip
6Hm4JUc8deKizeqsseICy/U0fenEATvtd1qMzZGQtXojMJO0DJrw+CYxKr7Bg6FZ
60SlCnyJbZ+3v5W7kVkRp6DNcQ6YdFzO8EfSdgbdRTig9jTcgxi2P1l6YKKbp0N5
o+uulO6F+owxyYvBrsKcINJXGg/rsFvIvRcvRD0B/mU8VOwwZgYIcMSEBCDSBeNa
KuskoNuAsgplkKGV4WZc3gHVLA3Zh96JcFng/yURr7BOr/2RcUbQR1jZgUXT7jqu
SKg0g4voatDMSc8WpSSaJR7U2IuNnO58UHDy9FJfrpNR3DPXpjxgDub6LU+UPRov
BAHfWpb0QsyybYAAaTbyNYJnIJfXTYqEmXAFCK06YnyqVIsblwJjpMcILbst+HAI
aljZchRRlyU7goSaFx6vSGwXeqg2rnFasNxASVO3byyfLb1qCuTba+wG2/wT49cT
n6vodvbJo8f7rp5jswVnSt736LxZ5OMWNVT4Mjco+LTJ6+LWuOXqkgbyZFIj9jPc
sLVTzPrm2pY0mHguodeCrGUxqob2CcwDmwQBzYkaYyy8U1w3R4DtT4jUSUk5K2+V
rmdwbjx7DINvUiPXrl9UVdneU8NSEic+2/GUczn76w1wPmY0B7aY0R6IFcDqthxj
pDm2Y00=
=HoIo
-----END PGP SIGNATURE-----
--- End Message ---