Remove __DATE__ so that compiling the same source produces the same binary
(for non-static binaries at least).
This commit is contained in:
parent
66eb15d8c9
commit
1b7ae73acb
@ -545,7 +545,6 @@ command_Expand(char **nargv, int argc, char const *const *oargv,
|
|||||||
for (; arg < argc; arg++) {
|
for (; arg < argc; arg++) {
|
||||||
nargv[arg] = strdup(oargv[arg]);
|
nargv[arg] = strdup(oargv[arg]);
|
||||||
nargv[arg] = subst(nargv[arg], "AUTHNAME", bundle->cfg.auth.name);
|
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], "DNS0", bundle->ncp.ipcp.ns.dns[0]);
|
||||||
nargv[arg] = substip(nargv[arg], "DNS1", bundle->ncp.ipcp.ns.dns[1]);
|
nargv[arg] = substip(nargv[arg], "DNS1", bundle->ncp.ipcp.ns.dns[1]);
|
||||||
nargv[arg] = subst(nargv[arg], "ENDDISC",
|
nargv[arg] = subst(nargv[arg], "ENDDISC",
|
||||||
@ -955,7 +954,7 @@ ShowStopped(struct cmdargs const *arg)
|
|||||||
static int
|
static int
|
||||||
ShowVersion(struct cmdargs const *arg)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ changecom(,)dnl
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd July 20, 2004
|
.Dd September 05, 2006
|
||||||
.Dt PPP 8
|
.Dt PPP 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -3617,9 +3617,11 @@ See the
|
|||||||
.Dq set authname
|
.Dq set authname
|
||||||
command below.
|
command below.
|
||||||
.It Li COMPILATIONDATE
|
.It Li COMPILATIONDATE
|
||||||
This is replaced with the date on which
|
In previous software revisions, this was replaced with the date on which
|
||||||
.Nm
|
.Nm
|
||||||
was compiled.
|
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
|
.It Li DNS0 & DNS1
|
||||||
These are replaced with the primary and secondary nameserver IP numbers.
|
These are replaced with the primary and secondary nameserver IP numbers.
|
||||||
If nameservers are negotiated by IPCP, the values of these macros will change.
|
If nameservers are negotiated by IPCP, the values of these macros will change.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user