Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721320 - >=net-fs/samba-4.11.7 depends on dbus without use flag
Summary: >=net-fs/samba-4.11.7 depends on dbus without use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL: https://gitlab.com/samba-team/samba/-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-06 19:54 UTC by Matt Taylor
Modified: 2020-05-25 10:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Taylor 2020-05-06 19:54:00 UTC
Samba <=4.11.6 has no dependency on dbus, but sys-apps/dbus was added to samba-4.11.7+ and 4.12.0+ ebuilds without a dbus use flag to disable it.  I didn't see anything in the Samba changelogs that indicated a hard dependency on dbus was added in 4.12.0 or 4.11.7.

I edited the ebuild for samba-4.11.7 to add a use flag check on dbus? to the CDEPEND and Samba compiled and runs successfully.  With the bump to samba-4.11.8 (and now 4.11.9) emerge keeps trying to pull in dbus every time I emerge -u world.

Reproducible: Always

Steps to Reproduce:
1. emerge -pv samba
2.
3.
Actual Results:  
# emerge -pv samba

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] acct-group/messagebus-0::gentoo  0 KiB
[ebuild  N     ] acct-user/messagebus-0::gentoo  0 KiB
[ebuild  N     ] app-text/xmlto-0.0.28-r1::gentoo  USE="-latex -text" 125 KiB
[ebuild  N     ] sys-apps/dbus-1.12.16::gentoo  USE="-X -debug -doc -elogind (-selinux) -static-libs -systemd -test -user-session" ABI_X86="(64) -32 (-x32)" 2045 KiB
[ebuild     U ~] sys-libs/ldb-2.0.10:0/2.0.10::gentoo [2.0.9:0/2.0.9::gentoo] USE="ldap lmdb -doc -python -test" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_6 -python3_7 -python3_8" 1638 KiB
[ebuild     U ~] net-fs/samba-4.11.9::gentoo [4.11.7::gentoo] USE="acl ldap pam system-mitkrb5 winbind -addc -addns -ads -ceph -client -cluster -cups -debug (-dmapi) (-fam) -gpg -iprint -json -profiling-data -python -quota (-selinux) -syslog (-system-heimdal) -systemd (-test) -zeroconf (-dbus%)" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_6 -python3_7 -python3_8" 18142 KiB

Total: 6 packages (2 upgrades, 4 new), Size of downloads: 21949 KiB


Expected Results:  
No dbus is pulled in as a dependency due to unset dbus useflag.


# emerge --info
Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.0, gcc-9.2.0, glibc-2.29-r7, 5.4.18-gentoo x86_64)
=================================================================
System uname: Linux-5.4.18-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6700_@_2.66GHz-with-gentoo-2.6
KiB Mem:     8083412 total,   1308516 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 06 May 2020 19:15:01 +0000
Head commit of repository gentoo: 3bfd6fbb4e4a285422408da21146d1869bf0a759
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.9.6-r2::gentoo, 1.10.3::gentoo, 1.11.6-r3::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
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/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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 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://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://gentoo.netnitco.net"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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/tmp"
USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc mmx mmxext multilib ncurses nptl openmp pam pcre readline samba seccomp split-usr sse sse2 sse3 ssl tcpd unicode xattr zlib" 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" 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-05-07 08:39:04 UTC
https://git.samba.org/?p=samba.git;a=blob;f=source3/wscript;h=7b257bcb845a9a77116b6d2ff6a4aa980a66efb0;hb=refs/heads/v4-11-stable#l1600

https://git.samba.org/?p=samba.git;a=blob;f=source3/modules/wscript_build;h=80b0ce9ff905fd5c923cf71a991cb6b37e9412c1;hb=refs/heads/v4-11-stable#l565

It's required by the vfs_snapper module which unfortunately is an automagic dependency[1]. If you want to have that changed, please get in touch with upstream so we can en-/disable it via a configure switch.


[1] https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies
Comment 2 Matt Taylor 2020-05-08 19:00:41 UTC
Patch submitted upstream: https://lists.samba.org/archive/samba-technical/2020-May/135241.html
Comment 3 Sven E. 2020-05-17 20:40:32 UTC
Wondering if the samba devs frogot ir's the Desktop-BUS they are using there...
Comment 4 Larry the Git Cow gentoo-dev 2020-05-25 10:58:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83d64408a66ba307841e39d7e8fc785d7aea64fc

commit 83d64408a66ba307841e39d7e8fc785d7aea64fc
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-05-25 10:57:12 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-05-25 10:58:27 +0000

    net-fs/samba: Revbumps to introduce "snapper" USE flag
    
    which helps to make sys-apps/dbus optional.
    
    Thanks-to: Matt Taylor <liverbugg@rinux.org>
    Closes: https://bugs.gentoo.org/721320
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../samba-4.13-vfs_snapper_configure_option.patch  |  56 ++++
 net-fs/samba/metadata.xml                          |   1 +
 net-fs/samba/samba-4.11.9-r1.ebuild                | 318 +++++++++++++++++++++
 net-fs/samba/samba-4.12.3-r1.ebuild                | 316 ++++++++++++++++++++
 4 files changed, 691 insertions(+)