Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402145 - virtual/mysql[minimal] requires dev-db/mysql[minimal]
Summary: virtual/mysql[minimal] requires dev-db/mysql[minimal]
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Keywording and Stabilization (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-04 11:44 UTC by Hill
Modified: 2012-02-07 10:02 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 Hill 2012-02-04 11:44:40 UTC
I`m trying to install net-ftp/pure-ftpd-1.0.32-r2 with mysql support without installing mysql server on localhost. When I setup "minimal" USE flag for dev-db/mysql and trying to emerge pure-ftpd - portage is blocking install, telling me I should remove this flag. 

Reproducible: Always

Steps to Reproduce:
1. echo "dev-db/mysql" > /etc/portage/package.use
2. emerge pure-ftpd
3.
Actual Results:  
Calculating dependencies... done!
[ebuild N ] dev-db/mysql-5.1.56 USE="community perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling (-selinux) -static -test -xtradb" 0 kB
[ebuild N ] net-ftp/pure-ftpd-1.0.32-r2 USE="ldap mysql pam ssl -anondel -anonperm -anonren -anonres -caps -charconv -noiplog -paranoidmsg -postgres -resolveids (-selinux) -sysquota -vchroot -xinetd" 0 kB

Total: 2 packages (2 new), Size of downloads: 0 kB

The following USE changes are necessary to proceed:
#required by virtual/mysql-5.1, required by net-ftp/pure-ftpd-1.0.32-r2[mysql], required by pure-ftpd (argument)
=dev-db/mysql-5.1.56 -minimal

Expected Results:  
Emerged pure-ftpd :)

Portage 2.1.10.44 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.1.10-gentoo-r1 i686)
=================================================================
System uname: Linux-3.1.10-gentoo-r1-i686-Common_32-bit_KVM_processor-with-gentoo-2.0.3
Timestamp of tree: Thu, 02 Feb 2012 15:45:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo gnome freeswitch
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://gentoo.kiev.ua "
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
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="/var/lib/layman/gnome /var/lib/layman/freeswitch"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support readline sdl session socialweb spell ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 x86 xcb xml xorg xulrunner 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 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FREESWITCH_MODULES="sofia lua php http dialplan_xml distributor dptools spandsp spidermonkey vmd voicemail xml_rpc xml_curl" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmware" 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 Hill 2012-02-04 11:46:58 UTC
Steps to Reproduce: 
1. echo "dev-db/mysql minimal" > /etc/portage/package.use

PS: misprint in bug report.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-02-04 15:46:05 UTC
The virtual AND the package need to have the same use flags.

echo "dev-db/mysql minimal" > /etc/portage/package.use
echo "virtual/mysql minimal" > /etc/portage/package.use
Comment 3 Hill 2012-02-05 12:43:54 UTC
(In reply to comment #2)
> The virtual AND the package need to have the same use flags.
> 
> echo "dev-db/mysql minimal" > /etc/portage/package.use
> echo "virtual/mysql minimal" > /etc/portage/package.use
I did it before (and trying to do this now) but this doesn`t seem to work :(
I have the same result.

Oh.... seems to me I`ve found the problem. I`ve installed mysql before (long time ago) without minimal flag, then unmerge it but virtual/mysql package wasn`t unmerged. If I run emerge --unmerge virtual/mysql and then trying to install pure-ftpd - everithing is fine. Without it I have an issue described before. I don`t know if it`s a bug or a feature, but here is a steps to reproduce it.
1. USE="-minimal"   emerge mysql
2. emerge --unmerge mysql
3. echo "dev-db/mysql minimal" >> /etc/portage/package.use
4. echo "virtual/mysql minimal" >> /etc/portage/package.use
5. echo "net-ftp/pure-ftpd mysql" >> /etc/portage/package.use
6. emerge pure-ftpd
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-06 19:47:42 UTC
You ought to set virtual/mysql[minimal] as well: both dev-db/mysql and virtual/mysql should have the same USE flag set for the "minimal" case.
Comment 5 Hill 2012-02-07 10:02:39 UTC
I test it again, and I have the same results as it was described in my previous comment  - if I do clean install (there is no packages dev-db/mysql or virtual/mysql in system) - everything is fine. 

If virtual/mysql already installed - emerge is blocking dev-db/mysql install, but it could easily fixed by unmerging virtual/mysql.