1 |
On 08/31/2014 17:39, Micha³ Górny wrote: |
2 |
> Hello, developers. |
3 |
> |
4 |
> The directory conventions in PMS are confusing developers for a long |
5 |
> time. Long story short, D, ED, ROOT and EROOT are supposed to contain |
6 |
> a trailing slash while remaining directory variables don't. This often |
7 |
> confuses developers and brings repeating mistakes resulting in double |
8 |
> slashes in paths. |
9 |
> |
10 |
> For example, developers often write '${D}/usr/bin/foo', while they |
11 |
> should '${D}usr/bin/foo'. Of course, this gets more complicated with |
12 |
> every variable added. For example, if you were to reference |
13 |
> bashcompdir, you'd have to use pattern substitution to actually remove |
14 |
> double slashes, e.g. '${D%/}$(get_bashcompdir)'. |
15 |
> |
16 |
> More than a year ago, I've suggested that we unify the convention for |
17 |
> directories and require all of them not to contain a trailing slash |
18 |
> [1]. The bug contains all the details, including statistics (year old |
19 |
> but still) and repoman check suggestions. |
20 |
> |
21 |
> I would like to suggest finally doing the change for the sake of |
22 |
> improved consistency. EAPI 6 is a great opportunity to clean up some of |
23 |
> the historical mess, and make ebuild writing have one pitfall less. |
24 |
> |
25 |
> What do you think? |
26 |
> |
27 |
> [1]:https://bugs.gentoo.org/show_bug.cgi?id=465772 |
28 |
|
29 |
+1 |
30 |
|
31 |
This throws me at random, so unifying the behavior would be nice. Perhaps |
32 |
repoman should get a warning added for this? |
33 |
|
34 |
-- |
35 |
Joshua Kinard |
36 |
Gentoo/MIPS |
37 |
kumba@g.o |
38 |
4096R/D25D95E3 2011-03-28 |
39 |
|
40 |
"The past tempts us, the present confuses us, the future frightens us. And |
41 |
our lives slip away, moment by moment, lost in that vast, terrible in-between." |
42 |
|
43 |
--Emperor Turhan, Centauri Republic |