Date: Thu, 3 Nov 2016 17:28:51 -0700 From: Mark Millard <markmi@dsl-only.net> To: Bryan Drewery <bdrewery@FreeBSD.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Use of env SRC_ENV_CONF=. . . for buildworld does not override/avoid use of /etc/src.conf : Intentional? Message-ID: <12E108A2-21FE-4756-B099-334ADD020891@dsl-only.net>
next in thread | raw e-mail | index | archive | help
I just had a case of "odd" command text in a buildworld that was based = on (in part) env SRC_ENV_CONF=3D. . . env __MAKE_CONF=3D. . . does not get the kind of behavior reported below = for /etc/src.conf . Overall this means that even with an explicit env SRC_ENV_CONF=3D. . . = one must separately prevent /etc/src.conf from contributing if the = SRC_ENV_CONF file is intended to cover everything. Looking in the log from a failure that resulted shows that = .MAKE.MAKEFILES shows both the SRC_ENV_CONF expansion and also a = /etc/src.conf as well (formatted to make the /etc/src.conf and such = stand out: separate lines wiht whitespace before and after and with just = one path on the line for such file paths): > Script started on Thu Nov 3 16:37:26 2016 > Command: env __MAKE_CONF=3D/root/src.configs/make.conf = SRC_ENV_CONF=3D/root/src.configs/src.conf.powerpc64-xtoolchain.amd64-host = WITH_META_MODE=3Dyes MAKEOBJDIRPREFIX=3D/usr/obj/powerpc64vtsc_xtoolchain = make -j 5 buildworld buildkernel . . . > .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk > /root/src.configs/src.conf.powerpc64-xtoolchain.amd64-host > /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/bsd.suffixes.mk > /root/src.configs/make.conf > /usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk > /etc/src.conf > /usr/src/include/rpcsvc/Makefile /usr/src/share/mk/bsd.prog.mk = /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/bsd.opts.mk = /usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/local.init.mk = /usr/src/share/mk/src.init > .mk /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk = /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.libnames.mk = /usr/src/share/mk/src.libnames.mk /usr/src/share/mk/src.opts.mk = /usr/src/share/mk/bsd.nls.mk /usr/src/share/mk/bsd.confs.mk = /usr/src/share > /mk/bsd.files.mk /usr/src/share/mk/bsd.incs.mk = /usr/src/share/mk/bsd.links.mk /usr/src/share/mk/bsd.man.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/share/mk/bsd.sys.mk' > .PATH=3D'. /usr/src/include/rpcsvc' Note: > # grep src.conf = /root/src.configs/src.conf.powerpc64-xtoolchain.amd64-host > # The context I was under was: > # uname -apKU > FreeBSD FreeBSDx64 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r308247M: Thu = Nov 3 04:05:55 PDT 2016 = markmi@FreeBSDx64:/usr/obj/amd64_clang/amd64.amd64/usr/src/sys/GENERIC-NOD= BG amd64 amd64 1200014 1200014 I'd just cloned and switched from a stable/11 context to head = (12-CURRENT). If this is intentional then I think the man src.conf references and such = should be explicit about the /etc/make.conf vs. /etc/src.conf = distinction for __MAKE_CONF=3D vs. SRC_ENV_CONF=3D . =3D=3D=3D Mark Millard markmi at dsl-only.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12E108A2-21FE-4756-B099-334ADD020891>