[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] Unified directory slash convention for EAPI6?
From: Michał Górny <mgorny () gentoo ! org>
Date: 2014-08-31 21:39:31
Message-ID: 20140831233931.64c6125c () pomiot ! lan
[Download RAW message or body]
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
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic