Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48264 - portage-2.0.50-r6 breaks /etc/portage/package.mask
Summary: portage-2.0.50-r6 breaks /etc/portage/package.mask
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-18 14:03 UTC by Cletus Lichte
Modified: 2004-05-05 19:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cletus Lichte 2004-04-18 14:03:46 UTC
I have one line in my /etc/portage/package.mask file:

>sys-kernel/gentoo-sources-2.4.22-r7

This has always worked, until the new portage.  Now every time I try to update anything it wants to update the kernel, but to an older version.  Here is the result of emerge gentoo-sources -uvp:

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-kernel/gentoo-sources-2.4.22-r5  -build  32,515 kB 

Total size of downloads: 32,515 kB


As you can see, this isn't correct.  I've tried changing the line in my package.mask but I still get falky results.


emerge info:
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.22-gentoo-r7)
=================================================================
System uname: 2.4.22-gentoo-r7 i686 VIA Samuel 2
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=c3 -m3dnow -O2 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=c3 -m3dnow -O2 -pipe"
DISTDIR="/tmp/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j1"
PKGDIR="/tmp/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/tmp/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3ds X X509 Xaw3d aalib aavm acpi alsa apache2 arts artswrappersuid athena atlas avi berkdb bsh crypt cscope cups curl dga dillo dnd doc dv dvd emacs encode ethereal faad fam fbcon fftw flac flash fltk fluidsynth foomaticdb gd gdbm ggi gif gimpprint gpm gstreamer gtk gtk2 imagemagick imap imlib jack jack-caps jack-tmpfs java javamail javascript jdepend jpeg jsch junit jython ladcca lcms leim libg++ libwww mad mbox mcal md5sum mikmod mmx motif mozcalendar mozilla moznocompose moznoirc moznomail mozsvg mpeg mpi ncurses nntp nogcj nojoystick objc oggvorbis opengl optional-tasks oro oss pam parse-clocks pcap pda pdflib perl pic plotutils png ppds python qt quicktime radeon readline regexp rhino ruby ruby18 sdl skey slang slp sox speex spell sqlite ssl tcltk tcpd tetex tiff transcode truetype type1 usb video_cards_radeon videos vim-with-x wmf wxwindows x86 xerces xml xml2 xmms xv xvid zlib"


Please let me  know if I need to provide any other info.  Thanks!
Comment 1 Imad R. Faiad 2004-04-18 14:19:47 UTC
it's not portages fault, it's just that sys-kernel/gentoo-sources-2.4.22-r7
is no longer in the portage tree, the highest 2.4.22 kernel version in the
portage tree is sys-kernel/gentoo-sources-2.4.22-r9, and the only one
which fits your /etc/portage/package.mask criteria is sys-kernel/gentoo-sources-2.4.22-r5
hth
Comment 2 Cletus Lichte 2004-04-18 15:32:16 UTC
Hmmm........well, I have two stupid questions then:

1.  Why is there an r5 and r9 but no r7 ebuild?

2.  Why should any of this matter??  I want portage to ignore all packages above a certain level, why should this not work just because the ebuild that I have installed is no longer in portage?

Thanks!
Comment 3 ferret 2004-05-05 18:33:45 UTC
The solution is to mask everything not equal to the version you want to keep.
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2004-05-05 19:25:45 UTC
Portage uses the logic that if a specific version of a package was removed (but others remain) then there must be something wrong with that package. In other words --updates *always* upgrades/downgrades to the latest available version for your configuration.

You have a four choices:
1) reopen this bug, assign it to kernel@gentoo.org and complain about the package removal.
2) add PORTDIR_OVERLAY to /etc/make.conf, create the directory $PORTDIR_OVERLAY/sys-kernel/gentoo-sources and copy gentoo-sources-2.4.22-r7.ebuild from /var/db/pkg/sys-kernel/gentoo-sources-2.4.22-r7 to it.
3) upgrade your kernel and get a whole lot of security and bug fixes
4) install the 2.4.22-r5 and ignore it (which won't remove the existing -r7)