[med-svn] [Git][med-team/hhsuite][repro] Attempt reproducible build
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Sat Jul 17 17:04:45 BST 2021
Nilesh Patra pushed to branch repro at Debian Med / hhsuite
Commits:
4d87b6ae by Nilesh Patra at 2021-07-17T21:33:10+05:30
Attempt reproducible build
- - - - -
3 changed files:
- + debian/patches/fix
- debian/patches/series
- debian/salsa-ci.yml
Changes:
=====================================
debian/patches/fix
=====================================
@@ -0,0 +1,32 @@
+--- a/src/hhhitlist.cpp
++++ b/src/hhhitlist.cpp
+@@ -26,8 +26,17 @@
+
+ // Print date stamp
+ time_t* tp = new time_t;
+- *tp = time(NULL);
+-
++ char *source_date_epoch = std::getenv("SOURCE_DATE_EPOCH");
++ if (source_date_epoch) {
++ std::istringstream iss(source_date_epoch);
++ iss >> *tp;
++ if (iss.fail() || !iss.eof()) {
++ std::cerr << "Error: Cannot parse SOURCE_DATE_EPOCH as integer\n";
++ exit(27);
++ }
++ } else {
++ *tp = std::time(NULL);
++ }
+ out << "Date " << ctime(tp);
+ delete (tp);
+
+--- a/data/query.hhr
++++ b/data/query.hhr
+@@ -3,7 +3,6 @@
+ No_of_seqs 1 out of 1
+ Neff 1.0
+ Searched_HMMs 1000
+-Date Fri Jul 26 12:18:42 2013
+ Command ./hhblits -i ../data/query.seq -d /home/meiermark/databases/uniprot20_2013_03/uniprot20_2013_03 -cpu 4 -n 1 -usecs -scores ./test.scores
+
+ No Hit Prob E-value P-value Score SS Cols Query HMM Template HMM
=====================================
debian/patches/series
=====================================
@@ -5,3 +5,4 @@ drop-fmemopen.h.patch
python3
ppc64el.patch
exe_suffix
+fix
=====================================
debian/salsa-ci.yml
=====================================
@@ -2,3 +2,4 @@
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+
View it on GitLab: https://salsa.debian.org/med-team/hhsuite/-/commit/4d87b6ae609591b019e38e26bd167c400b40a3b8
--
View it on GitLab: https://salsa.debian.org/med-team/hhsuite/-/commit/4d87b6ae609591b019e38e26bd167c400b40a3b8
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210717/85d5337a/attachment-0001.htm>
More information about the debian-med-commit
mailing list