The ebuild for pavucontrol depends on libcanberra conditionally on USE=X. However, that information is never passed to the pavucontrol build system; instead, the build system autodetects whether libcanberra is present or not, and thus will end up linking to it even if USE=-X. This results in an @preserved-rebuild prompt if one unmerges libcanberra. Reproducible: Always Steps to Reproduce: 1. Emerge pavucontrol with USE=X 2. Remerge pavucontrol with USE=-X 3. Unmerge libcanberra and libcanberra-gtk3 Actual Results: No @preserved-rebuild prompt, pavucontrol binary not linked to libcanberra.so Expected Results: @preserved-rebuild prompt, pavucontrol binary still linked to libcanberra.so $ emerge --info media-sound/pavucontrol Portage 3.0.66.1 (python 3.12.9-final-0, default/linux/amd64/23.0/systemd, gcc-14, glibc-2.40-r8, 6.12.16-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.12.16-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-glibc2.40 KiB Mem: 16338592 total, 763648 free KiB Swap: 2400704 total, 1246700 free Head commit of repository steam-overlay: 5b7b6d25a1094a4e96c16532cb4f1a757fb00654 Timestamp of repository gentoo: Fri, 07 Mar 2025 15:48:56 +0000 Head commit of repository gentoo: 3688124696720b3a2bf924b36871b7fed5f450c2 Head commit of repository <elided name, irrelevant to discussion>: 409e8436783ba8d3b76eef1552ceee78c4903a43 sh bash 5.2_p37 ld GNU ld (Gentoo 2.44 p1) 2.44.0 ccache version 4.10.2 [disabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo dev-build/cmake: 3.31.5::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.6.1::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0-r1::gentoo dev-lang/python: 3.12.9::gentoo, 3.13.2::gentoo dev-lang/rust: 1.84.1-r1::gentoo dev-util/ccache: 4.10.2-r1::gentoo llvm-core/clang: 18.1.8-r6::gentoo, 19.1.7::gentoo llvm-core/lld: 19.1.7::gentoo llvm-core/llvm: 18.1.8-r6::gentoo, 19.1.7::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/sandbox: 2.39::gentoo sys-apps/systemd: 256.10::gentoo sys-devel/binutils: 2.44::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.2.1_p20241221::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r8::gentoo Repositories: steam-overlay location: /var/cache/repos/steam sync-type: git sync-uri: https://github.com/anyc/steam-overlay.git masters: gentoo priority: 1 volatile: True gentoo location: /var/cache/repos/gentoo sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git sync-user: chead priority: 3 volatile: True sync-git-verify-commit-signature: true <elided name, irrelevant to discussion> location: /var/cache/repos/<elided name, irrelevant to discussion> masters: gentoo priority: 4 volatile: True <elided name, irrelevant to discussion> location: /var/cache/repos/<elided name, irrelevant to discussion> sync-type: git sync-uri: <elided, irrelevant to discussion> sync-user: chead masters: gentoo priority: 4 volatile: True Installed sets: @admin, @desktop, @dev, @emulation, @foldingathome, @fonts, @games, @media, @net, @ocwasm, @office, @remote-mouse, @vim, @web, @xfce ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE freedist" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind" 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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --complete-graph y -1 --quiet-build --unordered-display" 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 -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fakeroot 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 sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-O2 -pipe -march=native -fomit-frame-pointer" GENTOO_MIRRORS="https://gentoo.mirrors.ovh.net/gentoo-distfiles/ https://mirror.reenigne.net/gentoo/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/" LANG="en_CA.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j4" 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/cache" RUSTFLAGS="-C target-cpu=native" SHELL="/bin/bash" USE="X acl amd64 brotli bzip2 cairo caps dbus ffmpeg flac fontconfig gnome-keyring gtk iconv icu idn ipv6 joystick jpeg keyring libnotify libsamplerate libtirpc lto multilib ncurses nls nvenc ogg opengl openmp opus pam pcre pgo pipewire png policykit pulseaudio readline seccomp ssl startup-notification svg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-llvm system-png system-zlib systemd test-rust theora tiff truetype udev unicode v4l vaapi vorbis vulkan webp xattr xfce_plugins_logout xfce_plugins_menu xinerama xscreensaver xv xvmc zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx f16c pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-CA" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="nvidia" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= media-sound/pavucontrol-6.1::gentoo was built with the following: USE="-X" ABI_X86="(64)"
Im inclined to make it unconditional (libcanberra-gtk3 isn't required but libcanberra is). So from a no X perspective this won't block disabling X elsewhere.
It’s not really required in the sense of “program doesn’t work without it”. I’m running without it right now (I built with USE=-X, then preserved-rebuilt after unmerging), and pavucontrol still works fine. I actually don’t know exactly what it added; “system sounds” is still a controllable volume knob even without it.
(In reply to Christopher Head from comment #2) > It’s not really required in the sense of “program doesn’t work without it”. > I’m running without it right now (I built with USE=-X, then > preserved-rebuilt after unmerging), and pavucontrol still works fine. I > actually don’t know exactly what it added; “system sounds” is still a > controllable volume knob even without it. Sorry, “it” referring to libcanberra (not -gtk3). I currently don’t have it on this box, and pavucontrol is fine.
Created attachment 920545 [details, diff] Make libcanberra an option (not upstreamable as is) I'm now considering just disabling it. I'm not sure if its something about my environment or if the feature is broken. I think there is supposed to be a notification sound when the audio level changes?
It looks like there is code in src/sinkwidget.cc that plays a sound of some sort via libcanberra when you change the volume of a sink, if libcanberra is enabled. Not actually sure if it works or not, but the code is there, trying.
I've now found the difference. Its *very* minor. When you change the volume for a sink in "Output Devices" (not any other volume!) it makes a sound.