Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358529 - media-sound/amarok-2.4.0 should depend on virtual/mysql instead of dev-db/mysql
Summary: media-sound/amarok-2.4.0 should depend on virtual/mysql instead of dev-db/mysql
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Jorge Manuel B. S. Vicetto
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-12 12:07 UTC by Cyril42e
Modified: 2011-04-20 05:12 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 Cyril42e 2011-03-12 12:07:28 UTC
Apparently now virtual/mysql installs dev-db/mariadb, which is incompatible with dev-db/mysql, so all packages that require mysql should depend on virtual/mysql...

When emerging amarok 2.4.0:

# emerge -uavt amarok

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

Calculating dependencies ... done!
[ebuild     U  ] media-sound/amarok-2.4.0 [2.3.2-r1] USE="cdda embedded opengl player utils -daap -debug -ipod (-kdeenablefinal) -lastfm -mp3tunes -mtp -semantic-desktop" LINGUAS="-bg -ca -cs -da -de -en_GB -es -et -eu% -fi% -fr* -it -ja -km% -nb -nds -nl% -pa -pl -pt -pt_BR -ru -sl -sr -sr@latin -sv -th -tr -uk -wa% -zh_TW (-af%) (-ca@valencia%) (-el%) (-lt%) (-lv%) (-sk%) (-sr@ijekavian%) (-sr@ijekavianlatin%) (-zh_CN%)" 14,863 kB
[ebuild  N     ]  dev-db/mysql-5.1.53  USE="community embedded perl ssl -big-tables -cluster (-debug) -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling (-selinux) -static -test -xtradb" 24,522 kB
[blocks B      ] dev-db/mysql ("dev-db/mysql" is blocking dev-db/mariadb-5.1.50)
[blocks B      ] dev-db/mariadb ("dev-db/mariadb" is blocking dev-db/mysql-5.1.53)

Total: 2 packages (1 upgrade, 1 new), Size of downloads: 39,384 kB
Conflict: 2 blocks (2 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-db/mysql-5.1.53::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-db/mysql-5.1.50-r3[embedded] required by (media-sound/amarok-2.4.0::gentoo, ebuild scheduled for merge)

  (dev-db/mariadb-5.1.50::gentoo, installed) pulled in by
    =dev-db/mariadb-5.1*[-embedded,-static] required by (virtual/mysql-5.1::gentoo, installed)


Reproducible: Always

Steps to Reproduce:
1. install a package that depends on virtual/mysql
2. install amarok-2.4.0
Actual Results:  
dev-db/mariadb pulled in by virtual/mysql and dev-db/mysql required by amarok conflict.

Expected Results:  
amarok should use dev-db/mariadb instead of dev-db/mysql, which should be transparent because of virtual/mysql

# emerge --info
Portage 2.2.0_alpha26 (default/linux/x86/10.0, gcc-4.5.2, glibc-2.13-r1, 2.6.35-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.35-gentoo-r4-i686-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 11 Mar 2011 18:45:01 +0000
app-shells/bash:     4.2_p7
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0::pentoo
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo desktop-effects gentoo-china gentoo-taiwan yarik-overlay science voip sunrise dev-jokey java-overlay mozilla qting-edge sabayon pentoo geki-overlay perso
Installed sets: @system
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="    http://mirror.ovh.net/gentoo-distfiles/     ftp://ftp.free.fr/mirrors/ftp.gentoo.org/     http://mirror.switch.ch/ftp/mirror/gentoo/     http://gentoo.intergenia.de     "
LANG="en_FR.UTF-8"
LC_ALL="en_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage/layman/gentoo-china /usr/local/portage/layman/gentoo-taiwan /usr/local/portage/layman/yarik-overlay /usr/local/portage/layman/science /usr/local/portage/layman/voip /usr/local/portage/layman/sunrise /usr/local/portage/layman/jokey /usr/local/portage/layman/java-overlay /usr/local/portage/layman/mozilla /usr/local/portage/layman/qting-edge /usr/local/portage/layman/sabayon /usr/local/portage/layman/pentoo /usr/local/portage/layman/openoffice-geki /usr/local/portage/perso"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa apm atm audiofile berkdb bluetooth bz2 bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus dell divx dri dv dvb dvd dvdr dvdread esd exif fat ffmpeg firefox flac fortran fuse gdbm gif gimp glx gpm gtk gtk2 h264 hardened iconv ieee1394 ipv6 jpeg jpeg2k kde kpathsea lame ldap lirc lm_sensors mbox mime mmx modules mp3 mp4 mpeg mudflap musepack ncurses network nls nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp pam pcmcia pcre pdf perl png posix pppd python qt qt3support quicktime readline reiserfs samba sdl session spell sqlite sse sse2 ssl svg sysfs tcpd threads tiff truetype udev unicode usb v4l v4l2 vdr vorbis wifi win32codecs wma wmf wmp x264 x86 xcomposite xfs xinerama xml xorg xosd xpm xv xvid xvmc zlib" ALSA_CARDS="intel hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon casio_qv ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="devinput pctv inputlirc" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nv vesa nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Franz Trischberger 2011-03-13 07:17:21 UTC
The problem is, that your USE-Flags don't match:
Look out you have set the same USE-Flags in virtual/mysql and dev-db/mariadb (especially the embedded-Flag).

I am running amarok with mariadb without any problem.
Comment 2 Cyril42e 2011-03-13 11:06:01 UTC
Ok you have a good point.
Actually the only USE flag I have set is "dev-db/mysql embedded", probably because I was asked to do so by portage at one time. Then they added virtual/mysql, and dev-db/mysql USE flags didn't match anymore with virtual/mysql, so dev-db/mariadb was installed instead. But everything should work as well with dev-db/mysql if I set the rights USE flags.

So I've set the embedded USE flags for virtual/mysql, dev-db/mysql and dev-db/mariadb, unmerged virtual/mysql and dev-db/mariadb, and now updating amarok just smoothly installs virtual/mysql and dev-db/mysql.

Thanks for your help krassboter!

Still, amarok ebuild explicitly wants one of dev-db/mysql and dev-db/mariadb to be installed, and that's exactly what virtual/mysql is doing, so maybe it should anyway depend on virtual/sql instead of (dev-db/mysql || dev-db/mariadb). But I'm not an expert :-)
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-03-14 20:14:55 UTC
Yes, we should probably move to a virtual/mysql depend. I'll have to think about it because virtual/mysql-5.2 exists only for mariadb and virtual/mysql-5.5 exists (will work soon I hope) only for mysql.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-04-20 05:12:31 UTC
It seems I got confused with this bug report as we've moved to the virtual/mysql dep some time ago:

grep /mysql $(portageq portdir)/media-sound/amarok/amarok-2.*
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.3.2-r1.ebuild:          >=virtual/mysql-5.1
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.3.2-r1.ebuild:                          >=dev-db/mysql-5.1.50-r3[embedded]
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.3.2-r1.ebuild:                  if has_version "dev-db/mysql[minimal]"; then
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.4.0.90.ebuild:          >=virtual/mysql-5.1
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.4.0.90.ebuild:                          >=dev-db/mysql-5.1.50-r3[embedded]
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.4.0.90.ebuild:                  if has_version "dev-db/mysql[minimal]"; then
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.4.0.ebuild:             >=virtual/mysql-5.1
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.4.0.ebuild:                             >=dev-db/mysql-5.1.50-r3[embedded]
/home/gentoo-scm/gentoo-x86/media-sound/amarok/amarok-2.4.0.ebuild:                     if has_version "dev-db/mysql[minimal]"; then

The only reference to dev-db/mysql is done at pkg_postinst to present a warning to users. I'll see if we add a minimal use flag to the virtual/mysql package so we can fix that reference.