Source: nasm
Version: 2.11.06-1really2.11.05-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that nasm could not be built reproducibly.

The attached patch removes extra timestamps from the build system.
Once applied, and after an issue with Ghostscript [2] is fixed, nasm can
be built reproducibly in our current experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds
 [2]: https://wiki.debian.org/ReproducibleBuilds/PdfGeneratedByGhostscript

Regards,
Valentin
--- nasm-2.11.06-1really2.11.05.orig/nasm.c
+++ nasm-2.11.06-1really2.11.05/nasm.c
@@ -637,8 +637,8 @@ struct textargs textopts[] = {
 
 static void show_version(void)
 {
-    printf("NASM version %s compiled on %s%s\n",
-           nasm_version, nasm_date, nasm_compile_options);
+    printf("NASM version %s%s\n",
+           nasm_version, nasm_compile_options);
     exit(0);
 }
 
--- nasm-2.11.06-1really2.11.05.orig/nasm.h
+++ nasm-2.11.06-1really2.11.05/nasm.h
@@ -1183,7 +1183,6 @@ extern int maxbits;             /* max b
  * NASM version strings, defined in ver.c
  */
 extern const char nasm_version[];
-extern const char nasm_date[];
 extern const char nasm_compile_options[];
 extern const char nasm_comment[];
 extern const char nasm_signature[];
--- nasm-2.11.06-1really2.11.05.orig/ndisasm.c
+++ nasm-2.11.06-1really2.11.05/ndisasm.c
@@ -118,8 +118,8 @@ int main(int argc, char **argv)
                 case 'r':
                 case 'v':
                     fprintf(stderr,
-                            "NDISASM version %s compiled on %s\n",
-			    nasm_version, nasm_date);
+                            "NDISASM version %s\n",
+			    nasm_version);
                     return 0;
                 case 'u':	/* -u for -b 32, -uu for -b 64 */
 		    if (bits < 64)
--- nasm-2.11.06-1really2.11.05.orig/ver.c
+++ nasm-2.11.06-1really2.11.05/ver.c
@@ -36,7 +36,6 @@
 
 /* This is printed when entering nasm -v */
 const char nasm_version[] = NASM_VER;
-const char nasm_date[] = __DATE__;
 const char nasm_compile_options[] = ""
 #ifdef DEBUG
     " with -DDEBUG"

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to