Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895168 - sys-apps/systemd-253 with USE=-sysv-utils fails: cannot remove '/var/tmp/portage/sys-apps/systemd-253/image/sbin/runlevel': No such file or directory
Summary: sys-apps/systemd-253 with USE=-sysv-utils fails: cannot remove '/var/tmp/port...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-18 02:17 UTC by Albert W. Hopkins
Modified: 2023-02-18 04:10 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 Albert W. Hopkins 2023-02-18 02:17:24 UTC
I'm guessing this is because of USE=-sysv-utils because it works on my systems with the flag enabled.

```
Running custom install script '/bin/sh -c mkdir -p $DESTDIR//var/lib/systemd'
Running custom install script '/bin/sh -c touch $DESTDIR/usr'
rm: cannot remove '/var/tmp/portage/sys-apps/systemd-253/image/sbin/runlevel': No such file or directory
rm: cannot remove '/var/tmp/portage/sys-apps/systemd-253/image/sbin/telinit': No such file or directory
 * ERROR: sys-apps/systemd-253::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_install
 *   environment, line 4381:  Called meson-multilib_src_install
 *   environment, line 2794:  Called multilib-minimal_src_install
 *   environment, line 3082:  Called multilib_src_install_all
 *   environment, line 3551:  Called die
 * The specific snippet of code:
 *           rm "${ED}${rootprefix}/${sbin}"/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die;
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/systemd-253::gentoo'`,

```
Comment 1 Albert W. Hopkins 2023-02-18 02:17:59 UTC
Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1/systemd, gcc-12, glibc-2.36-r7, 6.1.12-gentoo x86_64) 
================================================================= 
System uname: Linux-6.1.12-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i9-12900K-with-glibc2.36 
KiB Mem:    65661240 total,   3957232 free 
KiB Swap:    2101244 total,   2082556 free 
Timestamp of repository gentoo: Fri, 17 Feb 2023 22:03:01 +0000 
sh bash 5.2_p15-r2 
ld GNU ld (Gentoo 2.40 p2) 2.40.0 
app-misc/pax-utils:        1.3.7::gentoo 
app-shells/bash:           5.2_p15-r2::gentoo 
dev-lang/perl:             5.36.0-r2::gentoo 
dev-lang/python:           3.10.10_p1::gentoo, 3.11.2_p1::gentoo 
dev-util/cmake:            3.25.2::gentoo 
dev-util/meson:            1.0.0::gentoo 
sys-apps/baselayout:       2.13-r1::gentoo 
sys-apps/sandbox:          2.30-r1::gentoo 
sys-apps/systemd:          252.5::gentoo 
sys-devel/autoconf:        2.71-r5::gentoo 
sys-devel/automake:        1.16.5::gentoo 
sys-devel/binutils:        2.40-r1::gentoo 
sys-devel/binutils-config: 5.5::gentoo 
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo 
sys-devel/gcc-config:      2.10::gentoo 
sys-devel/libtool:         2.4.7-r1::gentoo 
sys-devel/make:            4.4::gentoo 
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers) 
sys-libs/glibc:            2.36-r7::gentoo 
Repositories: 

gentoo 
    location: /var/db/repos/gentoo 
    sync-type: rsync 
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage 
    priority: -1000 
    volatile: True 
    sync-rsync-verify-metamanifest: no 
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1 
    sync-rsync-verify-max-age: 24 

ACCEPT_KEYWORDS="amd64 ~amd64" 
ACCEPT_LICENSE="@FREE" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=native -O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc" 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" 
CXXFLAGS="-march=native -O2 -pipe" 
DISTDIR="/var/cache/distfiles" 
EMERGE_DEFAULT_OPTS="--jobs=10 --autounmask=n" 
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" 
FCFLAGS="-march=native -O2 -pipe" 
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo noman nostrip notitles parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans" 
FFLAGS="-march=native -O2 -pipe" 
GENTOO_MIRRORS="http://distfiles.gentoo.org" 
LANG="C.UTF8" 
LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
LEX="flex" 
MAKEFLAGS="" 
MAKEOPTS="-j5" 
PKGDIR="/var/cache/binpkgs" 
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 --exclude=/.git" 
PORTAGE_TMPDIR="/var/tmp" 
USE="amd64 gnu ipv6 libglvnd native-extensions nptl openssl pam split-usr ssl systemd test-rust threads unicode" ABI_X86="64" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" NGINX_MODULES_HTTP="auth_basic gzip proxy referer rewrite headers_more uwsgi" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby24" USERLAND="GNU" 
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-18 02:22:47 UTC
Please attach the full build.log for completeness (and the exact combination of USE flags may matter).
Comment 3 Larry the Git Cow gentoo-dev 2023-02-18 04:10:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f19e9576402e1b8a083359effd671c9463b6420

commit 6f19e9576402e1b8a083359effd671c9463b6420
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-02-18 04:08:26 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-02-18 04:08:26 +0000

    sys-apps/systemd: fix install with USE="-sysv-utils"
    
    The runlevel and telinit symlinks are not created when sysv compat is
    disabled.
    
    Closes: https://bugs.gentoo.org/895168
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/systemd-253.ebuild  | 4 ++--
 sys-apps/systemd/systemd-9999.ebuild | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)