/etc/init.d/elogind failed start with out /lib64/libaudit.so.1 Reproducible: Always Steps to Reproduce: 1. # emerge --depclean -a sys-process/audit selected: 2.8.4 protected: none omitted: none 2. # ldd /lib64/elogind/elogind linux-vdso.so.1 (0x00007ffff7fd1000) libelogind-shared-243.7.so => /lib64/elogind/libelogind-shared-243.7.so (0x00007ffff7e92000) libacl.so.1 => /lib64/libacl.so.1 (0x00007ffff7e52000) libaudit.so.1 => /lib64/libaudit.so.1 (0x00007ffff7e2b000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ffff7e0b000) libc.so.6 => /lib64/libc.so.6 (0x00007ffff7c50000) /lib64/ld-linux-x86-64.so.2 (0x00007ffff7fd2000) libcap.so.2 => /lib64/libcap.so.2 (0x00007ffff7c45000) libcap-ng.so.0 => /usr/lib64/libcap-ng.so.0 (0x00007ffff7c3b000) 3. # equery f audit | grep libaudit.so.1 /lib64/libaudit.so.1 /lib64/libaudit.so.1.0.0 # equery u elogind [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for sys-auth/elogind-243.7: U I + + acl : Add support for Access Control Lists - - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces - - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally + + pam : Add support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip + + policykit : Enable PolicyKit authentication support
I'd say this rather is some automagic dep? Here's my elogind binary for comparison: > ldd /lib64/elogind/elogind linux-vdso.so.1 (0x00007fff5cfa3000) libelogind-shared-243.7.so => /lib64/elogind/libelogind-shared-243.7.so (0x00007f14f6ed0000) libacl.so.1 => /lib64/libacl.so.1 (0x00007f14f6e78000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f14f6e58000) libc.so.6 => /lib64/libc.so.6 (0x00007f14f6c98000) /lib64/ld-linux-x86-64.so.2 (0x00007f14f7010000) libcap.so.2 => /lib64/libcap.so.2 (0x00007f14f6c88000) As you can see, no linking to libaudit. Please post the output of emerge --info elogind (preferrably as a comment) to this bug.
This could happen only if you had sys-process/audit installed during build of elogind. I will fix it inside ebuild so it no longer gets pulled in like that.
I forgot to write, elogind was installed from BINHOST Portage 3.0.8 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r2, 5.4.60-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.4.60-gentoo-x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.7 KiB Mem: 8143248 total, 987996 free KiB Swap: 2097148 total, 2097148 free Timestamp of repository gentoo: Tue, 10 Nov 2020 00:45:01 +0000 Head commit of repository gentoo: 739218492b233d56918dc5c8e70170da9471f355 sh bash 5.0_p18 ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18-r4::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0::gentoo dev-util/cmake: 3.17.4-r1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.33.1-r1::gentoo, 2.34-r2::gentoo sys-devel/gcc: 9.3.0-r1::gentoo sys-devel/gcc-config: 2.3.2::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://mirror.yandex.ru/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes aytpo location: /var/lib/layman/aytpo masters: gentoo priority: 50 flatpak-overlay location: /var/lib/layman/flatpak-overlay masters: gentoo priority: 50 Installed sets: @network, @recoll ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/systemd/system/mdmonitor.service /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/genkernel/arch/x86 /usr/share/genkernel/defaults/ /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" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--rebuild-if-new-ver=n --rebuild-if-new-rev=n --quiet-build=y --fail-clean=y --autounmask-write=y --autounmask --jobs=2 --keep-going --with-bdeps=y --rebuilt-binaries=y --verbose-conflict" 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 config-protect-if-modified distlocks fail-clean fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news notitles parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ru en" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_BINHOST="http://10.8.0.10:8000/" 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="256-color X a52 aac aacplus aacs aalib acl acpi adns afp aften airplay all_sfx alsa alsa-plugin alt-font-width altq amd64 amr analyzer ansi apng archive armv5te armv6 armv6t2 armvfp arp arping asf aspell asyncns audacious auto-hinter autoipd autoshutdown autotrace avahi avcodec avformat berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cue cups dbus digitalradio djvu dns dnsretry dri dts dvbpsi dvd dvdr dvi elogind emboss enca encode evdev exif extras faad fdk ffmpeg flac fluidsynth fontconfig fonts foomatic foomaticdb fortran fribidi fuse gadu gdbm geany gecko gif gimp glamor gnuplot gnutella googledrive gphoto2 gpm grc groupwise growl gsf gsm gsm-nonstandard gstreamer gtk gtkspell gtkstyle gts gui guionly gusb gvfs gzip http2 iconv icu imagemagick infinality ipv6 jpeg lame lcms ldap libglvnd libnotify libsamplerate libtirpc mad mms mmx mng mp3 mp4 mpeg multilib mutt mxit ncurses ndiff net netapi nls nptl ogg opengl openmp openrc pam pango pcre pdf png policykit ppds pulseaudio qt3support qt5 rdp readline samba scrobbler sdl seccomp smartcard sndfile sound sox speex spell spidermonkey split-usr sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode unzip upnp upower usb vim vim-syntax vlc vlm vnc vocoder vorbis vpx wanpipe wav wavpack wxwidgets x264 xattr xcb xinerama xml xv xvid yuv4mpeg zimg zip zlib zsh-completion zvbi" ABI_X86="64" ADA_TARGET="gnat_2018" 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="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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 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" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="vesa nouveau intel radeon via s3 s3virge rendition savage nv" 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, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-auth/elogind-243.7::gentoo was built with the following: USE="acl pam policykit -debug -doc (-selinux)" ABI_X86="(64)" CFLAGS="-O2 -march=core2 -pipe" CXXFLAGS="-O2 -march=core2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news notitles parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4453b6b6a0e1eb79ecbcb594973626d1b830fe42 commit 4453b6b6a0e1eb79ecbcb594973626d1b830fe42 Author: Piotr Karbowski <slashbeast@gentoo.org> AuthorDate: 2020-11-11 17:14:42 +0000 Commit: Piotr Karbowski <slashbeast@gentoo.org> CommitDate: 2020-11-11 17:16:17 +0000 sys-auth/elogind: 243.7-r1: interface audit dependency. Closes: https://bugs.gentoo.org/753970 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org> sys-auth/elogind/elogind-243.7-r1.ebuild | 148 +++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+)