Moving sources (base/ports) from /usr
Ede Wolf
listac at nebelschwaden.de
Wed May 20 09:38:20 UTC 2020
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 at 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.
>
More information about the freebsd-questions
mailing list