Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533090 - sys-apps/systemd[sysv-utils] installs broken symlinks and misses /sbin/init
Summary: sys-apps/systemd[sysv-utils] installs broken symlinks and misses /sbin/init
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
: 533580 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-20 04:07 UTC by Marien Zwart (RETIRED)
Modified: 2014-12-26 19:31 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 Marien Zwart (RETIRED) gentoo-dev 2014-12-20 04:07:10 UTC
After installing systemd-218-r1, I have:

/sbin/poweroff: broken symbolic link to ../bin/systemctl

because systemctl is in /usr/bin/, not in /bin/. Same for the other compatibility symlinks.

It looks like the problem is that the systemd ebuild copied "dosym "..${ROOTPREFIX}/bin/systemctl" /sbin/${app}" from the systemd-sysv-utils ebuild, but did not copy ": ${ROOTPREFIX=/usr}". Apparently ROOTPREFIX is unset on my system.

systemd also did not copy the /sbin/init dosym call from systemd-sysv-utils, so after switching to systemd[sysv-utils] I lost my /sbin/init symlink. This was unexpected. If this is not an oversight, there really should be some kind of warning about it.


Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.20, 3.18.1-gentoo-m14 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.1-gentoo-m14-x86_64-Intel-R-_Core-TM-_i7-4771_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16379044 total,   1778504 free
KiB Swap:    2097148 total,   2097116 free
Timestamp of tree: Unknown
sh bash 4.3_p30-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.2.1 [disabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.2.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo marienz
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE fping freedist free-noncomm AdobeFlash-11.x Google-TOS D1X CC-Sampling-Plus-1.0 unRAR MPEG-4 gSOAP repoze MSttfEULA AMD"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-ggdb -O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/var/tmp/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/srv/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage/private"
USE="X a52 aac acl acpi adns alsa amd64 avahi avx avx2 bluetooth branding btrfs bzip2 cairo canberra caps cdda cdio cdr clang cli clutter colord corefonts crypt cups cxx dbus device-mapper distinct-l doc dos dot dri dri3 dts dvd dvdr dvi eds efi emacs emboss encode equalizer evo exif expat ffmpeg firefox flac fontconfig fortran fuse g3dvl gbm gflags ghcbootstrap gif git glamor gles gles2 gmp gnome gnome-keyring gnome-online-accounts go gpg gstreamer gtk gtk3 gtkstyle http iconv icu idn imap inotify introspection ipv6 irc jpeg lame latex lcms libass libcaca libffi libkms libnotify libsecret libvisual llvm llvm-shared-libs lua lzma mad maildir minizip mmx mmxext mng modules mp3 mp4 mpeg mtp multilib nautilus ncurses nfsidmap nls nptl numpy objc ogg opengl openmp opus pam pango pch pdf playlist png policykit postscript ppds preview-latex pulseaudio python python3 qt3support qt4 readline realtime sandbox scanner schroedinger semantic-desktop session sip smtp socialweb speex spell spice sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg symlink system-icu system-jpeg systemd sysv-utils theora tiff tokyocabinet toolkit-scroll-bars tools truetype udev udisks udisks2 unicode upower urwid usb vaapi vala valgrind vorbis vpx wayland webkit wxwidgets x264 xattr xcb xcomposite xft xinerama xml xmp xorg xv xvfb xvmc zeroconf zlib zsh-completion" ABI_X86="64" ALSA_CARDS="hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid dav dav_fs dav_lock deflate dir disk_cache env 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="btrfs" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US nl fy fy_NL" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4 pypy pypy3" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby20" SANE_BACKENDS="u12" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

=================================================================
                        Package Settings
=================================================================

sys-apps/systemd-218-r1 was built with the following:
USE="acl doc gudev idn introspection kmod lz4 lzma pam policykit python seccomp ssl sysv-utils -apparmor -audit -cryptsetup -curl -elfutils -gcrypt -http (-kdbus) -qrcode (-selinux) -terminal -test -vanilla -xkb" ABI_X86="32 64 -x32" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_3 python3_4"
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-12-20 08:25:35 UTC
+  20 Dec 2014; Michał Górny <mgorny@gentoo.org> systemd-216-r2.ebuild,
+  systemd-217-r4.ebuild, systemd-218-r1.ebuild, systemd-9999.ebuild:
+  Fix sysv-utils symlink install, bug #533090.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-12-26 19:31:16 UTC
*** Bug 533580 has been marked as a duplicate of this bug. ***