Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 758761

Summary: media-sound/alsa-utils should have a systemd use flag
Product: Gentoo Linux Reporter: GB <g.brandl>
Component: Current packagesAssignee: Gentoo ALSA team <alsa-bugs>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description GB 2020-12-06 10:07:27 UTC
alsa-utils seems to detect at build time if systemd is present, and only installs its unit files if it is.  There is no USE flag.

This means that when switching from a non-systemd profile, there is no indication that this package needs to be rebuilt, and the unit files are missing.

This leads to sound card levels not being restored automatically.

Reproducible: Always

Steps to Reproduce:
1. have system with openrc
2. switch to systemd profile
3. rebuild everything with --newuse
Actual Results:  
alsa-utils is not among the rebuilt packages, so the unit files are not installed

Expected Results:  
alsa-utils should have a systemd use flag, so that after switching profiles it will be rebuilt with the units files.

emerge --info:

Portage 3.0.11 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.2.0, glibc-2.32-r3, 5.9.6-gentoo x86_64)
=================================================================
System uname: Linux-5.9.6-gentoo-x86_64-AMD_Ryzen_7_1700X_Eight-Core_Processor-with-gentoo-2.7
KiB Mem:    16419580 total,  10566876 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Fri, 04 Dec 2020 15:35:34 +0000
Head commit of repository gentoo: 7ba5bda683b36a63b895926f24c39e8764bb8bbe

Timestamp of repository matrix: Wed, 25 Nov 2020 18:29:13 +0000
Head commit of repository matrix: 78c22cdd93b700a5b20d568d1e18cf111cff407e

Timestamp of repository steam-overlay: Wed, 25 Nov 2020 18:28:41 +0000
Head commit of repository steam-overlay: e326f9cdca590cdac3ab0ca1d2a640fbe00501ee

Timestamp of repository vifino-overlay: Thu, 03 Dec 2020 17:35:25 +0000
Head commit of repository vifino-overlay: 552bfd97f5c68f9185d32bb8812ebc25ebd2552c

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.6::gentoo
dev-util/cmake:           3.19.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

matrix
    location: /var/db/repos/matrix
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/matrix.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

vifino-overlay
    location: /var/db/repos/vifino-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/vifino-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL google-chrome FraunhoferFDK TeamViewer AnyDesk-TOS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -pipe -O2 -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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="-O2 -pipe -pipe -O2 -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --quiet-build=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1"
MAKEOPTS="-s -j12"
PKGDIR="/usr/portage/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacs acl acpi activities alsa amd64 archive bash-completion berkdb bittorrent bluray branding brotli bzip2 cairo caps cdda cdparanoia cdr cgroup-hybrid clang cli crypt css cups curl dbus declarative designer djvu dolphin dri dts dvd dvdr elfutils emacs emboss encode epspdf evdev exif expat faac fdk ffmpeg flac fontconfig fortran fuse gdbm gif gimp git gnutls gold gpg gpm graphite graphviz gtk gtk3 gui gzip haptic harfbuzz hdf5 heif http2 iconv icu idn imagemagick inotify ipv6 ipython jemalloc jpeg jumbo-build jupyter kde kipi lapack latex lcms libglvnd libnotify libssh libtirpc live lto lua lz4 lzma lzo mad matplotlib mercurial mmap mng mp3 mp4 mpeg mtp multilib multimedia multitarget ncurses nghttp2 notebook nptl nscd nvidia ogg opengl openmp openssl opus osmesa pam pango pcap pch pcre pcre16 pdf pdfimport perl phonon plasma plotutils png policykit postproc postscript ppds pulseaudio python qml qt5 quicktime rar readline realtime recode rtc rtmp script sdl sdl2 seccomp smp snappy sndfile sockets sound sparse spell spice split-usr sqlite ssh sshdump ssl svg syslog systemd t1lib tcpd theora thin threads tidy tiff tinfo tk truetype udev udisks unicode upower usb user-session utils uvm vaapi vdpau vim-syntax virtualbox vlc vnc vorbis vpx vte vulkan webchannel webengine webp widgets wifi wxwidgets x264 x265 xattr xcb xetex xft xml xmp xnest xpm xv xvfb xvid zeroconf zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="snd_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="karbon sheets words" CAMERAS="directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis 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="libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="asusdh" LLVM_TARGETS="X86 AArch64 ARM NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm" QEMU_USER_TARGETS="x86_64 i386 arm" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pacho Ramos gentoo-dev 2022-12-10 15:30:25 UTC
unit files are now always installed