1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
From: Robert Luberda <robert@debian.org>
Date: Wed, 9 Sep 2015 21:37:37 +0200
Subject: 13-remove-sccsid
Remove sccsid() function togethwe with SCCSID string that
contained __DATE__ and __TIME__ macros. This should cause
binary to be more reproducible, see
https://wiki.debian.org/ReproducibleBuilds/TimestampsFromCPPMacros
---
cifsiostat.c | 3 ---
iostat.c | 3 ---
mpstat.c | 3 ---
pidstat.c | 3 ---
sadc.c | 3 ---
sadf.c | 3 ---
sar.c | 3 ---
tapestat.c | 3 ---
8 files changed, 24 deletions(-)
diff --git a/cifsiostat.c b/cifsiostat.c
index 0249ccb..40da3a6 100644
--- a/cifsiostat.c
+++ b/cifsiostat.c
@@ -41,9 +41,6 @@
#define _(string) (string)
#endif
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " __TIME__
-char *sccsid(void) { return (SCCSID); }
-
unsigned long long uptime0[2] = {0, 0};
struct cifs_stats *st_cifs[2];
struct io_hdr_stats *st_hdr_cifs;
diff --git a/iostat.c b/iostat.c
index 9992ea9..639c3e4 100644
--- a/iostat.c
+++ b/iostat.c
@@ -48,9 +48,6 @@
#define _(string) (string)
#endif
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " __TIME__
-char *sccsid(void) { return (SCCSID); }
-
struct stats_cpu *st_cpu[2];
unsigned long long uptime[2] = {0, 0};
unsigned long long uptime0[2] = {0, 0};
diff --git a/mpstat.c b/mpstat.c
index abcd9aa..a6f93d6 100644
--- a/mpstat.c
+++ b/mpstat.c
@@ -42,9 +42,6 @@
#define _(string) (string)
#endif
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " __TIME__
-char *sccsid(void) { return (SCCSID); }
-
unsigned long long uptime[3] = {0, 0, 0};
unsigned long long uptime0[3] = {0, 0, 0};
diff --git a/pidstat.c b/pidstat.c
index 546f1bc..a645331 100644
--- a/pidstat.c
+++ b/pidstat.c
@@ -47,9 +47,6 @@
#define _(string) (string)
#endif
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " __TIME__
-char *sccsid(void) { return (SCCSID); }
-
unsigned long long uptime[3] = {0, 0, 0};
unsigned long long uptime0[3] = {0, 0, 0};
struct pid_stats *st_pid_list[3] = {NULL, NULL, NULL};
diff --git a/sadc.c b/sadc.c
index 016d8f2..aaf219f 100644
--- a/sadc.c
+++ b/sadc.c
@@ -52,9 +52,6 @@
#include "sensors/error.h"
#endif
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " __TIME__
-char *sccsid(void) { return (SCCSID); }
-
long interval = 0;
unsigned int flags = 0;
diff --git a/sadf.c b/sadf.c
index 58803e6..a143363 100644
--- a/sadf.c
+++ b/sadf.c
@@ -41,9 +41,6 @@
# define _(string) (string)
#endif
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " __TIME__
-char *sccsid(void) { return (SCCSID); }
-
long interval = -1, count = 0;
unsigned int flags = 0;
diff --git a/sar.c b/sar.c
index a2f261e..fc43476 100644
--- a/sar.c
+++ b/sar.c
@@ -42,9 +42,6 @@
#define _(string) (string)
#endif
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " __TIME__
-char *sccsid(void) { return (SCCSID); }
-
/* Interval and count parameters */
long interval = -1, count = 0;
diff --git a/tapestat.c b/tapestat.c
index bbe05f0..28aa8a4 100644
--- a/tapestat.c
+++ b/tapestat.c
@@ -52,9 +52,6 @@
#define _(string) (string)
#endif
-#define SCCSID "@(#)sysstat-" VERSION ": " __FILE__ " compiled " __DATE__ " " __TIME__
-char *sccsid(void) { return (SCCSID); }
-
int cpu_nr = 0; /* Nb of processors on the machine */
int flags = 0; /* Flag for common options and system state */
|