Date: Wed, 20 May 2020 11:03:12 +0200 From: Ede Wolf <listac@nebelschwaden.de> To: freebsd-questions@freebsd.org Subject: Re: Moving sources (base/ports) from /usr Message-ID: <8d48921e-7af1-9313-0781-4ba4bd9c1f10@nebelschwaden.de> In-Reply-To: <20200515071622.ff5bfebae44c174ee2cc2e8b@sohara.org> References: <20200508210444.7945f4ba@kaperfahrt.nebelschwaden.de> <20200513201932.8dd2cc135c50d54dc8daff0c@sohara.org> <ce990166-98b9-e9b2-ebe7-c21251ffd0fc@nebelschwaden.de> <20200515071622.ff5bfebae44c174ee2cc2e8b@sohara.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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?8d48921e-7af1-9313-0781-4ba4bd9c1f10>
