[kde-freebsd] XDG_* make environment variables

Baptiste Daroussin bapt at FreeBSD.org
Fri Sep 5 20:04:12 UTC 2014


On Fri, Sep 05, 2014 at 07:41:33AM -0300, Raphael Kubo da Costa wrote:
> Schaich Alonso <alonsoschaich at fastmail.fm> writes:
> 
> > Hello
> >
> > About a year ago several area51 ports introduced an explicit XDG_CONFIG_HOME
> > and/or XDG_DATA_DIRS assignment to /dev/null, iirc in order to prevent the
> > build process to create paths in the home directory of the building user.
> >
> > Earlier today I was browsing some ${PORTSDIR}/Mk/... files and noticed
> > Mk/bsd.port.mk sets both variables to WRKDIR. The way I see this, it
> > should therefore be safe to remove the explicit value overloads in the
> > area51 ports, but I haven't tried doing so yet.
> >
> > Is there anything that still needs them?
> 
> This was mostly done by avilla and bapt back in the days because
> update-mime-database or something else that touched $HOME was being
> called during the build or installation.
> 
> I'd say if svn blaming the changes to bsd.port.mk shows they're more
> recent than those changes to XDG_* variables in the Makefiles (and your
> tests still work), then we can go ahead.
> 
> bapt, do you have anything to add here?

In theory you do not need anymore FreeBSD specify hacks as the bsd.port.mk does
all it needs.

A good way to test it to run poudriere testport or bulk -t it will show you fs
violation if the problem remains.

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20140905/1f640b13/attachment.sig>


More information about the kde-freebsd mailing list