public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Patch for mixing stable/unstable
@ 2003-03-03 16:04 Jens Hamacher
  0 siblings, 0 replies; only message in thread
From: Jens Hamacher @ 2003-03-03 16:04 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 1515 bytes --]

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="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=cpv_getkey(mycpv)
                        if cpv in unstable_include:
                                match=1

/usr/lib/python2.2/site-packages/portage.py, last line:
unstable_include=settings["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, 
Jens Hamacher

-diff attached-

[-- Attachment #1.2: Type: text/html, Size: 3399 bytes --]

[-- Attachment #2: portage.diff --]
[-- Type: application/octet-stream, Size: 237 bytes --]

3394a3395,3398
> # change Hamacher
>                       cpv=cpv_getkey(mycpv)
>                       if cpv in unstable_include:
>                               match=1
4525a4530
> unstable_include=settings["UNSTABLE_PKGS"].split()


[-- Attachment #3: Type: text/plain, Size: 37 bytes --]

--
gentoo-dev@gentoo.org mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-03 16:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-03 16:04 [gentoo-dev] Patch for mixing stable/unstable Jens Hamacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox