Remove string stat_version
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 17 Dec 2015 06:16:58 +0000 (07:16 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 17 Dec 2015 13:51:15 +0000 (14:51 +0100)
This string contained a timestamp indicating when ./configure had
been run.  This makes for reproducibility issues and possibly
privacy issues too.

src/libpspp/automake.mk
src/libpspp/message.c
src/libpspp/version.h
src/output/odt.c
src/ui/terminal/terminal-reader.c

index 1a7b54f066351df7a1c66ec2e5b594c44d909dbe..e6ebd251e1741898fcb3b158b0098eeeca8b7884 100644 (file)
@@ -122,8 +122,6 @@ src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile
        $(AM_V_at)echo "#include \"version.h\"" >> $@,tmp
        $(AM_V_at)echo "const char bare_version[] = \"$(VERSION)\";" >> $@,tmp
        $(AM_V_at)echo "const char version[] = \"GNU $(PACKAGE) $(VERSION)\";" >> $@,tmp
-       $(AM_V_at)echo "const char stat_version[] = \"GNU $(PACKAGE) $(VERSION) \
-$(AM_V_at)(`LC_ALL=C TZ=UTC date`).\";" >> $@,tmp
        $(AM_V_at)echo "const char host_system[] = \"$(host_triplet)\";" >> $@,tmp
        $(AM_V_at)echo "const char build_system[] = \"$(build_triplet)\";" >> $@,tmp
        $(AM_V_at)echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@,tmp
index 65432da65226ae0ad7eeff2d17ee3ca4383818c8..0597588784d12cfeec1be197edd449d5274feb38 100644 (file)
@@ -396,7 +396,7 @@ request_bug_report (const char *msg)
   fprintf (stderr, "include the syntax file that triggered it and a sample\n");
   fprintf (stderr, "of any data file used for input.\n");
   fprintf (stderr, "proximate cause:     %s\n", msg);
-  fprintf (stderr, "version:             %s\n", stat_version);
+  fprintf (stderr, "version:             %s\n", version);
   fprintf (stderr, "host_system:         %s\n", host_system);
   fprintf (stderr, "build_system:        %s\n", build_system);
   fprintf (stderr, "locale_dir:          %s\n", locale_dir);
index 4ce892f9a20a6fca39430d8fb5ecb221d455d17f..a89480e549cd55d1b97214085e7df61e8b25bfb9 100644 (file)
@@ -23,10 +23,6 @@ extern const char bare_version[];
 /* "GNU PSPP A.B.C" */
 extern const char version[];
 
-/* "GNU PSPP version A.B (date), Copyright (C) XXXX Free Software
-   Foundation, Inc." */
-extern const char stat_version[];
-
 /* Canonical name of host system type. */
 extern const char host_system[];
 
index 8e94dd7ba6694769275da5769d67c59591a7866c..521e5b877fd1f905681ce9f3c67cbf384f1acdaa 100644 (file)
@@ -245,7 +245,7 @@ write_meta_data (struct odt_driver *odt)
   xmlTextWriterStartElement (w, _xml ("office:meta"));
   {
     xmlTextWriterStartElement (w, _xml ("meta:generator"));
-    xmlTextWriterWriteString (w, _xml (stat_version));
+    xmlTextWriterWriteString (w, _xml (version));
     xmlTextWriterEndElement (w);
   }
 
index 0b47a3d3ed30cf0dd7a0e5331640c186ef30c8ba..87fca837f9b331328793e9a7eb6d4f8269cf8a1f 100644 (file)
@@ -97,7 +97,7 @@ welcome (void)
         "it\nunder certain conditions; type \"show copying.\" to see the "
         "conditions.\nThere is ABSOLUTELY NO WARRANTY for PSPP; type \"show "
         "warranty.\" for details.\n", stdout);
-  puts (stat_version);
+  puts (version);
   journal_init ();
 }