FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 06-29-2008, 11:47 PM
Duncan
 
Default When the version scheme changes

"Marijn Schouten (hkBst)" <hkBst@gentoo.org> posted
4867B636.9080004@gentoo.org, excerpted below, on Sun, 29 Jun 2008
18:20:06 +0200:

> Why can't portage use its own variables and export these with an initial
> value but not use them further?

One way of looking at is that these /are/ the PM's own variables, simply
exposed read-only to make life simpler. There's nothing you can't do by
setting your own variables initially equal to the read-only vars and
modifying them as you wish, that you could do if the PM exported them
writable but ignored any rewritten values itself. Either a read-only
variable works fine, or a rewritable value then ignored by the PM
wouldn't work either.

--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman

--
gentoo-dev@lists.gentoo.org mailing list
 
Old 06-30-2008, 12:22 AM
"Marijn Schouten (hkBst)"
 
Default When the version scheme changes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Duncan wrote:
> "Marijn Schouten (hkBst)" <hkBst@gentoo.org> posted
> 4867B636.9080004@gentoo.org, excerpted below, on Sun, 29 Jun 2008
> 18:20:06 +0200:
>
>> Why can't portage use its own variables and export these with an initial
>> value but not use them further?
>
> One way of looking at is that these /are/ the PM's own variables, simply
> exposed read-only to make life simpler. There's nothing you can't do by
> setting your own variables initially equal to the read-only vars and
> modifying them as you wish, that you could do if the PM exported them
> writable but ignored any rewritten values itself. Either a read-only
> variable works fine, or a rewritable value then ignored by the PM
> wouldn't work either.

That would work but it would require writing ebuilds in a funny way and would
unexpectedly break when someone DID improperly use the non-writable variables
for anything else than that initial copying. It's really not a solution, because
since there are no guarantees you still have to check all the code and can't do
automatic reversioning. Also doing this would basically be the same as manually
reversioning the entire tree.

Marijn

- --
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhoJzIACgkQp/VmCx0OL2x4wgCfUoPNEtFWvV/PhIlBk05Cf2FR
rwoAoMlOTrgtoujSqJB5Az1wDSCVXFMB
=I1/q
-----END PGP SIGNATURE-----
--
gentoo-dev@lists.gentoo.org mailing list
 

Thread Tools




All times are GMT. The time now is 05:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org