Debian Codegraph @

debian/patches/reproducible_build.patch

raw symbols SCIP
1 Descriptionscip-debian debian infernal 1.1.5-4 infernal/patches/`reproducible_build.patch`#Description.: Make the build reproducible
2 Authorscip-debian debian infernal 1.1.5-4 infernal/patches/`reproducible_build.patch`#Author.: Chris Lamb <[email protected]scip-debian . . . identity/`[email protected]`.>
3 Bug-Debianscip-debian debian infernal 1.1.5-4 infernal/patches/`reproducible_build.patch`#Bug-Debian.: https://bugs.debian.org/946315scip-debian-bts debian-bts . . 946315:
4 Last-Updatescip-debian debian infernal 1.1.5-4 infernal/patches/`reproducible_build.patch`#Last-Update.: 2019-12-05
5 Forwardedscip-debian debian infernal 1.1.5-4 infernal/patches/`reproducible_build.patch`#Forwarded.: https://github.com/EddyRivasLab/infernal/pull/37
6
7 --- a/hmmer/src/p7_tophits.cscip-debian debian infernal 1.1.5-4 infernal/upstream/`hmmer/src/p7_tophits.c`:
8 +++ b/hmmer/src/p7_tophits.cscip-debian debian infernal 1.1.5-4 infernal/upstream/`hmmer/src/p7_tophits.c`:
9 @@ -2002,8 +2002,10 @@ p7_tophits_TabularTail(FILE *ofp, const
10 if (fprintf(ofp, "# Query file: %s\n", (qfile == NULL) ? "[none]" : qfile) < 0) ESL_XEXCEPTION_SYS(eslEWRITE, "tabular output tail, write failed");
11 if (fprintf(ofp, "# Target file: %s\n", (tfile == NULL) ? "[none]" : tfile) < 0) ESL_XEXCEPTION_SYS(eslEWRITE, "tabular output tail, write failed");
12 if (fprintf(ofp, "# Option settings: %s\n", spoof_cmd) < 0) ESL_XEXCEPTION_SYS(eslEWRITE, "tabular output tail, write failed");
13 - if (fprintf(ofp, "# Current dir: %s\n", (cwd == NULL) ? "[unknown]" : cwd) < 0) ESL_XEXCEPTION_SYS(eslEWRITE, "tabular output tail, write failed");
14 - if (fprintf(ofp, "# Date: %s", timestamp) < 0) /* timestamp ends in \n */ ESL_XEXCEPTION_SYS(eslEWRITE, "tabular output tail, write failed");
15 + if (getenv("SOURCE_DATE_EPOCH") != NULL) {
16 + if (fprintf(ofp, "# Current dir: %s\n", (cwd == NULL) ? "[unknown]" : cwd) < 0) ESL_XEXCEPTION_SYS(eslEWRITE, "tabular output tail, write failed");
17 + if (fprintf(ofp, "# Date: %s", timestamp) < 0) /* timestamp ends in \n */ ESL_XEXCEPTION_SYS(eslEWRITE, "tabular output tail, write failed");
18 + }
19 if (fprintf(ofp, "# [ok]\n") < 0) ESL_XEXCEPTION_SYS(eslEWRITE, "tabular output tail, write failed");
20
21 free(spoof_cmd);
22 --- a/src/cm_tophits.cscip-debian debian infernal 1.1.5-4 infernal/upstream/`src/cm_tophits.c`:
23 +++ b/src/cm_tophits.cscip-debian debian infernal 1.1.5-4 infernal/upstream/`src/cm_tophits.c`:
24 @@ -2801,8 +2801,10 @@ cm_tophits_TabularTail(FILE *ofp, const
25 fprintf(ofp, "# Query file: %s\n", (qfile == NULL) ? "[none]" : qfile);
26 fprintf(ofp, "# Target file: %s\n", (tfile == NULL) ? "[none]" : tfile);
27 fprintf(ofp, "# Option settings: %s\n", spoof_cmd);
28 - fprintf(ofp, "# Current dir: %s\n", (cwd == NULL) ? "[unknown]" : cwd);
29 - fprintf(ofp, "# Date: %s", timestamp); /* timestamp ends in \n */
30 + if (getenv("SOURCE_DATE_EPOCH") != NULL) {
31 + fprintf(ofp, "# Current dir: %s\n", (cwd == NULL) ? "[unknown]" : cwd);
32 + fprintf(ofp, "# Date: %s", timestamp); /* timestamp ends in \n */
33 + }
34 fprintf(ofp, "# [ok]\n");
35
36 free(spoof_cmd);