Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931631 - app-containers/lxc-6.0.0-r1 - respect USE=systemd
Summary: app-containers/lxc-6.0.0-r1 - respect USE=systemd
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joonas Niilola
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-09 13:32 UTC by Martin Mokrejš
Modified: 2024-05-09 14:52 UTC (History)
2 users (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 Martin Mokrejš 2024-05-09 13:32:17 UTC
On a new install I went misguided by Gentoo installation hadbook and used systemd profile instead of openrc, which resulted in several issues needed to be overcome by me.

Unfortunately, the init.d scripts depend on openrc, which is obviously missing. Maybe it also affects lxcfs and lxd packages. at least the lxc ackahe claim to respect USE=systemd which evidently does not.

# /etc/init.d/lxc start
-bash: /etc/init.d/lxc: cannot execute: required file not found
#

# head /etc/init.d/lxc 
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

CONTAINER=${SVCNAME#*.}

LXC_PATH=`lxc-config lxc.lxcpath`

lxc_get_configfile() {
	if [ -f "${LXC_PATH}/${CONTAINER}.conf" ]; then



# emerge -pv lxc lxd lxcfs

...

[ebuild   R    ] app-containers/lxc-6.0.0-r1:0/1.8::gentoo  USE="caps pam seccomp ssl systemd tools -apparmor -examples -io-uring -lto -man (-selinux) -test -verify-sig" 0 KiB
[ebuild   R    ] app-containers/lxd-5.21.1:0/stable::gentoo  USE="nls -apparmor -verify-sig" 0 KiB
[ebuild   R    ] sys-fs/lxcfs-6.0.0::gentoo  USE="-doc -test -verify-sig" 0 KiB



# emerge --info
Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/17.1/no-multilib/systemd/merged-usr, gcc-13, glibc-2.39-r2, 6.7.10-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.7.10-gentoo-dist-x86_64-Intel-R-_Core-TM-_i9-14900K-with-glibc2.39
KiB Mem:    64983720 total,   3324188 free
KiB Swap:  134217724 total, 132936444 free
Timestamp of repository gentoo: Wed, 01 May 2024 12:00:00 +0000
Head commit of repository gentoo: 5c315538d77dac588af843c9afd9a62c51899c64
Timestamp of repository wayland-desktop: Mon, 29 Apr 2024 20:07:17 +0000
Head commit of repository wayland-desktop: 8cbf21e9d6b7843147aa5079a6b3a22dd1ad58b4

sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.0::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.10.14::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.76.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.5-r1::gentoo
sys-devel/binutils:        2.41-r5::gentoo, 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo
Repositories:

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

wayland-desktop
    location: /var/db/repos/wayland-desktop
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 NPSL Nero-EULA-US AdobeFlash-10.3 AdobeFlash-11.x OPERA-2014 RAR Intel-SDP intel-ucode Skype-TOS vmware linux-firmware fasta vienna-rna unafold GRL MSttfEULA hplip-plugin meme mRNAmarkup ApE ICS ipw3945 finchtv modeller gmap master-pdf-editor abyss swiss-prot Aladdin AVASYS truecrypt-3.0 pyvcf Non-profit-OSL-3.0 estscan bcca_2010 oncotator Adobe blat staden CeCILL-1.1 phrap STRIDE cctbx-2.0 bh-luxi ARIADNE unRAR all-rights-reserved trf annovar_personal_only stampy-academic BSD-BroadInstitute UPennState freedist free-noncomm blasr sun-jlfgr FLI-Jena PSTT netperf sun-jsr67 xv vim.org OSGi-Specification-2.0 colt mod_fastcgi googleearth google-chrome ACE AFL churchill genscan no-source-code linux-fw-redistributable ISSL JSON MPEG-4 Apache-2.0 BSD MIT BSD-2 FSFAP unicode Subversion OPERA-2018 ms-teams-pre TeamViewer PSF-2.4 merlin android julius CROSSOVER-3 lha PUEL-11 supermicro microsoft-edge android"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-O2 -pipe -march=native -ftree-vectorize"
DISTDIR="/var/cache/distfiles"
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="-O2 -pipe -march=native -ftree-vectorize"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -ftree-vectorize"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/"
LANG="POSIX"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en_US en_GB en cs"
MAKEOPTS="-j24"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 amr amrenc aom apache apache2 archive armadillo asm audit av1 avx avx2 berkdb blas bluetooth bmp boost bz2 bzip2 cairo caps ccid cdda cdio cdr cdrom cgi chromium cli codec2 coin cpudetection crypt cryptlib cryptsetup cups curl cxx dav1d dbus device-mapper dhcp directfb directx dist-kernel dracut dri dri3 drm dvbpsi dvd dvda dxf dxva2 egl emboss encode eselect-ldso eudev exif faad fax fbcon fdk ffmpeg fftw flac fontconfig foomatic fortran frei0r fuse gbm gd gdal gdbm geoip geolocation georeferencer geos gimp gles gles2 glpk gml gmp gnutls gpm gps grass gsl gstreamer gtk gtk3 gui h.264 h.265 h264 h265 hal haptic hdf5 heif hevc hpijs hwdb iconv id3tag imaging innodb inotify introspection iproute2 ipv6 java javafx javascript jce jpeg jpeg2k jpg js jscript kdrive keymap kms ladspa lapack laptop las lcms libaom libdrm libkms libnotify librtmp libsamplerate libsoxr libtesseract libtirpc libv4l libxml2 live lm-sensors lm_sensors lz4 lzma lzo mad mariadb matroska mjpeg mmal mmx modemmanager mp3 mpeg mtp mysql ncurses netcdf networkmanager nfs nftables nls nptl nptlonly nscd nss ntfs ntfsprogs objc ocr odbc ogdi ogg openal opencl opencv opengl openh264 openmp opensc openssl opus pam parport pbs pcre pcre16 pcsc pcsc-lite pdal pdf perl php pipewire png polar policykit polkit postgres ppds pppd python qemu qml qt3support qt4 qt5 rav1e rdp readline rendering resolvconf romio rtaudio rubberband scanner seccomp server session sha slideshow smartcard sndfile sndio spatialite spice sqlite srt sse sse2 sse3 sse4_1 sse4_2 ssh ssl sslv3 ssse3 startup-notification suexec svg svt-av1 systemd tcl tcpd test-rust threads tiff tk tkip tools truetype twolame udev unicode unwind upnp usb v4l v4l2 vaapi vala vidstab vim-syntax virtualbox vmaf vnc vorbis vp8 vp9 vpx vulkan wavpack webkit webp wifi x11 x264 x265 xa xattr xcb xephyr xft xls xml xmp xorg xrandr xv xvfb xvid xvmc zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" ALSA_CARDS="hdspm usb-usx2y" APACHE2_MODULES="alias authn_core authz_core socache_shmcb authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic unixd" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="gpsclock navcom ntrip rtcm104v2 rtcm104v3 ublox nmea0183 nmea2000 aivdm passthrough" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US en-GB en cs" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" OPENMPI_RM="pbs" PHP_TARGETS="php5-4 php5-5" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python2_7 python3_10 python3_11 python3_12" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="vesa virtualbox vboxvideo vmware vmvga vmwgfx fbdev intel iris i915 i965 d3d12 virgl gna" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-09 13:33:20 UTC
We install small files unconditionally: https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0301.

So, if here, "respecting USE=systemd" just means "not installing init scripts", we're unlikely to do that.
Comment 2 Martin Mokrejš 2024-05-09 14:52:09 UTC
OK, than it is fine. Actually systemd startup scripts seem to exist and work. Thank you.