1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Marius Mauch wrote: |
5 |
> On Sun, 29 Jun 2008 15:52:37 +0200 |
6 |
> "Marijn Schouten (hkBst)" <hkBst@g.o> wrote: |
7 |
> |
8 |
>> -----BEGIN PGP SIGNED MESSAGE----- |
9 |
>> Hash: SHA1 |
10 |
>> |
11 |
>> Bo Ørsted Andresen wrote: |
12 |
>>> On Saturday 28 June 2008 17:03:13 Marijn Schouten (hkBst) wrote: |
13 |
>>>> PV=${PV/0./} |
14 |
>>>> |
15 |
>>>> to that new ebuild. This is the cleanest way to do it and doesn't |
16 |
>>>> require any variable name changes or any other changes to the |
17 |
>>>> ebuild regardless of what it does. Unfortunately it is also |
18 |
>>>> illegal per current PMS as PV is a read-only variable. Right now I |
19 |
>>>> feel that the gain of having PV read-only (catch a few bugs?) is |
20 |
>>>> much lower than the pain (extensive ebuild-dependend changes when |
21 |
>>>> the version scheme changes). Please comment. |
22 |
>>> I don't really see how making PV not read-only is any easier than |
23 |
>>> using MY_PV. Did you expect changing PV to magically change P, PVR |
24 |
>>> and PF too? |
25 |
>> If we can agree to have those values writable we could define a |
26 |
>> function that will handle resetting all those too. |
27 |
> |
28 |
> Not going to happen. These variables are used internally by portage in |
29 |
> various ways, and making their content inconsistent with the version in |
30 |
> the filename is likely to cause subtle bugs and/or weird behavior. |
31 |
> Besides, you've yet to explain the benefit of it, short of avoiding a |
32 |
> simple replace operation in an ebuild, and the given use case isn't all |
33 |
> that common anyway. |
34 |
|
35 |
Why can't portage use its own variables and export these with an initial value |
36 |
but not use them further? |
37 |
|
38 |
Marijn |
39 |
|
40 |
- -- |
41 |
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML |
42 |
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode |
43 |
-----BEGIN PGP SIGNATURE----- |
44 |
Version: GnuPG v2.0.9 (GNU/Linux) |
45 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
46 |
|
47 |
iEYEARECAAYFAkhntjYACgkQp/VmCx0OL2yxdgCght6buiC3nTWqQiaADBOVR2Xw |
48 |
ezYAnA57T74GJ6izX2mk8XuOX/c8MyL4 |
49 |
=zW3N |
50 |
-----END PGP SIGNATURE----- |
51 |
-- |
52 |
gentoo-dev@l.g.o mailing list |