Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
patch for mixing stable/unstable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
codemode
n00b
n00b


Joined: 07 Mar 2003
Posts: 9
Location: Worms, Germany

PostPosted: Fri Mar 07, 2003 5:49 pm    Post subject: patch for mixing stable/unstable Reply with quote

The question when using gentoo with the default configuration, i.e. stable distribution, is how to install a few unstable packages and still run "emerge -u world".

I looked at the code and found a very quick solution:

diff from new "/usr/lib/python2.2/site-packages/portage.py" to old:
Code:

3395,3398d3394
< # change Hamacher
<                       cpv=cpv_getkey(mycpv)
<                       if cpv in unstable_include:
<                               match=1
4530d4525
< unstable_include=settings["UNSTABLE_PKGS"].split()


That means insert the first block of code at line 3395 and the last line at the end of the file.

Now add for example
Code:

UNSTABLE_PKGS="media-video/nvidia-kernel media-video/nvidia-glx"

in "/etc/make.conf", and emerge works always with the latest nvidia packages!
Back to top
View user's profile Send private message
codemode
n00b
n00b


Joined: 07 Mar 2003
Posts: 9
Location: Worms, Germany

PostPosted: Fri Mar 07, 2003 6:29 pm    Post subject: Reply with quote

btw, that was for portage 2.0.47-r7
for 2.0.47-8 put the upper code in line 3411, right before
Code:
         if match:
            newlist.append(mycpv)
in function gvisible.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum