Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166991 - portage-2.1.2-r9: both proftpd and snort depends on virtual/mysql, but wants mysql-5 anyway
Summary: portage-2.1.2-r9: both proftpd and snort depends on virtual/mysql, but wants ...
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 09:50 UTC by Honza
Modified: 2007-02-18 18:37 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 Honza 2007-02-15 09:50:24 UTC
On portage -p -v , both proftpd and snort, which are now security upgrades, want to upgrade mysql from 4.1 to 5.0. In their ebuilds, only virtual/mysql is listed as dependency and I have virtual/mysql-4.1, so I don't see why they want 5.0.

Reproducible: Always

Steps to Reproduce:
1. emerge =virtual/mysql-4*
2. emerge -p -v snort
3. emerge -p -v proftpd


Actual Results:  
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-db/mysql-5.0.26-r2 [4.1.22-r1] USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128% -minimal (-selinux) -static (-raid%)" 25,378 kB 
[ebuild     U ] virtual/mysql-5.0 [4.1] 0 kB 
[ebuild     U ] net-analyzer/snort-2.6.1.2 [2.1.1] USE="mysql -dynamicplugin% -flexresp -flexresp2% -gre% -inline% -linux-smp-stats% -odbc% -perfprofiling% -postgres -prelude% -react% (-selinux) -sguil% -snortsam% -timestats% (-ssl%*)" 4,308 kB 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-db/mysql-5.0.26-r2 [4.1.22-r1] USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128% -minimal (-selinux) -static (-raid%)" 25,378 kB 
[ebuild     U ] virtual/mysql-5.0 [4.1] 0 kB 
[ebuild     U ] net-ftp/proftpd-1.3.1_rc2 [1.3.0a] USE="ipv6 mysql ncurses nls%* pam shaper softquota ssl tcpd -acl -authfile -clamav -hardened -ifsession -ldap -noauthunix -opensslcrypt -postgres -radius -rewrite (-selinux) -sitemisc -vroot -xinetd" 1,481 kB 


Expected Results:  
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] net-analyzer/snort-2.6.1.2 [2.1.1] USE="mysql -dynamicplugin% -flexresp -flexresp2% -gre% -inline% -linux-smp-stats% -odbc% -perfprofiling% -postgres -prelude% -react% (-selinux) -sguil% -snortsam% -timestats% (-ssl%*)" 4,308 kB 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] net-ftp/proftpd-1.3.1_rc2 [1.3.0a] USE="ipv6 mysql ncurses nls%* pam shaper softquota ssl tcpd -acl -authfile -clamav -hardened -ifsession -ldap -noauthunix -opensslcrypt -postgres -radius -rewrite (-selinux) -sitemisc -vroot -xinetd" 1,481 kB 


Installed mysql version is: [ebuild   R   ] dev-db/mysql-4.1.22-r1  USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -minimal -raid (-selinux) -static"

emerge info
*** Deprecated use of action 'info', use '--info' instead
Portage 2.1.2-r9 (default-linux/x86/2006.0, gcc-3.3.5, glibc-2.3.5-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.13
Timestamp of tree: Wed, 14 Feb 2007 22:50:01 +0000
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r3
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1, 1.10
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r3
sys-devel/gcc-config: 1.3.10-r2
sys-devel/libtool:   1.4.3-r4, 1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /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/bind"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 3dnowext X Xaw3d a52 aalib alsa apache2 apm arts avi berkdb bitmap-fonts bittorrent bzip2 caps cdr cli cracklib crypt cups curl dga divx4linux dlloader doc dri dvd dvdread emboss encode erandom esd flac foomaticdb fortran fpx gcj gd gdbm ggi gif gnutls gpm graphviz gstreamer gtk gtk2 iconv imagemagick imlib innodb ipv6 isdnlog java javascript jbig jpeg lcms lesstif libcaca libg++ libwww live logrotate lua lzo mad mailwrapper mbox mcal memlimit midi mikmod mmx mng motif mozilla mp3 mpeg multislot mysql ncurses network nls nptl ogg oggvorbis openal opengl oss pam pcre pdflib perl pic png pppd python qt qt3 qt4 quicktime readline real reflection samba sdl session snmp spell spl sqlite sse sse2 ssl svga tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vhosts videos vorbis wmf x264 x86 xgetdefault xml xorg xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa r128 fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-15 10:00:20 UTC
If you don't want a particular version, then package.mask the thing. Exactly the same as for any other ebuild out there. 

echo "=virtual/mysql-5*" >> /etc/portage/package.mask

Please, don't file bugs before reading basic documentation, this is not a support forum.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3
Comment 2 Honza 2007-02-15 20:12:45 UTC
For normal ebuilds, installing package does NOT attempt to install new version of packages which it depends on. There is an flag of emerge, -D, which do that, but I didn't used it. I know I can package-mask it, but why ? In older portage, this wasn't needed - if sufficient version is already installed, dependency is fullfilled. By that I mean I just tested it on computer with portage-2.1.1-r2 and it doesn't attempt to do it.

So, I suppose this is either bug in portage-2.1.2-r9, or poorly documented behaviour change. (I didn't state it in original report because I wasn't sure about it.)

Should I downgrade portage and cross-test it, or is downgrading portage dangerous ?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-02-15 21:16:15 UTC
Please, stop reopening this bug and read the fine manual.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-02-15 21:16:28 UTC
Closed.
Comment 5 Honza 2007-02-15 22:16:25 UTC
OK, manual readed. No new information found. I KNOW THAT I CAN MASK EBUILDS, but I don't want to mask every newer version of every ebuild I have installed just because some bug in portage is causing emerge to upgrading more packages that is needed.

I REPEAT: portage-2.1.1-r2 is working as I expect, portage-2.1.2-r9 is working differently. If you think this change is somewhere documented, you will be kind to point me there, but don't tell me where I can read about masking.

Maybee I should reclasify this as bug in portage ... or create different bugreport from this view.

(Note: Yes, I downgraded portage and it's now working correctly even on that same machine. No masking was necessary.)
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-02-15 22:17:16 UTC
Stop reopening this "bug".
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-02-15 22:17:37 UTC
Closed, this is NOT a support forum, so stop using it as such.
Comment 8 Honza 2007-02-18 14:40:36 UTC
OK, I will not reopen this bug, but can you please tell me if you are closing it because

1) I didn't specify what the bug is clearly enough
2) You wasn't able to reproduce it
3) This behaviour change of portage is not bug
or 4) You think the behaviour was not changed ?

And please, don't tell me again this is not a support forum. I know it and I really think this is a bug. I may be mistaken, but I'm not intentionally trying to use this as support forum.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-02-18 15:03:52 UTC
This is by design, not a bug. Thanks for NOT making further noise here.
Comment 10 Honza 2007-02-18 15:46:54 UTC
I hope it's not noise to mention that bug #166939 (http://bugs.gentoo.org/show_bug.cgi?id=166939), while not about exactly same problem, does provide answer to question WHY the behaviour changed and why (I suppose) you don't consider this a bug.

Sorry for not finding it sooner. I spotted it only because http://forums.gentoo.org/viewtopic-t-540033-start-0-postdays-0-postorder-asc-highlight-portage+virtual.html appeared today on first page when searching in forum ...
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-02-18 18:37:45 UTC
We really need the ability to lock bugs. :X