Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Nov 2017 21:06:29 +0100
From:      "O. Hartmann" <ohartmann@walstatt.org>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r325974 - in head: . share/mk
Message-ID:  <20171118210629.7dde2e64@thor.intern.walstatt.dynvpn.de>
In-Reply-To: <201711182001.vAIK1FHh002172@repo.freebsd.org>
References:  <201711182001.vAIK1FHh002172@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/UNM_SElv7nnmEuatcHn.ksR
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Am Sat, 18 Nov 2017 20:01:15 +0000 (UTC)
Bryan Drewery <bdrewery@FreeBSD.org> schrieb:

> Author: bdrewery
> Date: Sat Nov 18 20:01:15 2017
> New Revision: 325974
> URL: https://svnweb.freebsd.org/changeset/base/325974
>=20
> Log:
>   Fix top-level targets with read-only OBJDIR.
>  =20
>   This also makes it so that top-level build targets do not immediately c=
reate
>   the OBJDIR.  Only sub-make targets will do so.  This avoids creating ob=
ject
>   directories for targets like 'make check-old' or creating unneeded
>   MACHINE.MACHINE_ARCH directories during 'make tinderbox'.
>  =20
>   Reported by:	npn, lifanov
>   Tested by:	npn, Mark Millard
>   Sponsored by:	Dell
>=20
> Modified:
>   head/Makefile.sys.inc
>   head/share/mk/src.sys.obj.mk
>=20
> Modified: head/Makefile.sys.inc
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/Makefile.sys.inc	Sat Nov 18 20:01:12 2017	(r325973)
> +++ head/Makefile.sys.inc	Sat Nov 18 20:01:15 2017	(r325974)
> @@ -33,6 +33,11 @@ _CAN_USE_AUTO_OBJ?=3D yes
>  .if !defined(_CAN_USE_AUTO_OBJ)
>  _MAKEARGS+=3D		MK_AUTO_OBJ=3Dno
>  MK_AUTO_OBJ=3D		no
> +# This will prevent src.sys.obj.mk from opportunistically enabling AUTO_=
OBJ
> +# in this make execution and for sub-makes.  For all of these targets we
> +# just want to read any existing OBJDIR but we don't care if we can crea=
te
> +# or write to them.
> +.MAKEOVERRIDES+=3D	MK_AUTO_OBJ
>  .endif
>  .endif	# empty(.MAKEOVERRIDES:MMK_AUTO_OBJ)
> =20
>=20
> Modified: head/share/mk/src.sys.obj.mk
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/share/mk/src.sys.obj.mk	Sat Nov 18 20:01:12 2017	(r325973)
> +++ head/share/mk/src.sys.obj.mk	Sat Nov 18 20:01:15 2017	(r325974)
> @@ -19,6 +19,12 @@
>  #  TARGET.TARGET_ARCH added in as it assumes that MAKEOBJDIRPREFIX is
>  #  nested in the existing OBJTOP with TARGET.TARGET_ARCH in it.
>  #
> +#  The expected OBJDIR is stored in __objdir for auto.obj.mk to use.
> +#
> +#  AUTO_OBJ is opportunistically enabled if the computed .OBJDIR is writ=
able
> +#  by the current user.  Some top-level targets disable this behavior in
> +#  Makefile.sys.inc.
> +#
> =20
>  _default_makeobjdirprefix?=3D	/usr/obj
>  _default_makeobjdir=3D	$${.CURDIR:S,^$${SRCTOP},$${OBJTOP},}
> _______________________________________________
> svn-src-head@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org"

Seems to break buildworld:

[...]

Updated to revision 325974.
root@walhall:/usr/src # make -j9 buildworld buildkernel
make: "/usr/src/Makefile.sys.inc" line 11: Malformed conditional (${MK_DIRD=
EPS_BUILD} =3D=3D
"no") make: Fatal errors encountered -- cannot continue
make: stopped in /usr/src
.ERROR_TARGET=3D''

--=20
O. Hartmann

Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr
Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.=
 4 BDSG).

--Sig_/UNM_SElv7nnmEuatcHn.ksR
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWhCSxQAKCRDS528fyFhY
lH8AAf47iqoxvVf1QgYEsY6hGJlifx+Xdl2FFzCWKEpfnWrsS+pXOKWa4QU8gWZ0
cJkibokXECA3pNVqFlw5fTv3twP5Af92i6tvZv+quO3mVlnEV2UTVQmoKly8f5nm
af/hqbcE+SGvIOvjoxfx6McKVfOJl+bD5EQ8u8oIDaccabHacNGo
=HsiG
-----END PGP SIGNATURE-----

--Sig_/UNM_SElv7nnmEuatcHn.ksR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171118210629.7dde2e64>