From owner-freebsd-current@freebsd.org Sun Mar 12 02:35:36 2017 Return-Path: Delivered-To: freebsd-current@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 0F110D078D5 for ; Sun, 12 Mar 2017 02:35:36 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pg0-x22a.google.com (mail-pg0-x22a.google.com [IPv6:2607:f8b0:400e:c05::22a]) (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 CFC271ED2; Sun, 12 Mar 2017 02:35:35 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pg0-x22a.google.com with SMTP id 25so51865724pgy.0; Sat, 11 Mar 2017 18:35:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=y0PKcwzNmV3c43OTDrvO1A9UrRaCC7SEg3fsTAGYmaU=; b=TYrrj69h0IzfGdfckedcIyM3srMOXhrDpdBulLXAidSEqm5+beo59lzugF80XbS1/U D750sfI07p4fWvuF3R0TwCfvLkz/jYQf8Xrz9NUAYtWf70dhYMdzISS8JDsLc7jfpnIK fNWocnuVdu4mleuurzkg1P7FXj7cnTRr1jYvY4LZZVbhbxO5VJb47oblPeGaSNfSI/ea fjPcAu8umjCgaQtEjYF+HzuaPGRMJrMSn2R7UY9CL0aIkA5g1msYjoZZABtjL5MJjwDr k8CMknKXAJ1IuBOewc7vygIy9mLKyVCdMVusGxWlTLGBTVFjpFbe3sSMkLwXVLBwY+/J Bldw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=y0PKcwzNmV3c43OTDrvO1A9UrRaCC7SEg3fsTAGYmaU=; b=q2ZiCWIzGzk80jsGPHR++LpUcgdLbwDCm/7PHXq0EApddEECVhbElopgi7btCQLTjm vXY0PmhaOpk6KaUGvsjbEJg56DCtpwfHxr8pR8RcvPCblU/BCFDu04wETH0NtruYeiUf Wy9fYoXIKNTACYVS345A2G7UEJkEKzL2kEXVtcZu9dTVX21tC0uGMD2x2NxIghrTkl+W pIskcSdFWFZ6mMftiWUlJCChO/vK9e4tQcipWnvKbq6/DT7DtrnNN0bOnUa8whIa9Vj7 7pXaHa6pVVe6UcE+Qrbcrvf+r5hyRgkYmcH2+Kk4sn77NWYUD5xULoNLN5hWgsGDXWAu CuPA== X-Gm-Message-State: AMke39mI5Xw4Zbdo7Cx2pp0g9gTRKKafm7ep7SwMQv39AjooYETf8PF3ppu0SGa96baMkg== X-Received: by 10.98.133.6 with SMTP id u6mr30360570pfd.48.1489286135198; Sat, 11 Mar 2017 18:35:35 -0800 (PST) Received: from pinklady.local (c-73-19-52-228.hsd1.wa.comcast.net. [73.19.52.228]) by smtp.gmail.com with ESMTPSA id t12sm26239137pfg.14.2017.03.11.18.35.34 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 11 Mar 2017 18:35:34 -0800 (PST) Subject: Re: Deterministic rescue buildworld error with custom make.conf/src.conf/MAKEOBJDIRPREFIX Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_FDB09B60-3DC2-410F-AF10-6449417BCAC7"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail From: "Ngie Cooper (yaneurabeya)" In-Reply-To: <0aa75720-7670-9b64-a536-9958ff332eea@freebsd.org> Date: Sat, 11 Mar 2017 18:35:33 -0800 Cc: Ian Lepore , FreeBSD Current Message-Id: References: <1489274995.40576.65.camel@freebsd.org> <0aa75720-7670-9b64-a536-9958ff332eea@freebsd.org> To: Lawrence Stewart X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Mar 2017 02:35:36 -0000 --Apple-Mail=_FDB09B60-3DC2-410F-AF10-6449417BCAC7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 11, 2017, at 18:27, Lawrence Stewart = wrote: >=20 > Hi Ian, =E2=80=A6 >> The MAKEOBJDIRPREFIX variable must be set in the environment, not in >> make.conf or on the make command line (documented in build(7)). >=20 > Your assertion seems at odds with my past experience and my reading of > the man page... from build(7): >=20 > The build may be controlled by defining make(1) variables > described in the ENVIRONMENT section below, and by the > variables documented in make.conf(5). >=20 > ... which indicates they are make variables, not environment variables > specifically. As a concrete example, TARGET and DESTDIR are listed = under > the "ENVIRONMENT" section of the man page, yet "EXAMPLES" shows: >=20 > make TARGET=3Dsparc64 buildworld > make TARGET=3Dsparc64 DESTDIR=3D/clients/sparc64 = installworld >=20 > I've certainly always set build vars documented in the "ENVIRONMENT" > section of the man page on the make command line without issue. Pretty > sure I've set MAKEOBJDIRPREFIX from the make command line also in the > past, though perhaps it has been working for me "by accident" and a > documentation tweak is in order if the distinction you make is in fact > relevant... Hi Lawrence, Ian=E2=80=99s right per historical behavior, which should still be in = effect today. Unfortunately, setting MAKEOBJDIRPREFIX on the command line will result = in bad things happening because of how bsd.obj.mk works and how = MAKEOBJDIRPREFIX is manipulated in the build itself (see = Makefile.libcompat =E2=80=94 it affects some architectures, but maybe = not sparc64). =46rom =E2=80=A6/Makefile (which should have triggered = this error message to begin with): 171 MAKEOBJDIRPREFIX?=3D /usr/obj 172 _MAKEOBJDIRPREFIX!=3D /usr/bin/env -i PATH=3D${PATH} MK_AUTO_OBJ=3Dno = ${MAKE} \ 173 ${.MAKEFLAGS:MMAKEOBJDIRPREFIX=3D*} __MAKE_CONF=3D${__MAKE_CONF} = \ 174 -f /dev/null -V MAKEOBJDIRPREFIX dummy 175 .if !empty(_MAKEOBJDIRPREFIX) 176 .error MAKEOBJDIRPREFIX can only be set in environment, not as a = global\ 177 (in make.conf(5)) or command-line variable. 178 .endif Are you sure your script/process didn=E2=80=99t catch a relevant build = error? Cheers, -Ngie --Apple-Mail=_FDB09B60-3DC2-410F-AF10-6449417BCAC7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJYxLP1AAoJEPWDqSZpMIYVKekP/29g3k29s6BEwtCft0XqfiSs JAEIQkx5B+YrCphaTyMyYUoWu/m0thgJXqlLrD0vnUQYpHKff525W+YNGnpE7jvS TdkZrm8rOt0HalEfGX3YFhmP7jrGwyjLkmfnd7WhNSQ4KnGCOTrKRzJ8DjcJD2dj cBYZ3czlYd41hvc4spKJQ7Vv+dAVDNRQS3qo//8XNwD2MQVBSnVjWPJacT+B1O9S SUG1M1TvauLgkzGZQgGbzDAIH5SksjwsZL8a9BOpMQ9qlutwZStACYAsgzWhGwHd INViKy9GRbPTFBk2ymDW46s8eqxwhkAiKbUXb4x8coP0239xnUPypspdSGdyHKNH DIu33mXIESCxGcwOQPRQ9qvBSbG+TZ2sNR7X18OPHPGewY1jIsjv+fmEt0VunfkB dZTSLaxT7MFxmYwNHhzVAssqBAE+52TARua12ZLClEltda5E0ql+cy4G+tvjNJeb 1gjkyn2VBZUhaXfP6Gd+jm/4UELRz0vm7rQKXaIhY7Zb7VMeYRkf6YtMvXsPVakN ZVklhVd6ZdHOwLXh2LGLZG2FlGGso+pyWHGp9GnDxinbXQkMW/S0qK9RTGRObXE2 H9BabQL2zDVsb1dSEnBqwmfwl42EJK11OcbA0FnyrcLNTolRRb6banqh5RZqkJIx txSpgRB5plnBWLOBxh0z =2q9C -----END PGP SIGNATURE----- --Apple-Mail=_FDB09B60-3DC2-410F-AF10-6449417BCAC7--