I saw that net-fs/samba does not depend on net-dns/avahi, even with USE="zeroconf" set, which merely affects samba's configure phase. I noticed this by chance when uninstalling MPD on a home server of mine, which caused "emerge --depclean" to remove net-dns/avahi, which in turn caused "emerge @preserved-rebuild" to rebuild net-fs/samba. Interestingly enough the build succeeds, so the build system can cope with zeroconf being requested but avahi not being available. This means that apparently the samba ebuilds have an automagic dependency on net-fs/avahi, namely when the user has USE="zeroconf" set and happens to have net-fs/avahi installed. I have no idea why the samba ebuilds are missing this dependency, and the git logs don't go far back enough that I could find out why. What I *could* find was that, in the initial commit of the Gentoo git repository, the dependency was there in the samba 3.x ebuilds (specifically, the dependency was on "net-dns/avahi[dbus]"), but was missing in the 4.x ebuilds. Is there a reason for this? If so, it would be great to, e.g., add a comment in the ebuild, or output something in pkg_postinst(). Reproducible: Always The output of "emerge --info" from the affected system: % emerge --info net-fs/samba Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/systemd, gcc-8.3.0, glibc-2.29-r2, 4.19.72-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.19.72-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.6 KiB Mem: 3051596 total, 154408 free KiB Swap: 4194296 total, 4161336 free Timestamp of repository gentoo: Fri, 18 Oct 2019 21:26:01 +0000 Head commit of repository gentoo: 90aacf5e63dc6b6ec67f0e7f9b25014483251b1f Head commit of repository tlp: c4409992959bd3b98947a68462b91f50e9b1006d sh dash 0.5.9.1-r3 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 4.4_p23-r1::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.9::gentoo dev-util/cmake: 3.14.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 8.3.0-r1::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git priority: -1000 sync-git-verify-commit-signature: true mjoliet location: /home/marcec/mjoliet-overlay masters: gentoo tlp location: /var/db/repos/tlp sync-type: git sync-uri: https://github.com/dywisor/tlp-portage.git masters: gentoo Installed sets: @local-diefledermaus, @sys-base, @sys-utils ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/lib64/netdata/conf.d /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.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 /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=y --nospinner --keep-going" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ https://mirror.netcologne.de/gentoo/ https://mirror.leaseweb.com/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/var/cache/binpkgs" PORTAGE_COMPRESS="" 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="acl amd64 berkdb bzip2 caps cjk cli crypt cxx djvu dri faad ffmpeg fftw fish-completion flac fortran gdbm gmp gnutls iconv idn inotify ipv6 lapack libsamplerate libtirpc lzma modplug multilib musepack musicbrainz ncurses nls nptl offensive ogg openmp opus osc pam pcre pulseaudio rar readline samba sasl seccomp sid slang sndfile speex split-usr ssl systemd taglib tcpd theora threads timidity udev unicode vorbis wavpack xattr xmp zeroconf zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 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="efi-32" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US en en-GB de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" 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_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= net-fs/samba-4.8.12::gentoo was built with the following: USE="acl gnutls pam profiling-data syslog system-mitkrb5 systemd winbind zeroconf -addc -addns -ads -ceph -client -cluster -cups -debug (-dmapi) (-fam) -gpg -iprint -ldap -python -quota (-selinux) (-system-heimdal) -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" FEATURES="binpkg-docompress unknown-features-warn merge-sync multilib-strict userpriv usersync network-sandbox config-protect-if-modified ebuild-locks ipc-sandbox unmerge-logs binpkg-logs unmerge-orphans pid-sandbox protect-owned fixlafiles preserve-libs strict news distlocks parallel-fetch sfperms xattr usersandbox assume-digests userfetch sandbox binpkg-dostrip"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e9695daa219f80265596f723f968960c547064b commit 6e9695daa219f80265596f723f968960c547064b Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2019-10-19 22:41:41 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2019-10-19 22:43:03 +0000 net-fs/samba: Added missing net-dns/avahi dependency Closes: https://bugs.gentoo.org/698060 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> net-fs/samba/samba-4.10.2.ebuild | 1 + net-fs/samba/samba-4.10.8.ebuild | 1 + net-fs/samba/samba-4.11.0.ebuild | 1 + net-fs/samba/samba-4.5.16.ebuild | 3 ++- net-fs/samba/samba-4.8.12.ebuild | 1 + net-fs/samba/samba-4.8.6-r2.ebuild | 1 + net-fs/samba/samba-4.8.6-r3.ebuild | 1 + net-fs/samba/samba-4.9.13.ebuild | 1 + 8 files changed, 9 insertions(+), 1 deletion(-)