Gentoo Archives: gentoo-dev

From: Jens Hamacher <JensHamacher@×××.de>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Patch for mixing stable/unstable
Date: Mon, 03 Mar 2003 16:06:49
Message-Id: 004601c2e19e$8b439660$0168a8c0@ntspider
1 Hello,
2
3 I am relative new to using gentoo.
4 Coming from debian, I wanted a mixture of testing/unstable, since nobody needs the newest version of every package on his system.
5 Gentoo gave my troubles when I tried to install two packages from my nvidia graphic card which weren't in stable.
6 I read there were plans for programming "sticky variables", but I think this is much more complicated then reincluding unstable packages only.
7
8 So after looking at the sources of portage 2.0.47-r7 I made this small patch:
9
10 - a line in /etc/make.conf with the packages to install "unstable":
11 UNSTABLE_PKGS="media-video/nvidia-kernel media-video/nvidia-glx"
12
13 -a few lines to reinclude the chosen packages:
14 /usr/lib/python2.2/site-packages/portage.py, line 3395:
15 cpv=cpv_getkey(mycpv)
16 if cpv in unstable_include:
17 match=1
18
19 /usr/lib/python2.2/site-packages/portage.py, last line:
20 unstable_include=settings["UNSTABLE_PKGS"].split()
21
22 This seems to work quite good, enabling "update world" and "search" on the newest packages.
23 One does have to consider the depending packages, if the unstable package requires other unstable packages. But this should be less of a problem with source-based packages than in debian.
24 And it doesn't check after the architecture at all, so it probably only works for x86 systems. I'll try it with a hash next.
25
26 I hope this is a help for some people.
27
28 Greetings,
29 Jens Hamacher
30
31 -diff attached-

Attachments

File name MIME type
portage.diff application/octet-stream