Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73447 - emerging alternately upgrades and downgrades nspr
Summary: emerging alternately upgrades and downgrades nspr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Travis Tilley (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-05 06:58 UTC by David Pyke
Modified: 2006-01-08 00:10 UTC (History)
1 user (show)

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 David Pyke 2004-12-05 06:58:39 UTC
emerge nspr (or world) upgrades nspr to 4.4.1-r2
do it again, it gets downgraded to 4.4.1
do it again, it gets upgraded to 4.4.1-r2



Reproducible: Always
Steps to Reproduce:
1.emerge world
2.emerge world
3.repeat

Actual Results:  
As above

Expected Results:  
stop after upgrading?

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r6 x86_64 AMD Opteron(tm) Processor 142
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=opteron -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=opteron -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 apm audiofile avi bash-completion berk-db berkdb
bitmap-fonts bmp bonobo bzlib cdr crypt cups dvd esd f77 fam fbcon foomaticdb
fortran gif gnome gphoto2 gpm gstreamer gtk gtkhtml guile icq imagemagick imlib
ipv6 java jp2 jpeg kde libwww lzw lzw-tiff mad maildir mbox mimemmap msn
multilib mysql ncurses nls odbc offensive oggvorbis openal opengl oscar oss pam
pda pdflib perl php png ppds python qt quicktime readline samba sdl sndfile soap
sox spell ssl tcltk tcpd tiff truetype usb userlocales videos wxwindows xine
xinerama xml xml2 xmms xpm xprint xrandr xv xvid zlib"

cat /etc/portage/package.keywords
net-www/mozilla-bin ~amd64
mail-filter/spamassassin ~amd64
app-pda/pilot-link ~amd64
net-p2p/pysoulseek ~amd64
games-rpg/nwn ~amd64
x11-plugins/guifications ~amd64
media-video/nvidia-kernel ~amd64
media-video/nvidia-glx ~amd64
media-video/nvidia-settings ~amd64
app-emulation/emul-linux-x86-nvidia ~amd64
games-strategy/xscorch ~amd64
x11-misc/xearth ~amd64
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-05 09:22:52 UTC
This can happen from time to time with conflicting dependencies. I'm not sure about this case, but sometimes it may happen, that you have to decide what you want, since not always the conflict is solvable. `man portage` tells you how to deal with it locally.

Travis: gaim-encryption-2.32 will be the culprit, since it depends on <dev-libs/nspr-4.4.1-r2.
Comment 2 Andreas Laestadius 2004-12-05 16:30:13 UTC
I can confirm this. Alternates for me too on amd64.
Comment 3 Tim Leslie 2004-12-12 08:46:06 UTC
The gaim-encrypt package currently in unstable does not have this dependency problem - someone realized that only depending on nss (which itself has an nspr dependency) streamlines things

If gaim-encyption 2.32-r1 is in acceptable shape, then marking it stable should close this bug. 
Comment 4 David Pyke 2004-12-12 13:48:30 UTC
Instead of fixing this one dependency, can this be set so that emerge/portage prevents this kind of thing?
Comment 5 Evert 2005-01-28 22:14:40 UTC
I've had bugs like this one before on alpha and it was an inconsistency in portage, and it looks like it's an inconsistency again, for me on alpha and for others on amd64.

And while investigating, I bumped on another bug: 
emerge -uDp world differs from
emerge -uDpk world
I've reported a bug like this quite some time ago and thought it was solved, but apparently, it isn't!
Look at the output of the following commands


# emerge -uDp world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[ebuild     U ] dev-libs/nspr-4.4.1-r2 [4.4.1]

# emerge -uDp --tree world
These are the packages that I would merge, in reverse order:
Calculating world dependencies ...done!
[nomerge      ] x11-plugins/gaim-encryption-2.32
[ebuild     UD]  dev-libs/nspr-4.4.1 [4.4.1-r2]


# emerge -uDpk world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!


# emerge -uDpk --tree world
These are the packages that I would merge, in reverse order:
Calculating world dependencies ...done!


# emerge -pk =dev-libs/nspr-4.4.1
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[binary     UD] dev-libs/nspr-4.4.1 [4.4.1-r2]


# emerge -k =dev-libs/nspr-4.4.1
[...]
>>> dev-libs/nspr-4.4.1 merged.
[...]


# emerge -uDp world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[ebuild     U ] dev-libs/nspr-4.4.1-r2 [4.4.1]


# emerge -uDp --tree world
These are the packages that I would merge, in reverse order:
Calculating world dependencies ...done!
[nomerge      ] net-im/gaim-1.0.2-r1
[nomerge      ]  dev-libs/nss-3.9.2-r2
[ebuild     U ]   dev-libs/nspr-4.4.1-r2 [4.4.1]


# emerge -uDpk world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[binary     U ] dev-libs/nspr-4.4.1-r2 [4.4.1]


# emerge -uDpk --tree world
These are the packages that I would merge, in reverse order:
Calculating world dependencies ...done!
[nomerge      ] net-im/gaim-1.0.2-r1
[nomerge      ]  dev-libs/nss-3.9.2-r2
[binary     U ]   dev-libs/nspr-4.4.1-r2 [4.4.1]


# emerge -uDk world
Calculating world dependencies ...done!
>>> emerge (1 of 1) dev-libs/nspr-4.4.1-r2 to /
[...]
>>> dev-libs/nspr-4.4.1-r2 merged.
[...]


# emerge -uDp world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[ebuild     UD] dev-libs/nspr-4.4.1 [4.4.1-r2]


# emerge -uDp --tree world
These are the packages that I would merge, in reverse order:
Calculating world dependencies ...done!
[nomerge      ] x11-plugins/gaim-encryption-2.32
[ebuild     UD]  dev-libs/nspr-4.4.1 [4.4.1-r2]


# emerge -uDpk world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!


# emerge -uDpk --tree world
These are the packages that I would merge, in reverse order:
Calculating world dependencies ...done!
Comment 6 Evert 2005-02-04 10:18:34 UTC
Please fix this bug, it's really gonna get irritating seeing we have to upgrade and downgrade the same package over and over again!
And yes, this is a bug, this kind of bug happened to portage before, see bug #45865 and bug #59964

Thanx in advance, that is, if it's gonna get fixed within a few days!
Comment 7 Evert 2005-02-10 11:27:53 UTC
This upgrade/downgrade bug seems to have gone for alpha. For amd64 I can't tell since I don't have amd64.
Comment 8 Torsten Veller (RETIRED) gentoo-dev 2006-01-08 00:10:59 UTC
I am closing this.