Daemon gsad fails to start and appears to depend on app-arch/brotli which is not pulled in. Manually installing brotli will allow gsad to start. ~ % sudo rc-service gsad start * Caching service dependencies ... [ ok ] * /run/gsad: creating directory * Starting Greenbone Security Assistant (GSA) .../usr/bin/gsad: error while loading shared libraries: libbrotlienc.so.1: cannot open shared object file: No such file or directory * start-stop-daemon: failed to start `/usr/bin/gsad' * Failed to start Greenbone Security Assistant (GSA) [ !! ] * ERROR: gsad failed to start After installing brotli: ~ % sudo rc-service gsad start * Starting Greenbone Security Assistant (GSA) ... [ ok ] * /var/log/gvm/gsad.log: correcting owner
~ % emerge --info Portage 3.0.65 (python 3.12.3-final-0, default/linux/amd64/23.0/hardened, gcc-13, glibc-2.39-r6, 5.10.216-gentoo x86_64) ================================================================= System uname: Linux-5.10.216-gentoo-x86_64-AMD_Ryzen_5_1500X_Quad-Core_Processor-with-glibc2.39 KiB Mem: 8137992 total, 1387232 free KiB Swap: 8388604 total, 7582716 free Timestamp of repository gentoo: Wed, 23 Oct 2024 09:45:01 +0000 Head commit of repository gentoo: dcaa4a0f9bd197b8fd0d4d852566df878344934f sh bash 5.2_p26-r6 ld GNU ld (Gentoo 2.42 p3) 2.42.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26-r6::gentoo dev-build/autoconf: 2.71-r7::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.28.5::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-lang/perl: 5.40.0::gentoo dev-lang/python: 3.11.9_p2::gentoo, 3.12.3-r1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54.2::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.42-r1::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/gcc: 13.3.1_p20240614::gentoo sys-devel/gcc-config: 2.11::gentoo sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: ssh://portage-host@10.1.0.2/var/db/repos/gentoo priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 3 sync-rsync-verify-metamanifest: yes ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -g -grecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-march=native -O2 -pipe -g -grecord-gcc-switches" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4 --tree --verbose-conflicts --autounmask --usepkg --getbinpkg" 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="-march=native -O2 -pipe -g -grecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe -g -grecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j5 -l4" PKGDIR="/var/cache/binpkgs" PORTAGE_BINHOST="ssh://portage-host@10.1.0.2/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/zsh" USE="acl amd64 bzip2 cet crypt gdbm hardened iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre pic pie readline seccomp ssl ssp test-rust unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_12" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_12 python3_11" RUBY_TARGETS="ruby32" VIDEO_CARDS="radeon" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
I've noticed there is a brotli use flag for net-analizer/gsad however I don't have it enabled and it appears to still require brotli at runtime with that flag disabled.
I cannot reproduce this bug. Can you please report gsad version and the output of # emerge -pv1 net-analyzer/gsad ?
(In reply to Giuseppe Foti from comment #3) > I cannot reproduce this bug. > Can you please report gsad version and the output of > # emerge -pv1 net-analyzer/gsad > ? It will likely only happen if you e.g. install brotli, build gsad as a binpkg, then install the binpkg on a system without brotli. Anyway, the issue is obvious from the ebuild: USE=brotli only controls the dependency, it doesn't control anything in the build system. So if USE=-brotli and brotli is installed, it'll use it. That's an automagic dependency: https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies.
(In reply to Sam James from comment #4) > It will likely only happen if you e.g. install brotli, build gsad as a > binpkg, then install the binpkg on a system without brotli. That is exactly what happened to me! :-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b277a73b38a3dba025aad9ed78c1a3122fbd0adc commit b277a73b38a3dba025aad9ed78c1a3122fbd0adc Author: Giuseppe Foti <foti.giuseppe@gmail.com> AuthorDate: 2024-12-07 19:44:03 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-12-07 21:28:59 +0000 net-analyzer/gsad: add 24.1.0, drop 22.9.1 Bug: https://bugs.gentoo.org/942193 Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39625 Signed-off-by: Florian Schmaus <flow@gentoo.org> net-analyzer/gsad/Manifest | 2 +- .../gsad/{gsad-22.9.1.ebuild => gsad-24.1.0.ebuild} | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-)