CFPreferences warnings

Craig Treleaven ctreleaven at macports.org
Thu Oct 16 09:57:03 PDT 2014


At 6:12 PM +0200 10/16/14, Rainer Müller wrote:
>On 2014-10-16 17:30, Craig Treleaven wrote:
>>  I'm working on a new version of MythTV and building in a non-standard
>>  prefix (/opt/dvr).  I'm getting hundreds of warning messages like the
>>  following:
>>
>>>  2014-10-16 10:43:03.178 osacompile[23932:90b] CFPreferences: user home
>>>  directory at file://localhost/opt/local/var/macports/home/ is
>>>  unavailable. User domains will be volatile.
>>
>>
>>>  2014-10-16 10:43:02.413 qmake[23922:903] CFPreferences: user home
>>>  directory at file://localhost/opt/local/var/macports/home/ is
>>>  unavailable. User domains will be volatile.
>
>The path probably comes from the home directory of the macports user
>that is used for privilege separation in several phases of the build
>process of a port.
>
>$ dscl . -read /Users/macports NFSHomeDirectory
>NFSHomeDirectory: /opt/local/var/macports/home

Yes, that's it!

>You macports user was added by a previous installation in the default
>prefix. I suppose these messages are harmless, but you could change it
>to the home directory in the prefix you are using.

Shoot, that's right.  I brainlessly ran the .dmg 
installer for MacPorts and immediately realized 
my error and deleted the /opt/local hierarchy. 
The macports user survived, however.

Did the following to change the value:

$ sudo dscl . -change /Users/macports 
NFSHomeDirectory /opt/local/var/macports/home 
/opt/dvr/var/macports/home

Hopefully that will quiet the blather!

Craig
(Keynote time, now.)


More information about the macports-dev mailing list