summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2006-09-06 06:33:39 +0000
committerbrian <brian@FreeBSD.org>2006-09-06 06:33:39 +0000
commit1b7ae73acb536e1260e21e970525999d59fdb060 (patch)
tree3f5f97e3f915c492717c645ac568806033166958 /usr.sbin
parent66eb15d8c96c17c8167794c5c3541711a68664b4 (diff)
downloadFreeBSD-src-1b7ae73acb536e1260e21e970525999d59fdb060.zip
FreeBSD-src-1b7ae73acb536e1260e21e970525999d59fdb060.tar.gz
Remove __DATE__ so that compiling the same source produces the same binary
(for non-static binaries at least).
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/command.c3
-rw-r--r--usr.sbin/ppp/ppp.8.m46
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 3be3946..de5eec4 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -545,7 +545,6 @@ command_Expand(char **nargv, int argc, char const *const *oargv,
for (; arg < argc; arg++) {
nargv[arg] = strdup(oargv[arg]);
nargv[arg] = subst(nargv[arg], "AUTHNAME", bundle->cfg.auth.name);
- nargv[arg] = subst(nargv[arg], "COMPILATIONDATE", __DATE__);
nargv[arg] = substip(nargv[arg], "DNS0", bundle->ncp.ipcp.ns.dns[0]);
nargv[arg] = substip(nargv[arg], "DNS1", bundle->ncp.ipcp.ns.dns[1]);
nargv[arg] = subst(nargv[arg], "ENDDISC",
@@ -955,7 +954,7 @@ ShowStopped(struct cmdargs const *arg)
static int
ShowVersion(struct cmdargs const *arg)
{
- prompt_Printf(arg->prompt, "PPP Version %s - %s\n", Version, __DATE__);
+ prompt_Printf(arg->prompt, "PPP Version %s\n", Version);
return 0;
}
diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4
index d5e4027..4e0c8f4 100644
--- a/usr.sbin/ppp/ppp.8.m4
+++ b/usr.sbin/ppp/ppp.8.m4
@@ -27,7 +27,7 @@ changecom(,)dnl
.\"
.\" $FreeBSD$
.\"
-.Dd July 20, 2004
+.Dd September 05, 2006
.Dt PPP 8
.Os
.Sh NAME
@@ -3617,9 +3617,11 @@ See the
.Dq set authname
command below.
.It Li COMPILATIONDATE
-This is replaced with the date on which
+In previous software revisions, this was replaced with the date on which
.Nm
was compiled.
+This is no longer supported as it breaks the ability to recompile the same
+code to produce an exact duplicate of a previous compilation.
.It Li DNS0 & DNS1
These are replaced with the primary and secondary nameserver IP numbers.
If nameservers are negotiated by IPCP, the values of these macros will change.
OpenPOWER on IntegriCloud