Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514690 - =samba-3* forced due to MULTILIB_USEDEP
Summary: =samba-3* forced due to MULTILIB_USEDEP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Multilib team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-23 14:52 UTC by Torsten Kurbad
Modified: 2014-06-25 13: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 Torsten Kurbad 2014-06-23 14:52:36 UTC
Yesterday I realized that portage does no longer handle or'ed "overlapping" depends correctly.

Let me clarify what I mean: Most of my systems use >=net-fs/samba-4.0.0 which differs in USE flags from net-fs/samba-3.*.

That's why several packages introduced a samba-dependency like this (taken from =gnome-base/gvfs-1.20.2):

samba? ( || ( >=net-fs/samba-3.4.6[smbclient] >=net-fs/samba-4[client] ) )

This worked very nicely so far. But now, if I try an 'emerge -NDuv --with-bdeps=y world', portage insists on the 'smbclient' USE flag, thus tries to downgrade to =net-fs/samba-3.6.23-r1.

In fact, the second part of the '|| ( )' expression doesn't seem to get evaluated.

Can someone please look into this?

Best,
Torsten

PS: Here's the emerge --info of an affected machine

Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.2, glibc-2.19, 3.14.4-gentoo x86_64)
=================================================================
System uname: Linux-3.14.4-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5450_@_3.00GHz-with-gentoo-2.2
KiB Mem:    16447636 total,    827136 free
KiB Swap:   33554424 total,  33554424 free
Timestamp of tree: Mon, 23 Jun 2014 12:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.9, 2.7.6-r1, 3.2.5-r4, 3.3.5, 3.4.0
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo local iwm sunrise samba4 tkurbad science
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/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="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j 8"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://ftp.informatik.rwth-aachen.de/pub/Linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/iwm /var/lib/layman/sunrise /var/lib/layman/samba4 /var/lib/layman/tkurbad /var/lib/layman/science"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi additions ads alsa amd64 amr apache2 apng artworkextra asf asm aspell async atk audacious autoipd avahi bash-completion beagle berkdb bluetooth branding browserplugin bzip2 cairo caps cdda cddb cdparanoia cdr cli colord colordiff cracklib crypt css cups curl cxx daap dbus device-mapper djvu dns dri dts dvd dvdr dvi eds emboss encode evdev evo exif expat faad fam fbcon ffmpeg fftw firefox flac fluidsynth fontconfig fortran freetts fuse gcj gd gdbm gif gimpprint glitz gmp gnome gnome-keyring gnome-online-accounts gnutls gphoto2 gpm gs gstreamer gtk gtk3 gtkhtml guile gzip h323 hddtemp hvm ical iconv id3tag imagemagick imlib introspection ipv6 jack jack-tmpfs jadetex java java6 jce jit jpeg jpeg2k kdrive kerberos keyring kpathsea lame lash latex lcms ldap libgcrypt libnotify libsecret lm_sensors logrotate lzo mad matroska mbrola mdnsresponder-compat mikmod minizip mjpeg mmap mmx mmxext mng modules mono mp2 mp3 mp4 mpeg mplayer mpm-worker mtp multilib musepack musicbrainz mysql nautilus ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp openrc pae pam pango pcre pdf perl pidgin pipechan plotutils png pnm policykit postgres postproc postscript ppds pulseaudio pygrub python qmail qt qt3support qt4 quicktime quota quotas rar readline real rle rrdcgi rtsp samba samba4 sasl screen sdl seamonkey sensord session shout sip slang smp sms smt sndfile socialweb sound spell sqlite sse sse2 sse3 ssl ssse3 startup-notification stream subtitles subversion suid svg swat sylpheed systemd t1lib taglib tagwriting tcl tcltk tcpd tetex tga theora threads tidy tiff tk truetype tta udev udisks unicode upower urandom usb v4l v4l2 vcd vde vditool vdpau vlm vorbis wav wavpack webdav webkit win32codecs wma wmf wrapper wxwidgets wxwindows x264 xattr xcb xcomposite xetex xine xml xml2 xosd xpm xprint xscreensaver xulrunner xv xvid xvmc xxmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 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 proxy proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="author braindump flow karbon kexi krita sheets stage words" CAMERAS="canon 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport presenter-console presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 m68k ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 m68k ppc ppc64 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-06-23 15:23:09 UTC
More probably there is another package, which has dependency, which is currently only matched by a version of net-fs/samba-3.*.

Check which package needs net-fs/samba-3.* by using one of these methods:
- -t option
- Masking of <net-fs/samba-4 in /etc/portage/package.mask
Comment 2 Torsten Kurbad 2014-06-23 17:36:28 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1)
> More probably there is another package, which has dependency, which is
> currently only matched by a version of net-fs/samba-3.*.

I am absolutely sure that this isn't the problem. Masking <net-fs/samba-4 presents the same list of downgrade-forcing packages as before. All of them have the above mentioned construct of allowing

|| ( >=net-fs/samba-3.*[someuseflag] >=net-fs/samba-4.0.0[someotheruseflag] )

to fullfill the samba dependency. Also, I experienced the problem independently on two systems with different package configurations.

Best,
Torsten
Comment 3 Arfrever Frehtes Taifersar Arahesis 2014-06-23 18:04:06 UTC
Please show full output of emerge with -t and -v options.
Comment 4 Torsten Kurbad 2014-06-23 18:39:32 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #3)
> Please show full output of emerge with -t and -v options.

Here you are:

emerge -NDuvtp --with-bdeps=y world

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

Calculating dependencies... done!
[nomerge       ] media-gfx/blender-2.70a-r3  USE="boost bullet dds elbeem ffmpeg fftw game-engine jpeg2k nls openexr openmp opennl sdl sndfile sse sse2 tiff -collada -colorio -cycles -debug -doc -jack -ndof -openal -openimageio -player -redcode" PYTHON_SINGLE_TARGET="python3_3 -python3_4" PYTHON_TARGETS="python3_3 -python3_4" 
[ebuild   R    ]  dev-libs/boost-1.55.0-r1:0/1.55.0  USE="mpi nls python threads -context -debug -doc -icu -static-libs -tools" PYTHON_TARGETS="python2_7 python3_2 python3_3 (-python2_6) -python3_4%" 0 kB
[ebuild     U  ] media-fonts/unifont-7.0.01 [6.3.20140204] USE="X fontforge utils" 0 kB
[nomerge       ] app-emulation/wine-1.7.20  USE="X alsa cups fontconfig gecko gphoto2 gsm gstreamer jpeg lcms ldap mono mp3 ncurses nls opengl perl pipelight png prelink pulseaudio realtime run-exes samba scanner ssl threads truetype udisks v4l xml -capi -custom-cflags -dos -netapi -odbc -openal -opencl -osmesa -oss (-selinux) {-test} -xcomposite -xinerama" ABI_X86="32 64 (-x32)" LINGUAS="de -ar -bg -ca -cs -da -el -en -en_US -eo -es -fa -fi -fr -he -hi -hr -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW" 
[nomerge       ]  media-sound/mpg123-1.20.1  USE="alsa ipv6 pulseaudio sdl sse (-3dnow) (-3dnowext) (-altivec) (-coreaudio) -int-quality -jack (-mmx) -nas -oss -portaudio" ABI_X86="(64) -32 (-x32)" 
[ebuild     U  ]   media-libs/libsdl-1.2.15-r6 [1.2.15-r5] USE="X alsa joystick opengl pulseaudio sound video xv -aalib -custom-cflags -dga -fbcon -ggi -libcaca -nas -oss (-ps3) -static-libs (-svga) -tslib -xinerama" ABI_X86="(64) -32 (-x32)" 0 kB
[nomerge       ] www-client/chromium-34.0.1847.132::tkurbad  USE="cups gnome gnome-keyring kerberos pulseaudio tcmalloc -aura -bindist -custom-cflags (-neon) (-selinux) {-test}" LINGUAS="de -am -ar -bg -bn -ca -cs -da -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW" 
[nomerge       ]  net-print/cups-1.7.3  USE="X acl dbus java kerberos pam python ssl systemd threads usb zeroconf -debug -gnutls -lprng-compat (-selinux) -static-libs -xinetd" ABI_X86="(64) -32 (-x32)" LINGUAS="-ca -es -fr -it -ja -pt_BR -ru" PYTHON_SINGLE_TARGET="python2_7 (-python2_6)" PYTHON_TARGETS="python2_7 (-python2_6)" 
[ebuild     U  ]   app-text/poppler-0.26.2:0/46 [0.26.1:0/46] USE="cairo curl cxx introspection jpeg jpeg2k lcms png qt4 tiff utils -cjk -debug -doc (-qt5)" 0 kB
[ebuild     U  ]  gnome-base/gnome-keyring-3.12.2-r1 [3.12.2] USE="caps filecaps pam ssh-agent -debug (-selinux) {-test}" 0 kB
[nomerge       ] media-fonts/unifont-7.0.01 [6.3.20140204] USE="X fontforge utils" 
[ebuild  N     ]  dev-perl/GD-2.500.0  USE="gif jpeg png truetype xpm -animgif" 0 kB
[nomerge       ] media-video/vlc-2.1.4:0/5-7  USE="X a52 alsa avahi avcodec avformat cdda cddb dbus dts dvbpsi dvd encode ffmpeg flac fontconfig gcrypt gnome ieee1394 libnotify libsamplerate live lua matroska mmx mp3 mpeg mtp musepack ncurses ogg opengl png postproc pulseaudio qt4 rdp rtsp samba sdl sftp shout speex sse svg swscale taglib theora truetype twolame udev upnp v4l vaapi vdpau vlm vorbis wma-fixed x264 xcb xml xv -aalib (-altivec) -atmo (-audioqueue) -bidi -bluray -chromaprint -dc1394 -debug -dirac -directfb (-directx) -dvb (-dxva2) -egl -faad -fdk -fluidsynth -gme -gnutls -growl -httpd (-ios-vout) -jack -kate -kde -libass -libcaca -libtar -libtiger -linsys -lirc (-macosx) (-macosx-audio) (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-macosx-vout) (-media-library) -modplug (-neon) -omxil -opencv -optimisememory -opus -projectm (-qt5) -run-as-root -schroedinger -sdl-image -sid -skins {-test} -tremor -vcdx -vnc -zvbi" 
[ebuild     UD#]  net-fs/samba-3.6.23-r1 [4.1.7] USE="acl ads aio avahi caps%* client cups fam ldap netapi%* pam%* readline%* server%* smbclient%* swat%* winbind -addns* -cluster -debug% -dmapi -doc% -examples% -ldb% -quota (-selinux) -smbsharemodes% -syslog (-gnutls%) (-iprint%) (-test%)" ABI_X86="(64%*) -32% (-x32)" PYTHON_TARGETS="(-python2_6%) (-python2_7%*)" 0 kB

Total: 7 packages (4 upgrades, 1 downgrade, 1 new, 1 reinstall), Size of downloads: 0 kB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

net-fs/samba:0

  (net-fs/samba-4.1.8:0/0::gentoo, ebuild scheduled for merge) conflicts with
    >=net-fs/samba-3.6.23-r1[abi_x86_64(-)] required by (gnome-base/gnome-vfs-2.24.4-r2:2/2::gentoo, installed)
                                           
    >=net-fs/samba-3.6.14-r1[smbclient] required by (gnome-base/gnome-control-center-3.12.1:2/2::gentoo, installed)
                             ^^^^^^^^^ 
    >=net-fs/samba-3.4.6:0[smbclient] required by (media-video/vlc-2.1.4:0/5-7::gentoo, installed)
                           ^^^^^^^^^ 
    =net-fs/samba-3.6*[winbind] required by (net-fs/cifs-utils-6.3:0/0::gentoo, installed)
    ^             ^^^^         
    >=net-fs/samba-3.4.6[smbclient] required by (gnome-base/gvfs-1.20.2:0/0::gentoo, installed)
                         ^^^^^^^^^
Comment 5 Arfrever Frehtes Taifersar Arahesis 2014-06-23 18:58:16 UTC
gnome-vfs/gnome-vfs-2.24.4-r2 depends on >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}], which matches only net-fs/samba-3.6.23-r1.
Multilib support has not been yet added to any version of net-fs/samba-4.*.

This is not a bug in Portage.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-23 19:32:04 UTC
I guess this is where having the native flag implicit could come in handy, since samba-4 is so much terrible and broken I doubt we'll able to multilib it in near time.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-25 11:39:24 UTC
@Torsten: could you sync and retry today? I've added some implicit USE magic to the amd64&x86 profiles. If I'm not mistaken, this should allow you to use samba-4 again if you don't enable abi_x86_32 on it.
Comment 8 Torsten Kurbad 2014-06-25 13:19:59 UTC
(In reply to Michał Górny from comment #7)
> @Torsten: could you sync and retry today? I've added some implicit USE magic
> to the amd64&x86 profiles. If I'm not mistaken, this should allow you to use
> samba-4 again if you don't enable abi_x86_32 on it.

Yes, it's working fine. Thank you!