Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108325 - mklinks.sh in pkg_postinst creates cycles
Summary: mklinks.sh in pkg_postinst creates cycles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-06 16:30 UTC by noddy
Modified: 2005-10-06 17:00 UTC (History)
0 users

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 noddy 2005-10-06 16:30:11 UTC
After merging, baselayout ebuild sources mklinks.sh which does things like "ln
-s 'lib64' '///lib' [...]". This will obviously create /lib/lib64 link pointing
to itself. I guess you guys take it for OK, but it breaks at least prelink (as
in bug 82117), not to mention leaving dead cycles around.

Maybe twiddle ln options, adding -n -f, or guard it with a [[ ! -e ... ]]?

Reproducible: Always
Steps to Reproduce:
1. emerge baselayout
2. strace prelink
3. hunt down dead lib/lib64 -> lib cycles around, or sensless ones like
/var/tmp/tmp -> /var/tmp

Actual Results:  
Funky symlinks.

Expected Results:  
No funky symlinks.

Portage 2.0.53_rc4 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.13
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/X11/xkb/symbols/pc /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache collision-protect distlocks sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-overlays/misc
/usr/local/portage-overlays/import"
SYNC="rsync://deimos.ffzg.hr/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa aotuv avi bash-completion berkdb bzip2
bzlib cdparanoia cdr crypt curl directfb doc dpms dvd dvdr dvdread edl eds
emboss encode faad fbcon fbdev foomaticdb fortran framebuffer freetype gd geoip
gif gtk2 imagemagick imlib ithreads jack jack-tmpfs javascript jpeg
kdeenablefinal live logrotate lzo lzw lzw-tiff mad maildir matroska mng mp3 mpeg
musepack musicbrainz ncurses network nls nodrm nptl nvidia offensive ogg
oggvorbis opengl openssl pam pcre pdflib perl pic png python qt quicktime
readline real rtc ruby sdl sndfile soundtouch spell sqlite ssl stroke svg sysfs
tcpd tga threads tiff truetype truetype-fonts unicode usb userlocales v4l v4l2
vorbis xine xml xml2 xpm xprint xv xvid xvmc yv12 zlib video_cards_nvidia
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-10-06 17:00:06 UTC
fixed in cvs, thanks for the heads up