Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 2019 08:09:44 -0700
From:      Enji Cooper <yaneurabeya@gmail.com>
To:        Glen Barber <gjb@FreeBSD.org>
Cc:        =?utf-8?B?RG9tYWdvaiBTbW9sxI1pxIc=?= <rank1seeker@gmail.com>, hackers@freebsd.org
Subject:   Re: MAKEOBJDIRPREFIX fails if it has dot '.' in dir name (maybe also with some other chars)
Message-ID:  <8A736CB1-EF26-4712-8A1E-5D66E20AA122@gmail.com>
In-Reply-To: <20190812143845.GP75221@FreeBSD.org>
References:  <20190812151735.000070b0@gmail.com> <20190812143845.GP75221@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Aug 12, 2019, at 7:38 AM, Glen Barber <gjb@FreeBSD.org> wrote:
>=20
> On Mon, Aug 12, 2019 at 03:17:35PM +0200, Domagoj Smol=C4=8Di=C4=87 =
wrote:
>> 11.3-RELEASE-p2
>>=20
>>=20
>> # make MAKEOBJDIRPREFIX=3D/usr/obj/usr.LOCAL buildworld
>=20
> You set MAKEOBJDIRPREFIX two different ways.  Here you did not set it
> in the environment, but as a variable to make(1).  The way you did =
this
> below is correct.

=E2=80=A6

>> # env MAKEOBJDIRPREFIX=3D/usr/obj/usr_LOCAL make buildworld
>=20
> This worked for me using '.' in the path.
>=20
> # env MAKEOBJDIRPREFIX=3D/usr/obj/usr.LOCAL make buildworld
> make[1]: "/usr/src/Makefile.inc1" line 163: SYSTEM_COMPILER: =
Determined that CC=3Dcc matches the source tree.  Not bootstrapping a =
cross-compiler.

Hmmm=E2=80=A6 I wonder why this error case in /Makefile wasn=E2=80=99t =
tripped...

193 MAKEOBJDIRPREFIX?=3D      /usr/obj
194 _MAKEOBJDIRPREFIX!=3D /usr/bin/env -i PATH=3D${PATH} ${MAKE} =
MK_AUTO_OBJ=3Dno \
195     ${.MAKEFLAGS:MMAKEOBJDIRPREFIX=3D*} __MAKE_CONF=3D${__MAKE_CONF} =
\
196     SRCCONF=3D${SRCCONF} SRC_ENV_CONF=3D \
197     -f /dev/null -V MAKEOBJDIRPREFIX dummy
198 .if !empty(_MAKEOBJDIRPREFIX)
199 .error MAKEOBJDIRPREFIX can only be set in environment or =
src-env.conf(5),\
200     not as a global (in make.conf(5) or src.conf(5)) or command-line =
variable.
201 .endif

-Enji=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8A736CB1-EF26-4712-8A1E-5D66E20AA122>