Hi Marijn,

Marijn Schouten (hkBst) wrote:
PV=${PV/0./}

MY_PV=...

As others have said, PV is read only.

to that new ebuild. This is the cleanest way to do it and doesn't require any
variable name changes or any other changes to the ebuild regardless of what it
does. Unfortunately it is also illegal per current PMS as PV is a read-only
variable. Right now I feel that the gain of having PV read-only (catch a few
bugs?) is much lower than the pain (extensive ebuild-dependend changes when the
version scheme changes). Please comment.

It's a pain, but then again, your old ebuilds are likely to go away as time passes, and the various hacks you've put in them will be long forgotten :)

There are only a couple cases were having PV writeable is a good idea. But let's keep this part of our ebuilds simple.

Right now, the section in devmanual that talks about PV is really short. Keeping it that way seems a good idea for potential new comers and old timers (that may forget stuff as time goes on) alike.

My 2 euro ¢

Cheers

Rémi
--
gentoo-dev@lists.gentoo.org mailing list

Reply via email to