Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387509 - sys-libs/talloc-2.0.7 has strange block on old versions of itself
Summary: sys-libs/talloc-2.0.7 has strange block on old versions of itself
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 08:00 UTC by Vladimir Berezhnoy
Modified: 2016-02-07 20:25 UTC (History)
4 users (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 Vladimir Berezhnoy 2011-10-18 08:00:41 UTC
# emerge samba -av   -1t

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild     U #] net-fs/samba-3.6.0 [3.5.11] USE="aio avahi client fam netapi pam readline server smbclient swat syslog winbind -acl -addns -ads -caps -cluster -cups -debug -doc -examples -ldap -ldb -quota -smbsharemodes (-smbtav2%)" 28,311 kB
[ebuild     U ~]  sys-libs/talloc-2.0.7 [2.0.1-r1] USE="-compat -python% (-doc%) (-static-libs%) (-swig%)" 363 kB
[ebuild  N    ~]  net-fs/cifs-utils-5.1  USE="caps -ads -caps-ng -creds -upcall" 358 kB
[ebuild     U ~]  sys-libs/tdb-1.2.9 [1.2.7-r1] USE="-python (-static-libs%) (-tdbtest%) (-tools%)" 360 kB
[ebuild  NS    ]   app-text/docbook-xml-dtd-4.2-r2 [4.1.2-r6, 4.4-r2] 77 kB
[blocks B      ] <net-fs/samba-3.6_rc1 ("<net-fs/samba-3.6_rc1" is blocking net-fs/cifs-utils-5.1)
[blocks B      ] <sys-libs/talloc-2.0.5 ("<sys-libs/talloc-2.0.5" is blocking sys-libs/talloc-2.0.7)
[blocks B      ] net-fs/cifs-utils ("net-fs/cifs-utils" is blocking net-fs/samba-3.5.11)

Total: 5 packages (3 upgrades, 1 new, 1 in new slot), Size of downloads: 29,467 kB
Conflict: 3 blocks (3 unsatisfied)

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

  (net-fs/cifs-utils-5.1::gentoo, ebuild scheduled for merge) pulled in by
    net-fs/cifs-utils required by (net-fs/samba-3.6.0::gentoo, ebuild scheduled for merge)

  (sys-libs/talloc-2.0.7::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-libs/talloc-2.0.5 required by (net-fs/samba-3.6.0::gentoo, ebuild scheduled for merge)


Reproducible: Always

Actual Results:  
"<sys-libs/talloc-2.0.5" is blocking sys-libs/talloc-2.0.7
net-fs/cifs-utils ("net-fs/cifs-utils" is blocking net-fs/samba-3.5.11)

Expected Results:  
Talloc should not be blocking itslef as it is going to be updated anyway. Similar samba-3.5.11 should not be blocking  net-fs/cifs-utils, because samba-3.6.0 will be
Comment 1 Vladimir Berezhnoy 2011-10-18 08:03:24 UTC
# emerge --info
Portage 2.1.10.28 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.13-r2, 2.6.32-openvz-feoktistov.1-srv-v1 i686)
=================================================================
System uname: Linux-2.6.32-openvz-feoktistov.1-srv-v1-i686-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 17 Oct 2011 23:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5, 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: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo arcon x-overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/mnt/storage/sys/distfiles"
FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j8"
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/arcon /usr/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aacs acpi addbookmarks additions aften aim alias amr ansi apache2 archive ass atm autoreplace avahi bash-completion bashlogger binary-drivers bittorrent branding bzip2 cairo cdda cdr cgi chm cisco consolekit contactnotes cracklib crypt css curl cxx dbus dhcp disk-partition djvu dri dts dvd dvdr emboss emovix enca encode exif expat extensions extras fam fat fbcondecor ffmpeg flac flash fontconfig fortran ftp gd gdbm gdu geoip gif git glib glitz gphoto2 gpm gtk gzip hddtemp highlight history httpd iconv id3 ieee1394 imagemagick imlib inifile ipv6 ithreads jabber javascript jfs jpeg json lame lcms libass libextractor libnotify lm_sensors logrotate logwatch lvm lzma mad matroska mixer mktemp mmx mmxext mng modules mouse mozilla mp3 mp4 mpeg mplayer mudflap musicbrainz mysql mysqli ncurses network nls nowlistening nptl nptlonly nsplugin ntfs ntlm nvidia obex ogg opengl openmp openntpd openvz oscar pam pango passwordsave pch pcre pdo php plugins png policykit ppds pppd qt3support rdesktop readline rss samba sasl screen sdl semantic-desktop session simplexml slang sndfile spell sqlite sqlite3 srt srv sse sse2 ssl startup-notification statistics subtitles subversion suhosin svg swat sysfs syslog taglib tcpd theora threads threadsafe thumbnail tiff tordns tos translator trayicon truetype udev unicode upnp urandom usb utempter vim-syntax vnc vorbis wavpack web webkit winbind x264 x86 xcb xcomposite xfs xhtml xine xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xsl xulrunner xv xvid zip zlib" ALSA_CARDS="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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" 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" 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="keyboard mouse ps2mouse" 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="intel vesa" 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, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Sebastian Luther (few) 2011-10-18 08:42:37 UTC
Portage is right here. The blocks are caused by the strange deps of the involved packages.

Some packages require that their old version is uninstalled before it can be build successfully. That's what the deps suggest here. Having said that, at least the deps of talloc are questionable.

talloc-2.0.7 has a strong block against it's older versions in RDEPEND. Why is that? Imo it should be in DEPEND. (Not that this would help with the issue the reporter sees.)

The other blocks would be handled by portage automatically.

Assigning to the talloc maintainer per comments above.
Comment 3 Víctor Ostorga (RETIRED) gentoo-dev 2011-10-18 16:20:44 UTC
(In reply to comment #0)
> 
> Actual Results:  
> "<sys-libs/talloc-2.0.5" is blocking sys-libs/talloc-2.0.7
> net-fs/cifs-utils ("net-fs/cifs-utils" is blocking net-fs/samba-3.5.11)
> 
> Expected Results:  
> Talloc should not be blocking itslef as it is going to be updated anyway.
> Similar samba-3.5.11 should not be blocking  net-fs/cifs-utils, because
> samba-3.6.0 will be

talloc-2.0.7 is blocking <sys-libs/talloc-2.0.5 because of bug 351608 (collision in symbols), so it's mandatory to uninstall <sys-libs/talloc-2.0.5.

Why does samba-3.5.11 block cifs-utils?
* mount.cifs and related stuff it's provided by cifs-utils
* Trying to install cifs-utils and samba <3.6 will result in a collision of files (both provide cifs stuff)
* cifs-utils is a dependency of >=samba-3.6 because the latter does not provide cifs related stuff
Comment 4 Sebastian Luther (few) 2011-10-18 17:08:46 UTC
The bug is no longer about the block itself, but about the fact that it's in RDEPEND only.
Comment 5 Vladimir Berezhnoy 2011-10-18 19:22:29 UTC
(In reply to comment #3)
> Why does samba-3.5.11 block cifs-utils?
> * mount.cifs and related stuff it's provided by cifs-utils
> * Trying to install cifs-utils and samba <3.6 will result in a collision of
> files (both provide cifs stuff)
> * cifs-utils is a dependency of >=samba-3.6 because the latter does not provide
> cifs related stuff

Isn't emerge capable of handling such cases? There is PDEPEND which will allow to install cifs-utils after samba to avoid collisions.

Anyway, if I run ' # emerge world -uDavN', then blocks are resolved


[ebuild  N    ~] net-fs/cifs-utils-5.1  USE="caps -ads -caps-ng -creds -upcall" 358 kB
[ebuild     U  ] dev-vcs/subversion-1.6.17-r7 [1.6.17] USE="apache2 bash-completion extras nls perl* sasl vim-syntax webdav-neon -berkdb -ctypes-python -debug -doc -dso -emacs -gnome-keyring -java -kde -python -ruby -webdav-serf (-test%)" 5,376 kB
[ebuild   R    ] dev-lang/yasm-1.1.0-r1  USE="nls -python*" 1,377 kB
[ebuild     U  ] app-admin/sysstat-10.0.2 [10.0.1] USE="doc lm_sensors nls -cron -debug -isag" LINGUAS="ru -af -cs -da -de -eo -es -eu -fi -fr -id -it -ja -ky -lv -mt -nb -nl -nn -pl -pt -pt_BR -ro -sk -sv -uk -vi -zh_CN -zh_TW" 263 kB
[ebuild   R    ] net-dns/avahi-0.6.28-r1  USE="dbus gdbm gtk ipv6 mdnsresponder-compat -autoipd -bookmarks -doc -howl-compat -mono -python* -qt4 -test" 1,210 kB
[ebuild   R    ] sys-devel/llvm-2.8-r2  USE="libffi -debug -llvm-gcc -multitarget% -ocaml -test -udis86 (-alltargets%)" 8,899 kB
[ebuild     U #] net-fs/samba-3.6.0 [3.5.11] USE="aio avahi client fam netapi pam readline server smbclient swat syslog winbind -acl -addns -ads -caps -cluster -cups -debug -doc -examples -ldap -ldb -quota -smbsharemodes (-smbtav2%)" 28,311 kB
[blocks b      ] net-fs/cifs-utils ("net-fs/cifs-utils" is blocking net-fs/samba-3.5.11)
[blocks b      ] <net-fs/samba-3.6_rc1 ("<net-fs/samba-3.6_rc1" is blocking net-fs/cifs-utils-5.1)
Comment 6 Víctor Ostorga (RETIRED) gentoo-dev 2011-10-18 22:03:43 UTC
(In reply to comment #4)
> The bug is no longer about the block itself, but about the fact that it's in
> RDEPEND only.

Adding to DEPEND in =sys-libs/talloc-2.0.7
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-27 01:41:42 UTC
*** Bug 405885 has been marked as a duplicate of this bug. ***
Comment 8 Georgi Georgiev 2012-02-28 15:31:14 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > The bug is no longer about the block itself, but about the fact that it's in
> > RDEPEND only.
> 
> Adding to DEPEND in =sys-libs/talloc-2.0.7

The blocker is still in RDEPEND and the binary packages I am building (which would work fine if the blocker was in DEPEND as indicated above) is causing just as much trouble to install as building it was.

This is the latest and *stable* version at the moment:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/talloc/talloc-2.0.7.ebuild?revision=1.3&view=markup

The hard blocker is both in DEPEND and RDEPEND.
Comment 9 Zac Medico gentoo-dev 2012-02-28 16:23:10 UTC
(In reply to comment #8)
> The hard blocker is both in DEPEND and RDEPEND.

I'm not familiar with the purpose of this blocker. Perhaps a soft blocker in RDEPEND would be sufficient?
Comment 10 Georgi Georgiev 2012-02-29 23:30:55 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > The hard blocker is both in DEPEND and RDEPEND.
> 
> I'm not familiar with the purpose of this blocker. Perhaps a soft blocker in
> RDEPEND would be sufficient?

I am not familiar either but Victor Ostorga said in comment #3 that the package cannot be built if the old version is around.

And again, I am not asking for any new and different changes. I only want to see what was decided in comment #6 (moving the hard blocker to DEPEND) to get done.
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2012-04-02 09:12:51 UTC
Not fixed, but I'm also not sure where actually the bug is... Should portage be able to uninstall talloc and rebuild talloc afterwards?

[ebuild     U  ] sys-libs/talloc-2.0.7 [2.0.1-r2] USE="compat python%* (-doc%) (-static-libs%) (-swig%)" 363 kB
[blocks B      ] <sys-libs/talloc-2.0.5 ("<sys-libs/talloc-2.0.5" is blocking sys-libs/talloc-2.0.7)
Comment 12 Zac Medico gentoo-dev 2012-04-02 16:44:50 UTC
(In reply to comment #11)
> Not fixed, but I'm also not sure where actually the bug is... Should portage
> be able to uninstall talloc and rebuild talloc afterwards?

Yes, but it's not implemented yet. It's been requested in bug 250286.
Comment 13 Zac Medico gentoo-dev 2012-04-02 16:49:09 UTC
(In reply to comment #10)
> I am not familiar either but Victor Ostorga said in comment #3 that the
> package cannot be built if the old version is around.
> 
> And again, I am not asking for any new and different changes. I only want to
> see what was decided in comment #6 (moving the hard blocker to DEPEND) to
> get done.

That's probably feasible, if the only reason for the block is a build-time failure.
Comment 14 Víctor Ostorga (RETIRED) gentoo-dev 2016-02-07 20:25:49 UTC
talloc-2.0.7 is long gone.
Current talloc versions don't have this issue