From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15125 invoked by uid 1002); 3 Mar 2003 16:06:49 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 3763 invoked from network); 3 Mar 2003 16:06:48 -0000 Message-ID: <004601c2e19e$8b439660$0168a8c0@ntspider> From: "Jens Hamacher" To: Date: Mon, 3 Mar 2003 17:04:17 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0042_01C2E1A6.ECB8A5E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: JensHamacher@web.de Subject: [gentoo-dev] Patch for mixing stable/unstable X-Archives-Salt: dd4e8b20-0770-418d-8bba-394466242d1a X-Archives-Hash: bcb3a0a880db7b9425dfedcd4dce65fb ------=_NextPart_000_0042_01C2E1A6.ECB8A5E0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0043_01C2E1A6.ECB8A5E0" ------=_NextPart_001_0043_01C2E1A6.ECB8A5E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am relative new to using gentoo. Coming from debian, I wanted a mixture of testing/unstable, since nobody = needs the newest version of every package on his system. Gentoo gave my troubles when I tried to install two packages from my = nvidia graphic card which weren't in stable. I read there were plans for programming "sticky variables", but I think = this is much more complicated then reincluding unstable packages only. So after looking at the sources of portage 2.0.47-r7 I made this small = patch: - a line in /etc/make.conf with the packages to install "unstable": UNSTABLE_PKGS=3D"media-video/nvidia-kernel media-video/nvidia-glx" -a few lines to reinclude the chosen packages: /usr/lib/python2.2/site-packages/portage.py, line 3395: cpv=3Dcpv_getkey(mycpv) if cpv in unstable_include: match=3D1 /usr/lib/python2.2/site-packages/portage.py, last line: unstable_include=3Dsettings["UNSTABLE_PKGS"].split() This seems to work quite good, enabling "update world" and "search" on = the newest packages. 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. 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. I hope this is a help for some people. Greetings,=20 Jens Hamacher -diff attached- ------=_NextPart_001_0043_01C2E1A6.ECB8A5E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I am relative new to using=20 gentoo.
Coming from debian, I wanted a mixture = of=20 testing/unstable, since nobody needs the newest version of every package = on his=20 system.
Gentoo gave my troubles when = I tried to=20 install two packages from my nvidia graphic card which weren't in=20 stable.
I read there were plans for programming = "sticky=20 variables", but I think this is much more complicated then reincluding = unstable=20 packages only.
 
So after looking at the sources of = portage=20 2.0.47-r7  I made this small patch:
 
- a line in /etc/make.conf with the = packages to=20 install "unstable":
UNSTABLE_PKGS=3D"media-video/nvidia-kernel=20 media-video/nvidia-glx"
-a few lines to reinclude the chosen=20 packages:
/usr/lib/python2.2/site-packages/portage.py, line=20 3395:
          &nbs= p;            = ;=20 cpv=3Dcpv_getkey(mycpv)
       &nbs= p;            = ;   =20 if cpv in=20 unstable_include:
        &nbs= p;            = ;          =20 match=3D1

/usr/lib/python2.2/site-packages/portage.py, last = line:
unstable_include=3Dsettings["UNSTABLE_PKGS"].split()
<= /DIV>
This seems to work quite good, enabling = "update=20 world" and "search" on the newest packages.
One does have to consider the depending = packages,=20 if the unstable package requires other unstable packages. But this = should be=20 less of a problem with source-based packages than in = debian.
And it doesn't check after the = architecture at all,=20 so it probably only works for x86 systems. I'll try it with a hash=20 next.
 
I hope this is a help for some = people.
 
Greetings,
Jens = Hamacher
 
-diff = attached-
------=_NextPart_001_0043_01C2E1A6.ECB8A5E0-- ------=_NextPart_000_0042_01C2E1A6.ECB8A5E0 Content-Type: application/octet-stream; name="portage.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="portage.diff" 3394a3395,3398 > # change Hamacher > cpv=cpv_getkey(mycpv) > if cpv in unstable_include: > match=1 4525a4530 > unstable_include=settings["UNSTABLE_PKGS"].split() ------=_NextPart_000_0042_01C2E1A6.ECB8A5E0 Content-Type: text/plain; charset=us-ascii -- gentoo-dev@gentoo.org mailing list ------=_NextPart_000_0042_01C2E1A6.ECB8A5E0--