Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222239 - sys-apps/openrc-0.2.4-r1: broken symlinks in init.d
Summary: sys-apps/openrc-0.2.4-r1: broken symlinks in init.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 347483 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-15 11:02 UTC by Robert Förster
Modified: 2011-01-13 20:38 UTC (History)
4 users (show)

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


Attachments
baselayout2-merge (baselayout2-merge.txt,6.71 KB, text/plain)
2009-02-23 18:32 UTC, Matthias Schwarzott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Förster 2008-05-15 11:02:12 UTC
just noticed them when i wanted to remove /etc/init.d/net.lo.openrc.bak
they are looking like that:
depscan.sh -> ../../sbin/depscan.sh
runscript.sh -> ../../sbin/runscript.sh
the functions.sh symlink is fine however (the extra slash at start doesn't seem to hurt)
functions.sh -> //lib64/rc/sh/functions.sh
i think /lib64 was missed out when creating the symlink, because the file is there



Reproducible: Always




Portage 2.1.5 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r2, 2.6.26-rc2-Beatrix x86_64)
=================================================================
System uname: 2.6.26-rc2-Beatrix x86_64 Intel(R) Pentium(R) D CPU 2.80GHz
Timestamp of tree: Thu, 15 May 2008 09:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ "
LDFLAGS=""
LINGUAS="de en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/local/portage /usr/local/overlays/oss-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl acpi alsa amd64 bash-completion berkdb cli cracklib crypt cups dbus dri fortran gdbm glitz gpm iconv ipv6 isdnlog ithreads jpeg kdehiddenvisibility midi mmx mudflap mysql ncurses nls no-old-linux nptl nptlonly openmp oss pam pcre perl pppd python readline reflection session spl sse sse2ssl svg symlink tcpd unicode xine xorg xulrunner zlib" ALSA_CARDS="emu10k1 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias 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 deflate dir disk_cacheenv expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2008-05-15 14:02:39 UTC
You shouldn't have depscan.sh or runscript.sh in /etc/init.d/, those are there by your own doing.

equery belongs /etc/init.d/depscan.sh will show nothing owns it.

Delete those two links/files.
Comment 2 SpanKY gentoo-dev 2008-05-15 15:05:25 UTC
no, he didnt do it ... baselayout-1 installed those symlinks.  but during the upgrade process, they should have been expunged by portage automatically.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2008-05-15 15:07:12 UTC
(In reply to comment #2)
> no, he didnt do it ... baselayout-1 installed those symlinks.  but during the
> upgrade process, they should have been expunged by portage automatically.
> 

Which happened for me on every single machine I've upgraded on. Which sounds to me like someone touched those symlinks so that mtime didn't match or some such so Portage didn't remove em.
Comment 4 Peter Fern 2009-01-11 14:03:11 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > no, he didnt do it ... baselayout-1 installed those symlinks.  but during the
> > upgrade process, they should have been expunged by portage automatically.
> > 
> 
> Which happened for me on every single machine I've upgraded on. Which sounds to
> me like someone touched those symlinks so that mtime didn't match or some such
> so Portage didn't remove em.
> 

Brand new install, symlinks still exist, no touching here - suggest re-open.
Comment 5 Mark Somerville 2009-02-10 15:42:35 UTC
Just like comment #4, brand new install with no touching and the symlinks are there. Not for long though...
Comment 6 Eric N. Vander Weele 2009-02-23 17:35:58 UTC
(In reply to comment #5)
> Just like comment #4, brand new install with no touching and the symlinks are
> there. Not for long though...
> 

I can confirm this as well. Fresh install and upgrade to openrc leaves the broken symlinks in /etc/init.d/.
Comment 7 Matthias Schwarzott gentoo-dev 2009-02-23 18:30:59 UTC
This bug seems valid. Just unpack a stage3 tarball, chroot and update to openrc leaves these old symlinks around.
Comment 8 Matthias Schwarzott gentoo-dev 2009-02-23 18:32:42 UTC
Created attachment 182926 [details]
baselayout2-merge

This is the merge part of portage output for sys-apps/baselayout-2.
One can clearly see that the links are kept for modified mtime.
Comment 9 Phattanon Duangdara 2009-08-02 09:03:07 UTC
It should remove /etc/conf.d/rc and other /etc/conf.d files used by old baselayout as well. Or at least inform user to remove by hand if neccessary.
Comment 10 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-12-22 00:00:53 UTC
Option 1: Make a note in migration guide.
Option 2: rm symlinks in postinst.

I'd lean to option 1, I guess.
Comment 11 William Hubbs gentoo-dev 2011-01-13 20:33:59 UTC
*** Bug 347483 has been marked as a duplicate of this bug. ***
Comment 12 William Hubbs gentoo-dev 2011-01-13 20:38:31 UTC
The broken links are now being removed as part of openrc's pkg_postinst phase.