From owner-freebsd-toolchain@freebsd.org Fri Nov 4 09:04:36 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F04A9C2EC57; Fri, 4 Nov 2016 09:04:36 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: from mail-qt0-x229.google.com (mail-qt0-x229.google.com [IPv6:2607:f8b0:400d:c0d::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5DBC1343; Fri, 4 Nov 2016 09:04:36 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: by mail-qt0-x229.google.com with SMTP id c47so44090547qtc.2; Fri, 04 Nov 2016 02:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=GOGzkNFxV5SB+RwImEltih/eXoLjAFU2VRtxMaWu2NY=; b=B8i6ZffLQPU9vE8ZOQhfbWSNPAPOTCkJa9pvHhXhoUNA7oC4/PE3/pHVQNb2tuNze9 qLQZCaNEoon0xihqiYYDxf8ZyKneTA15Q38//+dMKAKhY8dsTRfeM8+gb/NYkJqxUvpE hPHPZaNfDtJF5WErNQzA/OZ7DNhSem8sVAF76G19hgk5mz5rZLuLZvINNATk0O+lAe/f 11PutFYuNnKsWJHM6kejDyCjlbbOwb6QPypt3KvzeJwvotrDYWI4mnMbPv7Gc0CkFqfW I4L0PzSGUeuipkyIsfli4/WOHn//apC7x5CLQ4vjOfm58zOYdDFg/9XXooVy+i4GIuMt kK2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=GOGzkNFxV5SB+RwImEltih/eXoLjAFU2VRtxMaWu2NY=; b=nORIIlcW0iyUF3IQ9dFkSOzJNdfj5+hAPvtsSpdt+w3ZlS1ghFl7AQzofVlqP3cmji mzTlFB54IVy3NAAxryNth5tvzuBcc/cY3gR7MUV/103Uedn7t+MirrwtdFLLw12YVf+o gaikQaNqABrhKPygcQK9QwA1rhBrAa9a2eWukPT6wHpzA7uv1eLsmDULZghnm9uJMJXy D8nWJFFac6LcfH2/8kOvwkd5hRVkxwaFS4PWgaCHtteAf58ypZ1HTSDm51BYuvpABZsa wC3Lr/qVw/7iD6FXrwXP5ZyVU1zjW+KuJR+MpGdSeY0XKRvC4ogE2EDncxpzxnAqu1MW vK8Q== X-Gm-Message-State: ABUngvf4hw4rj5AHu7sDrqLRaZ1sRrDkdSu6rK11SZhsbYL3Z+OjbpeHipPa5KtcmDpYwQ== X-Received: by 10.200.45.129 with SMTP id p1mr12340403qta.96.1478250275798; Fri, 04 Nov 2016 02:04:35 -0700 (PDT) Received: from mbp-eth.home ([186.249.133.26]) by smtp.gmail.com with ESMTPSA id c189sm6952074qkg.21.2016.11.04.02.04.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Nov 2016 02:04:35 -0700 (PDT) Sender: Renato Botelho From: Renato Botelho Message-Id: Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: Use of env SRC_ENV_CONF=. . . for buildworld does not override/avoid use of /etc/src.conf : Intentional? Date: Fri, 4 Nov 2016 07:04:30 -0200 In-Reply-To: <12E108A2-21FE-4756-B099-334ADD020891@dsl-only.net> Cc: Bryan Drewery , FreeBSD Toolchain , FreeBSD-STABLE Mailing List , FreeBSD Current To: Mark Millard References: <12E108A2-21FE-4756-B099-334ADD020891@dsl-only.net> X-Mailer: Apple Mail (2.3251) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 09:04:37 -0000 > On 3 Nov 2016, at 22:28, Mark Millard 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