Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Also substitute ${X11SRCDIR} for the r...



details:   https://anonhg.NetBSD.org/src/rev/8353fa85d1ff
branches:  trunk
changeset: 319202:8353fa85d1ff
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 20 14:39:53 2018 +0000

description:
Also substitute ${X11SRCDIR} for the random seed for reproducible builds so
that the random seed is consistent.
XXX: pullup-8

diffstat:

 share/mk/sys.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 8531da5a9749 -r 8353fa85d1ff share/mk/sys.mk
--- a/share/mk/sys.mk   Sun May 20 14:08:32 2018 +0000
+++ b/share/mk/sys.mk   Sun May 20 14:39:53 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: sys.mk,v 1.130 2018/02/25 18:53:23 chs Exp $
+#      $NetBSD: sys.mk,v 1.131 2018/05/20 14:39:53 christos Exp $
 #      @(#)sys.mk      8.2 (Berkeley) 3/21/94
 #
 # This file contains the basic rules for make(1) and is read first
@@ -55,7 +55,8 @@
 __ALLSRC1=     ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}}
 __ALLSRC2=     ${empty(MAKEOBJDIR):?${__ALLSRC1}:${__ALLSRC1:S|^${MAKEOBJDIR}|^obj|}}
 __ALLSRC3=     ${empty(NETBSDSRCDIR):?${__ALLSRC2}:${__ALLSRC2:S|^${NETBSDSRCDIR}|^src|}}
-__BUILDSEED=   ${BUILDSEED}/${__ALLSRC3:O}/${.TARGET}
+__ALLSRC4=     ${empty(X11SRCDIR):?${__ALLSRC3}:${__ALLSRC3:S|^${X11SRCDIR}|^xsrc|}}
+__BUILDSEED=   ${BUILDSEED}/${__ALLSRC4:O}/${.TARGET}
 _CXXSEED?=     ${BUILDSEED:D-frandom-seed=${__BUILDSEED:hash}}
 
 COMPILE.cc?=   ${CXX} ${_CXXSEED} ${CXXFLAGS} ${DTRACE_OPTS} ${CPPFLAGS} -c



Home | Main Index | Thread Index | Old Index