According to the FHS version 2.2, section 4.4 (see http://www.pathname.com/fhs/2.2/fhs-4.4.html), /usr/lib/X11 should be a symlink to /usr/X11R6/lib/X11. However, if xfree-4.2.1-r2.ebuild is reinstalled, the postrm takes over and changes the link from ../X11R6/lib/X11 (which is correct) to ../X11R6/lib. Things like (i.e.,) xforms look for files in /usr/lib/X11 which are now in /usr/lib/X11/X11 after the postrm changes the link. The postrm in xfree-4.2.1.ebuild and xfree-4.2.1-r1.ebuild appears to be correct. However, if this new location is correct by gentoo standards, than all programs that obey the FHS and look for files in /usr/lib/X11 should be changed to look for them in /usr/lib/X11/X11. Reproducible: Always Steps to Reproduce: 1. Without xfree installed, install xfree-4.2.1-r2 twice. Actual Results: The link at /usr/lib/X11 points to ../Xfree86/lib. Expected Results: I believe the symlink should be to ../Xfree86/lib/X11 as per the FHS version 2.2, section 4.4. Portage 2.0.46-r9 (default-x86-1.4, gcc-which: no gcc in (/sbin:/bin:/usr/sbin:/usr/bin) sh: line 1: -dumpversion: command not found, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Xeon(TM) CPU 2.40GHz GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss apm avi crypt encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts tetex bonobo svga java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl cdr scanner cups mozilla mysql postgres ruby moznocompose moznoirc moznomail mozsvg -3dnow -alsa" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" CXXFLAGS="-march=pentium3 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j3" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Sorry, if a package is already in /var/db/pkg, there is no way to 'fix' the ebuild, thus because I fixed the symlink some time back, if you merged it before, it was fixed, it will still reset it. Anyhow, I did fix all instances in all ebuilds that was still pointing to the improper place.
Since this change i have problems to make a clean install of gentoo 1.4rc2 stage1 (livecd). the boostrap.sh script exits with an error. the problem is that the directory X11 is missing in /usr/X11R6/lib. and therefore emerge baselayout exits with an error. when ein manually create /usr/X11/R6/lib/X11 before emerging baselayout, everything works fine. maybe someone can check this. i got this problem today 3 threetimes until i created this directory.
*** Bug 15210 has been marked as a duplicate of this bug. ***