Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15017 - The /usr/lib/X11 link is changed to ../X11R6/lib on postrm
Summary: The /usr/lib/X11 link is changed to ../X11R6/lib on postrm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 15210 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-02 21:51 UTC by Henry So, Jr.
Modified: 2003-02-08 09:10 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 Henry So, Jr. 2003-02-02 21:51:21 UTC
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"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-05 06:27:43 UTC
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.
Comment 2 Thomas Koller 2003-02-06 17:44:41 UTC
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.
Comment 3 J Robert Ray 2003-02-08 09:10:50 UTC
*** Bug 15210 has been marked as a duplicate of this bug. ***