Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143718 - Portage attempts to install many packages (gettext, libXt, libXrender, and maybe more) out of order after xorg-6.8 removed
Summary: Portage attempts to install many packages (gettext, libXt, libXrender, and ma...
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-12 14:40 UTC by Stephen Hicks
Modified: 2006-08-17 04:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Initial output of 'emerge -eav xorg-x11' before manually disentangling depenency problem (problemmatic lines highlighted) (emerge-xorg-x11-bug,13.92 KB, text/plain)
2006-08-12 14:42 UTC, Stephen Hicks
Details
Output with --debug flag. (gettext-error.txt,743.33 KB, text/plain)
2006-08-17 03:40 UTC, Johan Ymerson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Hicks 2006-08-12 14:40:54 UTC
I removed xorg-6.8
-----
# emerge -aC xorg-x11
-----
and a bunch of kde packages
-----
# emerge -aC kde kde-env kdeaddons kdeadmin kdeartwork kdebase kdebase-pam kdeedu kdegames kdegraphics kdelibs kdemultimedia kdepim kdenetwork kdetoys kdeutils kdewebdev kdebluetooth
-----
and attempted to then install xorg-7.0 with
-----
# emerge -auvND xorg-x11
-----

A few packages installed okay, and then when it got to sys-devel/gettext, the install failed with a mildly cryptic message, from which I eventually gathered that libXt was missing (which was further down the list of packages to install).  I had similar problems when I manually masked sys-devel/gettext and eventually got to x11-libs/libXt, which required something else which I don't remember.  libXrender had similar issues.

All packages except gettext were fixed by simply running first
# emerge -auvDN x11-libs/libX11
while for gettext, I had to keep it (0.14.5 - I already had 0.14.4 installed) masked until xorg-x11 was complete, and at that point, it installed.  I'm unsure whether it was libX11 itself, or one of its dependencies that caused the problem.  Either way, the dependencies *should* have sorted it out for me, had they been working properly.

I've since sorted out the mess, and thus have no more details than what I'm giving here.  I've attached the list of packages I got from a -e emerge of xorg-x11, highlighting particular lines which caused problems (that is, if I can figure out how to attach)

Here is my emerge --info (after eventual install, although I upgraded portage alone using `emerge -uDN portage` before anything else, so the version shouldn't have changed):

--------------------
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aim alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bluetooth cli crypt css cups dba divx4linux dlloader dri dvd dvdr eds emacs emboss encode esd exif fbcon fftw foomaticdb fortran gcj gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 isdnlog java joystick jpeg kde libcaca libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly numarray objc ogg opengl oscar oss pam pcre pdflib perl php png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
--------------------

I suspect a number of packages just need proper dependencies added.
Comment 1 Stephen Hicks 2006-08-12 14:42:16 UTC
Created attachment 94093 [details]
Initial output of 'emerge -eav xorg-x11' before manually disentangling depenency problem (problemmatic lines highlighted)
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-12 15:05:51 UTC
(In reply to comment #0)
> while for gettext, I had to keep it (0.14.5 - I already had 0.14.4 installed)
> masked until xorg-x11 was complete, and at that point, it installed.

Well huh, gettext shouldn't depend on X.org at all, I blame the emacs use flag. Can you attach some error messages from that?
Comment 3 Stephen Hicks 2006-08-12 17:35:17 UTC
I recall the gettext problem was due at least in part to the emacs USE flag, but the libXt and libXrender problems are still there.  Something in the dependency tree needs to be fixed so that libX11 and others are installed *before* these libraries that depend on them.
Comment 4 Stephen Hicks 2006-08-12 17:36:03 UTC
I recall the gettext problem was due at least in part to the emacs USE flag, but the libXt and libXrender problems are still there.  Something in the dependency tree needs to be fixed so that libX11 and others are installed *before* these libraries that depend on them.

Unfortunately, I did not save any of the error messages.
Comment 5 Zac Medico gentoo-dev 2006-08-12 22:45:35 UTC
Please attach emerge --pretend --debug output for the command that produces the incorrect order.
Comment 6 Stephen Hicks 2006-08-13 00:06:50 UTC
I would if I could, but I can't.  I worked around the bug by manually masking some packages (gettext) and installing others before portage wanted to (libX11).  Thus, my system is no longer in a state which produces the bug.

It seems to me, however, that this is a serious problem and shouldn't be disregarded just because I can't produce any more information.  But maybe that intuition is wrong, and if it is a real problem and not just a side effect from something unsafe I may have done ages ago, then somebody else will reopen it.
Comment 7 Zac Medico gentoo-dev 2006-08-13 00:15:06 UTC
If it's a real problem then somebody else will encounter it and provide the necessary information.  Without more information, there's no point in leaving this bug open.
Comment 8 Johan Ymerson 2006-08-17 03:38:04 UTC
I seem to have the same problem.
After removing the old xorg-x11 package, i tried to update world:
emerge --buildpkg --update --deep world

I'll attach a log with --debug enabled.

emerge --info:
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gent
oo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.15
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu
tdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://devsrv.transmode.se/portage/distfiles http://gentoo.osuos
l.org/"
LC_ALL="en_US.utf8"
LINGUAS="en se"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d
istfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://devsrv.transmode.se/gentoo-portage"
USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts cli crypt cups dlloader dri 
eds emacs emboss encode firefox foomaticdb fortran gdbm gif gnome gpm gtk gtk2 i
mlib ipv6 isdnlog jpeg libg++ libwww mikmod motif mp3 ncurses nls nptl opengl os
s pam pcre pdflib perl pic png pppd python qt3 qt4 quicktime readline reflection
 session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode usb
 xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse in
put_devices_evdev kernel_linux linguas_en linguas_se userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC
_EXTRA_OPTS
Comment 9 Johan Ymerson 2006-08-17 03:40:29 UTC
Created attachment 94442 [details]
Output with --debug flag.
Comment 10 Jason Stubbs (RETIRED) gentoo-dev 2006-08-17 03:51:20 UTC
Looks like the emacs installed is linked against X11 but you've removed it. If you run `revdep-rebuild` from gentoolkit it'll probably pick it up. The bigger problem likely can't be fixed without portage tracking link-level dependencies and/or recursively removing revdeps when removing a package.
Comment 11 Johan Ymerson 2006-08-17 04:05:20 UTC
> Looks like the emacs installed is linked against X11 but you've removed it.

I see that now... The problem is that this is what happens when you try to upgrade to the latest stable xorg-x11 and have the emacs use-flag set. revdep-rebuild does not work, as there is a deadlock between gettext, needed by xorg-x11, and emacs. To reinstall gettext, you need a working emacs. To get a working emacs, you need a working gettext...

I'll try changing the emacs use-flag temporarily and recompile emacs to get around this.
Comment 12 Johan Ymerson 2006-08-17 04:34:38 UTC
I tried disabling the emacs use-flag, but that didn't help, the compilation of gettext still needs emacs.
The reason why emacs wouldn't compile was not because of gettext but because of missing xorg-x11. 
Remerging emacs without X solved the problem.