Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Nov 2016 07:04:30 -0200
From:      Renato Botelho <garga@FreeBSD.org>
To:        Mark Millard <markmi@dsl-only.net>
Cc:        Bryan Drewery <bdrewery@FreeBSD.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Use of env SRC_ENV_CONF=. . . for buildworld does not override/avoid use of /etc/src.conf : Intentional?
Message-ID:  <D360EEDD-8F44-497F-9F83-0758FB7308B2@FreeBSD.org>
In-Reply-To: <12E108A2-21FE-4756-B099-334ADD020891@dsl-only.net>
References:  <12E108A2-21FE-4756-B099-334ADD020891@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 3 Nov 2016, at 22:28, Mark Millard <markmi@dsl-only.net> wrote:
>=20
> I just had a case of "odd" command text in a buildworld that was based =
on (in part) env SRC_ENV_CONF=3D. . .
>=20
> env __MAKE_CONF=3D. . . does not get the kind of behavior reported =
below for /etc/src.conf .
>=20
> 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.
>=20
> 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):
>=20
>> 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
>=20
>> /root/src.configs/src.conf.powerpc64-xtoolchain.amd64-host
>=20
>> /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/bsd.suffixes.mk
>=20
>> /root/src.configs/make.conf
>=20
>> /usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk
>=20
>> /etc/src.conf
>=20
>> /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'
>=20
> Note:
>=20
>> # grep src.conf =
/root/src.configs/src.conf.powerpc64-xtoolchain.amd64-host
>> #
>=20
>=20
> The context I was under was:
>=20
>> # 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
>=20
> I'd just cloned and switched from a stable/11 context to head =
(12-CURRENT).
>=20
> 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 .


There are 3 possible files and 3 possible variables to cover it. =
SRC_ENV_CONF is to /etc/src-env.conf and not to /etc/src.conf. Default =
values are:

__MAKE_CONF=3D/etc/make.conf
SRCCONF=3D/etc/src.conf
SRC_ENV_CONF=3D/etc/src-env.conf

According src.conf(5) there are few items that are supposed to be =
defined in /etc/src-env.conf instead of /etc/src.conf

--
Renato Botelho




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D360EEDD-8F44-497F-9F83-0758FB7308B2>