Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650442 - sys-apps/systemd-238-r1 fails in the install phase
Summary: sys-apps/systemd-238-r1 fails in the install phase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-13 22:07 UTC by Fred Krogh
Modified: 2018-03-14 22:13 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 Fred Krogh 2018-03-13 22:07:19 UTC
Problem seems to be that an expected directory "/var/tmp/portage/sys-apps/systemd-238-r1/image/sbin/" is not there.

Reproducible: Always

Steps to Reproduce:
1. Happens when trying to emerge it.
2.
3.



============== emerge --info =============

Portage 2.3.24 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop, gcc-7.3.0, glibc-2.26-r6, 4.15.9-gentoo x86_64)
=================================================================
System uname: Linux-4.15.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:     8158128 total,   1790152 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Tue, 13 Mar 2018 21:00:01 +0000
Head commit of repository gentoo: 0a174283c69660dc2fa7a84b4e615616b49becbb
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1::gentoo
sys-devel/binutils:       2.30::gentoo
sys-devel/gcc:            7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r2::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:  --exclude=/.unionfs --exclude=.fuse_hidden*

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://ftp.ucsb.edu/pub/mirrors/linux/gentoo http://cudlug.cudenver.edu/gentoo http://gentoo.binarycompass.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=" --exclude=/.unionfs --exclude=.fuse_hidden*"
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="64bit X a52 aac accessibility acl acpi ads alsa alsa-plugin amd64 apache2 apng apparmor asyncns auctex bash-completion bcmath berkdb bluetooth branding build bzip2 cairo caps caps-ng cdda cdr cdrom clamav clamd cli client client-libs clisp colordiff consolekit crypt cryptsetup cups curl cxx dbus dconf debugger device-mapper dot dri dts dvd dvdr dvdread elfutils emacs emboss emul-linux86 encode equalizer exif extra fam fcgi ffmpeg flac flash fontconfig fortran ftpuf g3dvl games gcrypt gd gdbm gdu gegl gif glamor glib gnome gnome-keyring gnuefi gpm graph graphite gtk gtk3 gudev http hwdb iconv icu idn importd introspection ipod ipv6 jack jadetex java javascript jpeg kdrive keymap kmod kms kpathsea latex latin1 lcms ldap libclamav libidn2 libnotify libwww libxml2 logrotate lua lz4 lzma mad mbox mmxext mng modemmanager modules mono motif mouse mp3 mp4 mpeg multilib mysql mysqli nat ncurses network network-cron networkmanager nls nptl nsplugin nvidia ogg opengl openmp openrc oss pam pango pcre pcre16 pdf playlist png policykit pop pop3d postproc ppds preview-latex printsupport pulseaudio python qrcode qt3support qt4 qt5 readline regex rpc sdl seccomp server sockets sound sox spamassassin spell sqlite sse sse2 ssl startup-notification sudoku svg symlink sync-plugin-portage systemd sysv-utils tcpd theora threads thunderbird tiff tk tools truetype udev udisks unicode upcall upower usb usrmerge vdpau vhosts video vlc vorbis webkit webrtc-aec widgets winbind wxwidgets x264 xattr xcb xcomposite xetex xft xkb xml xulrunner xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter fcgid file_cache filter headers hwdb ident imagemap include info log_config logio macro mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Mike Gilbert gentoo-dev 2018-03-13 22:12:25 UTC
Attach a full build log.
Comment 2 Fred Krogh 2018-03-13 22:19:06 UTC
When trying to attach the build log, I get
The webpage at https://bugs.gentoo.org/attachment.cgi might be temporarily down or it may have moved permanently to a new web address.
ERR_ACCESS_DENIED

So here is the tail end of the build log.


Running custom install script '/bin/sh -c mkdir -p $DESTDIR//etc/systemd/network'
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-238-r1/image/sbin/halt': No such file or directory
rm: cannot remove '/var/tmp/portage/sys-apps/systemd-238-r1/image/sbin/init': No such file or directory
rm: cannot remove '/var/tmp/portage/sys-apps/systemd-238-r1/image/sbin/poweroff': No such file or directory
rm: cannot remove '/var/tmp/portage/sys-apps/systemd-238-r1/image/sbin/reboot': No such file or directory
rm: cannot remove '/var/tmp/portage/sys-apps/systemd-238-r1/image/sbin/runlevel': No such file or directory
rm: cannot remove '/var/tmp/portage/sys-apps/systemd-238-r1/image/sbin/shutdown': No such file or directory
rm: cannot remove '/var/tmp/portage/sys-apps/systemd-238-r1/image/sbin/telinit': No such file or directory
 [31;01m*[0m ERROR: sys-apps/systemd-238-r1::gentoo failed (install phase):
 [31;01m*[0m   (no error message)
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  124:  Called src_install
 [31;01m*[0m   environment, line 5439:  Called multilib-minimal_src_install
 [31;01m*[0m   environment, line 3620:  Called multilib_src_install_all
 [31;01m*[0m   environment, line 4045:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m           rm "${ED%/}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die;
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=sys-apps/systemd-238-r1::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-apps/systemd-238-r1::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-apps/systemd-238-r1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-apps/systemd-238-r1/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/sys-apps/systemd-238-r1/work/systemd-238'
 [31;01m*[0m S: '/var/tmp/portage/sys-apps/systemd-238-r1/work/systemd-238'
Comment 3 Mike Gilbert gentoo-dev 2018-03-13 22:22:41 UTC
That permission denied error probably means that your web browser was unable to open the log file due to file permissions. Or the file is too big and you need to compress it.

What USE flags are enabled for systemd?
Comment 4 Fred Krogh 2018-03-13 22:29:37 UTC
I zipped the build.log and it still wouldn't accept it.  The zipped file had 131146 characters while the unzipped file had 3859482.
The use flags for systemd are listed below

 * Found these USE flags for sys-apps/systemd-238-r1:
 U I
 + + abi_x86_32 : 32-bit (x86) libraries
 + + acl        : Add support for Access Control Lists
 + + apparmor   : Enable AppArmor support
 - - audit      : Enable support for sys-process/audit
 + + build      : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used
                  for creating build images and the first half of bootstrapping
                  [make stage1]
 + + cryptsetup : Enable cryptsetup tools (includes unit generator for
                  crypttab)
 + + curl       : Enable support for uploading journals
 + + elfutils   : Enable coredump stacktraces in the journal
 + + gcrypt     : Enable sealing of journal files using gcrypt
 + + gnuefi     : Enable EFI boot manager and stub loader (built using
                  sys-boot/gnu-efi)
 + + http       : Enable embedded HTTP server in journald
 + + idn        : Enable support for Internationalized Domain Names
 + + importd    : Enable import daemon
 + + kmod       : Enable kernel module loading via sys-apps/kmod
 + + libidn2    : If IDN support is enabled, use net-dns/libidn2 instead of
                  net-dns/libidn
 + + lz4        : Enable lz4 compression for the journal
 + + lzma       : Support for LZMA (de)compression algorithm
 + + nat        : Enable support for network address translation in networkd
 + + pam        : Add support for PAM (Pluggable Authentication Modules) -
                  DANGEROUS to arbitrarily flip
 + + pcre       : Add support for Perl Compatible Regular Expressions
 + + policykit  : Enable PolicyKit authentication support
 + + qrcode     : Enable qrcode output support in journal
 + + seccomp    : Enable seccomp (secure computing mode) to perform system call
                  filtering at runtime to increase security of programs
 + + ssl        : Add support for SSL/TLS connections (Secure Socket Layer /
                  Transport Layer Security)
 - + sysv-utils : Install sysvinit compatibility symlinks and manpages for
                  init, telinit, halt, poweroff, reboot, runlevel, and shutdown
 - - test       : Workaround to pull in packages needed to run with
                  FEATURES=test. Portage-2.1.2 handles this internally, so
                  don't set it in make.conf/package.use anymore
 + + usrmerge   : Enable /usr merge (experimental)
 - - vanilla    : Disable Gentoo-specific behavior and compatibility quirks
 + + xkb        : Depend on x11-libs/libxkbcommon to allow logind to control
                  the X11 keymap
Comment 5 Larry the Git Cow gentoo-dev 2018-03-13 22:33:37 UTC
The bug has been closed via the following commit(s):

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

commit d52a8034b002b208fdb5dab40e3c560f9b73629b
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2018-03-13 22:32:49 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2018-03-13 22:33:32 +0000

    sys-apps/systemd: fix install with USE="-sysv-utils usrmerge"
    
    Closes: https://bugs.gentoo.org/650442
    Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81

 sys-apps/systemd/systemd-238-r1.ebuild | 5 +++--
 sys-apps/systemd/systemd-9999.ebuild   | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
Comment 6 Fred Krogh 2018-03-14 22:13:15 UTC
Thanks -- systemd-238-r1 just emerged with no sign of problems here.