On 08/31/2014 17:39, Michał Górny wrote:
> Hello, developers.
> 
> The directory conventions in PMS are confusing developers for a long
> time. Long story short, D, ED, ROOT and EROOT are supposed to contain
> a trailing slash while remaining directory variables don't. This often
> confuses developers and brings repeating mistakes resulting in double
> slashes in paths.
> 
> For example, developers often write '${D}/usr/bin/foo', while they
> should '${D}usr/bin/foo'. Of course, this gets more complicated with
> every variable added. For example, if you were to reference
> bashcompdir, you'd have to use pattern substitution to actually remove
> double slashes, e.g. '${D%/}$(get_bashcompdir)'.
> 
> More than a year ago, I've suggested that we unify the convention for
> directories and require all of them not to contain a trailing slash
> [1]. The bug contains all the details, including statistics (year old
> but still) and repoman check suggestions.
> 
> I would like to suggest finally doing the change for the sake of
> improved consistency. EAPI 6 is a great opportunity to clean up some of
> the historical mess, and make ebuild writing have one pitfall less.
> 
> What do you think?
> 
> [1]:https://bugs.gentoo.org/show_bug.cgi?id=465772

+1

This throws me at random, so unifying the behavior would be nice.  Perhaps
repoman should get a warning added for this?

-- 
Joshua Kinard
Gentoo/MIPS
[email protected]
4096R/D25D95E3 2011-03-28

"The past tempts us, the present confuses us, the future frightens us.  And
our lives slip away, moment by moment, lost in that vast, terrible in-between."

--Emperor Turhan, Centauri Republic

Reply via email to