[gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Gilles Dartiguelongue
Le mercredi 29 janvier 2014 à 22:37 -0500, Mike Gilbert a écrit : One difference: it creates 3 of the 4 directories under ${HOME} instead of ${T}, just to mimic the default behavior in the XDG basedir spec a bit more closely. The thing with ${HOME} is that it should not be a directory where

[gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Jonathan Callen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 01/30/2014 03:11 AM, Gilles Dartiguelongue wrote: Le mercredi 29 janvier 2014 à 22:37 -0500, Mike Gilbert a écrit : One difference: it creates 3 of the 4 directories under ${HOME} instead of ${T}, just to mimic the default behavior in the

[gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Ulrich Mueller
On Thu, 30 Jan 2014, Gilles Dartiguelongue wrote: The thing with ${HOME} is that it should not be a directory where XDG compliants tools should be able to store anything permanent while building since this would affect consecutive builds (say gobject-introspection, gstreamer registry, etc).

Re: [gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Gilles Dartiguelongue
Le jeudi 30 janvier 2014 à 09:29 +0100, Ulrich Mueller a écrit : On Thu, 30 Jan 2014, Gilles Dartiguelongue wrote: The thing with ${HOME} is that it should not be a directory where XDG compliants tools should be able to store anything permanent while building since this would affect

[gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Michael Palimaka
On 01/30/2014 02:37 PM, Mike Gilbert wrote: Here's a simple eclass that pretty much just extracts the XDG stuff from the gnome2_environment_reset function. One difference: it creates 3 of the 4 directories under ${HOME} instead of ${T}, just to mimic the default behavior in the XDG basedir

[gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Ulrich Mueller
On Thu, 30 Jan 2014, Michael Palimaka wrote: 2. xdg-basedir-setup - xdg-basedir_setup is more consistent with other modern eclasses, especially if there are additional functions in the future. It may be little known, but strictly speaking, hyphens in bash identifiers are illegal: `name'

Re: [gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Jeroen Roovers
On Thu, 30 Jan 2014 14:03:52 +0100 Ulrich Mueller u...@gentoo.org wrote: It may be little known, but strictly speaking, hyphens in bash identifiers are illegal: `name' A `word' consisting solely of letters, numbers, and underscores, and beginning with a letter or underscore.

Re: [gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Mike Gilbert
On Thu, Jan 30, 2014 at 6:48 AM, Michael Palimaka kensing...@gentoo.org wrote: On 01/30/2014 02:37 PM, Mike Gilbert wrote: Here's a simple eclass that pretty much just extracts the XDG stuff from the gnome2_environment_reset function. One difference: it creates 3 of the 4 directories under

[gentoo-dev] Re: New eclass: xdg-basedir

2014-01-30 Thread Michael Palimaka
On 01/31/2014 04:32 AM, Mike Gilbert wrote: On Thu, Jan 30, 2014 at 6:48 AM, Michael Palimaka kensing...@gentoo.org wrote: On 01/30/2014 02:37 PM, Mike Gilbert wrote: Here's a simple eclass that pretty much just extracts the XDG stuff from the gnome2_environment_reset function. One