Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285004 - x11-libs/libxcb-1.4{,-r1} breaking systems
Summary: x11-libs/libxcb-1.4{,-r1} breaking systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 285301 285607 286213 Luis (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-14 21:23 UTC by Daniel Santos
Modified: 2009-11-19 23:15 UTC (History)
9 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 Daniel Santos 2009-09-14 21:23:59 UTC
Although the new ebuild leaves /usr/lib64/libxcb-xlib.so.0.0.0 in place, the symlinks are not.  Thus, programs that link to libxcb-xlib.so.0 are dead anyway (which was all of mine).  I've had quite the pleasant struggle getting my system to a shape where I could launch KDE and it's possible that re-adding these symlinks may have not been what did it, making this report invalid.  However, running revdep-rebuild --library libxcb-xlib.so.0.0.0 found no broken packages at all, I suspect because they were linked to "libxcb-xlib.so.0".

I can see that this file was superfluous and serving no purpose, but this transition is proving to be very trying.  Running revdep-rebuild (without any arguments) returned most of my system, even gcc! (it was just the gcc java compiler's awt libraries).

It would appear that the solution is to make sure the symlinks are correctly installed and modify the "revdep-rebuild " text in the postinst to whatever will correctly locate the old library.
Comment 1 Daniel Santos 2009-09-14 21:27:02 UTC
oops, forgot this

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Mon, 14 Sep 2009 19:30:04 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9
dev-lang/python:     2.6.2-r1, 3.1.1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.6.3, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=amdfam10 -O2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages installsources parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.cs.wmich.edu/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ http://osmirrors.cerias.purdue.edu/pub/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
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 --exclude '/lost+found'"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/Spring /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds 64bit 7zip X Xaw3d a52 aac aalib acl acpi afs aim aio akode alsa amd64 amr ao aotuv apache2 apm applet ares arts async audacious audiofile authdaemond authfile autoipd automount avahi bash-completion berkdb binfilter bittorrent bl bluetooth bonjour boost branding bsf bzip2 c3p0 cairo calendar cdaudio cdb cdda cddb cdparanoia cdr cegui cg cgi chm cjk cli commons-digester console consolekit cpufreq cpulimit cracklib crypt cscope css cups curl curlwrappers custom-optimization cvs cxx dbus dedicated devil dga dirac directfb divx djbfft djvu dmx dns dolby-record-switch dri dtmf dts dv dvb dvd dvdr editor eds emboss emoticon encode enscript esd evo excel exif expat extraicons faac faad fam fasttrack fax fbcon ffmpeg fftw firefox fits flac flash fltk fluidsynth fmod font-server fontconfig fontforge foomaticdb fortran fping fpx ftp fuse fusion gadu gcj gd gdbm geos ggi gif ginac git glib glitz glut gmedia gmp gmtfull gnokii gnome gnutella gnutls gphoto2 gpm gps graphviz gs gsl gsm gstreamer gtk gzip h323 hal hddtemp html htmlhandbook hwmixer icecast iceweasel iconv icq icu id3 id3tag idn ieee1394 ilbc imagemagick imap imlib inifile irc irda irrlicht isdnlog ithreads jabber jack jadetex java java5 java6 javascript jbig jce jingle jmx joystick jpeg jpeg2k kde kdrive kpathsea lame latex lcms ldap libcaca libnotify libsamplerate libvisual libwww lirc live lm_sensors log4j logitech-mouse lua lzma lzo mad maildir maps math md5sum meanwhile mikmod mime mjpeg mmap mmkeys mmx mmxext mng modperl modplug motif mouse mozdevelop mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp mudflap multicall multilib multislot multitarget musepack music musicbrainz mysql mysqli mythtv nas ncurses net netjack network njb nls nntp nptl nptlonly nsplugin nss nvidia nvtv ode odk offensive ogg openal openexr opengl openmp oscar otr pam pango pch pcntl pcre pda pdf perl phonon php player plotutils png portaudio posix postproc ppds pppd pulseaudio python qq qt3 qt3support qt4 quicktime radio rar raw readline reflection rrdcgi rtc ruby samba sametime sasl scanner schroedinger sdl sdl-image sdl-sound sensord session sharedext silc sip slp smp smtp sndfile snmp soap sockets sound speex spell spl sql sqlite sqlite3 sse sse2 sse3 ssl startup-notification stream subtitles subversion suexec svg sysfs syslog sysvipc t1lib tagwriting tcl tcpd tga theora threads thumbnail thunar tidy tiff timidity tk tokenizer tools transcode translator trayicon truetype tse3 twolame unicode upnp urandom usb userlocales v4l v4l2 vcd vdpau vdr vhosts videos vim-syntax vim-with-x visualization vorbis vorbis-psy vxml wav wavpack webdav wifi wma wmf wxwidgets wxwindows x264 xanim xattr xcb xcomposite xface xforms xft xine xinerama xinetd xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yaepg yahoo yv12 zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 auth_digest authn_alias authn_dbd 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 dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias substitute" ELIBC="glibc" FOO2ZJS_DEVICES="hpp1006" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Daniel Santos 2009-09-14 21:38:55 UTC
In case anybody else finds this bug because their system becomes broken by this problem, I resolved it like this:

cd /usr/lib64
ln -s libxcb-xlib.so.0.0.0 libxcb-xlib.so.0
ln -s libxcb-xlib.so.0.0.0 libxcb-xlib.so


Comment 3 subs 2009-09-15 02:21:58 UTC
That is a workaround but definitely not a fix. If that library should be there, then the install of libxcb should put it there.
Comment 4 Sebastian Luther (few) 2009-09-15 10:57:20 UTC
Please read the post install messages. It points you to [1]. And please stop symlinking libraries around. This is going to break the other day.

[1] http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml
Comment 5 Sebastian Luther (few) 2009-09-17 11:23:09 UTC
*** Bug 285301 has been marked as a duplicate of this bug. ***
Comment 6 Sebastian Luther (few) 2009-09-19 20:03:52 UTC
*** Bug 285607 has been marked as a duplicate of this bug. ***
Comment 7 Chr0nos 2009-09-20 02:00:45 UTC
then the solition is:
emerge -av x11-proto/xproto x11-proto/inputproto x11-proto/renderproto x11-proto/xcb-proto x11-proto/xineramaproto x11-proto/damageproto x11-proto/fontcacheproto x11-proto/kbproto x11-proto/videoproto x11-proto/bigreqsproto x11-proto/compositeproto x11-proto/fixesproto x11-proto/fontsproto x11-proto/printproto x11-proto/randrproto x11-proto/recordproto x11-proto/resourceproto x11-proto/scrnsaverproto x11-proto/xcmiscproto x11-proto/xf86bigfontproto x11-proto/xf86dgaproto x11-proto/xf86miscproto x11-proto/xf86vidmodeproto x11-proto/dri2proto x11-proto/evieext x11-proto/glproto x11-proto/trapproto x11-proto/xf86driproto x11-proto/xf86rushproto x11-proto/xextproto x11-libs/libXau x11-libs/libXdmcp x11-libs/libXfont x11-libs/libxcb x11-libs/libX11 x11-libs/xcb-util x11-libs/libXext x11-libs/libXrender x11-libs/libXfixes x11-libs/libXt x11-libs/libXcursor x11-libs/libXft x11-libs/libXi x11-libs/libXinerama x11-libs/libXrandr x11-libs/libXcomposite x11-libs/libXdamage x11-libs/libXmu x11-libs/libXpm x11-libs/libXv x11-libs/libXScrnSaver x11-libs/libXfontcache x11-libs/libXp x11-libs/libXres x11-libs/libXtst x11-libs/libXxf86dga x11-libs/libXxf86misc x11-libs/libXxf86vm x11-libs/cairo x11-libs/libXaw x11-libs/libXvMC x11-libs/pango x11-libs/gtk+ x11-libs/qt-gui
Comment 8 Daniel Santos 2009-09-22 04:28:35 UTC
(In reply to comment #4)
> Please read the post install messages. It points you to [1]. And please stop
> symlinking libraries around. This is going to break the other day.
> 
> [1] http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml
> 
This isn't an invalid bug, buddy.  Had you actually READ what I wrote, you would have also been able to see that what einfo outputs in postinst is different than what's on the guide.  Either correct the that instructions you to run "revdep-rebuild --library libxcb-xlib.so.0.0.0" from the postinst or remove it completely, don't just be lazy and close the bug invalid because you don't want to deal with it.
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2009-09-22 16:49:19 UTC
Please remove the symlinks and run :

  env-update

Portage is supposed to do that, and that should fix your issues while you finish your upgrades.

Thanks

PS, please try to stay polite in your comments, bugzilla is a work tool, not a soapbox to vent your anger.
Comment 10 Daniel Santos 2009-09-22 21:24:22 UTC
(In reply to comment #9)
> PS, please try to stay polite in your comments, bugzilla is a work tool, not a
> soapbox to vent your anger.

Sorry, I hate being blown off when I take the time & effort to report problems.  Perhaps there was a better way to solve my immediate problem than create the symlinks, but it got me going far enough to fix remaining issues.  In response to Sebastian's "Please read the post install messages." comment, I'm saying that the post install is part of the problem.

 * Old versions of installed libraries were detected on your system.
 * In order to avoid breaking packages that depend on these old libs,
 * the libraries are not being removed.  You need to run revdep-rebuild
 * in order to remove these old dependencies.  If you do not have this
 * helper program, simply emerge the 'gentoolkit' package.
 *
 *   # revdep-rebuild --library libxcb-xlib.so.0.0.0
 *
 * Once you've finished running revdep-rebuild, it should be safe to
 * delete the old libraries.  Here is a copy & paste for the lazy:
 *   # rm '//usr/lib64/libxcb-xlib.so.0.0.0'
 * libxcb-xlib.so is no longer shipped by libxcb but was kept on your system
 *
 * While your system will still work, emerging new packages or updates
 * will likely fail. You can fix broken libtool .la files by running :
 *
 *   /usr/portage/x11-libs/libxcb/files/xcb-rebuilder.sh
 *
 * To completely get rid of libxcb-xlib.so references, please read :
 * http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml

After looking at the sources, I can see that this message (the one containing the offending instructions) isn't text directly generated from postinst.  Generated by "x-modular_pkg_postinst" maybe?  In my particular case, I followed the instructions in postinst and when I read the guide, I did not notice the subtle difference in the instructions, and ignored what appeared to be a duplicate of the postinst message:

postinst says:
revdep-rebuild --library libxcb-xlib.so.0.0.0

guide says (-L is the same as --library):
revdep-rebuild -L libxcb-xlib.so.0

I'm not the only one who has been thrown off by this.  Sorry I don't have a patch or other recommended solution to offer, but the problem needs to be fixed, otherwise, you end up sending numerous people off on a "wild goose chase" running a command that takes 10s of minutes, only to do nothing.
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-09-22 21:59:03 UTC
Did you even try what I just suggested to you?

And if you sync again, you'll see that I removed the confusing double messages a few days ago.

So please, sync again, try what I suggested and then reopen this bug if you have issues, but let's concentrate on the issues.

Thanks
Comment 12 Sebastian Luther (few) 2009-09-27 14:25:44 UTC
*** Bug 286213 has been marked as a duplicate of this bug. ***
Comment 13 Patrick Lauer gentoo-dev 2009-11-19 17:11:06 UTC
*** Bug 293694 has been marked as a duplicate of this bug. ***
Comment 14 Daniel Santos 2009-11-19 19:38:44 UTC
(In reply to comment #11)
> Did you even try what I just suggested to you?
> 
> And if you sync again, you'll see that I removed the confusing double messages
> a few days ago.

Sorry for the late reply on this.  My problem was solved when I ran the revdep-rebuild command from the guide, "revdep-rebuild --library libxcb-xlib.so.0" so it would appear that the root cause of this bug was indeed the post_inst message giving incorrect instructions.  Again, I originally ignored the revdep-rebuild command from the guide because it appeared to be a duplicate of what I already ran from the post_inst message, but of course, was different.

So since this is not an invalid problem and you have fixed it, why don't you close it as "RESOLVED FIXED"?

Thanks
Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2009-11-19 23:15:18 UTC
Meh, old bug. Thanks anyway :)

Closing fixed