Date: Wed, 20 May 2020 11:52:00 +0200 From: Ede Wolf <listac@nebelschwaden.de> To: freebsd-questions@freebsd.org Subject: Re: Moving sources (base/ports) from /usr Message-ID: <ee6f9d59-9ac3-5d1e-baec-405fc1b24ab2@nebelschwaden.de> In-Reply-To: <8d48921e-7af1-9313-0781-4ba4bd9c1f10@nebelschwaden.de> References: <8d48921e-7af1-9313-0781-4ba4bd9c1f10@nebelschwaden.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> That makes sense it isn't being picked up by make. Sure, once you think about it. But here is the strange part. I've exported SOURCEDIR via /etc/profile and it is set. However, mergemaster does not recognize it. Then I export the same variable again on the command line and it works: # echo $SOURCEDIR /clutter/src # # # mergemaster -Ui *** /usr/src was not found. Found Makefile.inc1 in the current directory. Would you like to set SOURCEDIR to /clutter/src? [no and exit] **** No suitable /usr/src found, exiting # SOURCEDIR="/clutter/src" # export SOURCEDIR # mergemaster -Ui *** Creating the temporary root environment in /var/tmp/temproot *** /var/tmp/temproot ready for use *** Creating and populating directory structure in /var/tmp/temproot This is currently a little beyond my understanding? Am 15.05.20 um 08:16 schrieb Steve O'Hara-Smith: > On Fri, 15 May 2020 07:47:16 +0200 > Ede Wolf <listac@nebelschwaden.de> wrote: > >> Basically you are right. For makebuild[world|kernel] that is correct, it >> is just that setting SOURCEDIR saves a question during mergemaster: >> >> # mergemaster -Ui >> >> *** /usr/src was not found. >> Found Makefile.inc1 in the current directory. >> Would you like to set SOURCEDIR to /clutter/src? [no and exit] > > Ah it's an environment variable used by mergemaster, you learn > something every day :) > >> But if one decides to define it, it has to be in the shell environment >> (export SOURCEDIR...), as src-env.conf or make.conf do not seem to work, >> unless I've missed something. > > That makes sense it isn't being picked up by make. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ee6f9d59-9ac3-5d1e-baec-405fc1b24ab2>