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

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: PGP signature

Reply via email to