Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633728 - net-fs/samba-4.7.0-r1 broken /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so (requires libdnsserver-common-samba4.so)
Summary: net-fs/samba-4.7.0-r1 broken /usr/lib64/python2.7/site-packages/samba/dsdb_dn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 635374 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-08 00:20 UTC by Kenton Groombridge
Modified: 2021-01-04 19:47 UTC (History)
10 users (show)

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 Kenton Groombridge 2017-10-08 00:20:45 UTC
net-fs/samba-4.7.0-r1 installs /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so with broken shared object dependency.

ldd /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so
        output omitted
        libdnsserver-common-samba4.so => not found
        output omitted

emerge --info
Portage 2.3.11 (python 3.6.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r7, 4.13.5-gentoo x86_64)
=================================================================
System uname: Linux-4.13.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-6800K_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:    65791352 total,  59356076 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 07 Oct 2017 23:11:59 +0000
Head commit of repository gentoo: 947902bc4994f958cd39464aa7b3b84b9cceffe4

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p1.0) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://192.168.1.115/portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 AdobeFlash-11.x Oracle-BCLA-JavaSE skype-4.0.0.7-copyright NVIDIA-CUDA Nessus-EULA google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://192.168.1.115/ http://104.25.4.23/gentoo/ http://mirrors.evowise.com/gentoo/ http://[2400:cb00:2048:1::6819:417]/gentoo/ http://104.25.5.23/gentoo/ http://[2600:3402:200:227::2]/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
PKGDIR="/usr/portage/packages"
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="X a52 aac aacplus acpi activities afpacket aften alsa amd64 bbswitch berkdb binary-drivers bluetooth branding bzip2 cairo caps-ng cdda cdr cli client consolekit cracklib crypt cups cxx dbus declarative dhcpcd dri3 dts dvb dvd dvdr efi efiemu emboss encode evdev exif external-fuse fam ff-card ffmpeg file-inspect firefox flac flash fortran gdbm geoip gif git glamor gpm gstreamer gtk gtk3 hpcups iconv icu ipv6 java javascript jit jpeg kde kipi kwallet large-pcap-64bit lcms ldap legacy-systray libnotify lightdm lm_sensors mad mjpeg mng modules mp3 mp4 mpeg multilib ncurses nfs nfsv4 nls nptl nsplugin nss ntfs ntfsprogs ntp nvidia ogg openal opencl opengl openmp openssl ovftool pam pango pcre pcsc-lite pdf phonon pkcs11 plasma png policykit ppds prelink projectm proprietary-codecs pulseaudio python qemu qml qt3support qt4 qt5 rar readline samba scanner sdl seccomp semantic-desktop sensors session shm smartcard sna soprano spell sqlite ssl startup-notification svc svg tcpd theora threads tiff touchpad truetype udev udisks unicode usb uvm uxa v4l v4l2 vdpau vix vorbis vpx wayland widevine widgets winbind wma wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xnest xorg xscreensaver xv xvid xvmc zip zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 André Terpstra 2017-10-11 02:06:22 UTC
same error here
Comment 2 André Terpstra 2017-10-11 13:39:13 UTC
compiles w/o errors now cause unknown
Comment 3 André Terpstra 2017-10-11 13:47:50 UTC
I have to apologize I haven't been looking well enough. The package did compile already but revdep-rebuild always wants to rebuild it:

OberonGentoo ~ # revdep-rebuild --debug
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
        main(), _libs_to_check = set()
        all_masks:

                /lib/modules
                /lib32/modules
                /lib64/modules
                libjava.so
                libjvm.so
                libodbc.so
                libodbcinst.so
 * Found a valid cache, skipping collecting phase
        analyse(), Found 17018 libraries (+4379 symlinks) and 16803 binaries
 * Scanning files
        scan(), scanelf params = ['-BF', '%F;%f;%S;%n;%M'], # files: 17301
        scan(), final output length: 13930
        scan_files(); total time to get scanelf data is 330 milliseconds
        scan_files(); total filenames found: 8042 in 360 milliseconds
 * Checking dynamic linking consistency
        analyse(), Searching for 17301 libs, bins within 21397 libraries and links
        LibCheck.__init__(), new searchlibs: ['32', '64']
        LibCheck.search(), Checking for broken 32 bit libs
        LibCheck.search(), Checking for broken 64 bit libs
        LibCheck.search(); FOUND: 64bit, libdnsserver-common-samba4.so, /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so
        LibCheck.search(); Total found: 1 libs, 1 files in 1347 milliseconds
 * Broken files that require: libdnsserver-common-samba4.so (64 bits)
        * /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so
        LibCheck.process_results(); total filepaths found: 1 in 1 milliseconds
 * Assign files to packages
        * /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so -> net-fs/samba-4.7.0-r1
        assign_packages(); assigned 1 packages, 0 orphans in 1324 milliseconds

emerge  --verbose --oneshot --complete-graph=y net-fs/samba:0
Comment 4 André Terpstra 2017-10-13 05:12:29 UTC
Thinking about it, my comment probably is trivial looking upon comment #1. Forgive my ignorance.
Comment 5 Manfred Knick 2017-10-22 12:12:20 UTC
REFERENCE:

Bug 635064 - net-fs/samba-4.7.0-r1: runtime error: file file:/usr/share/sgml/docbook/xsl-stylesheets/lib/lib.xsl
Comment 6 Paul Varner (RETIRED) gentoo-dev 2017-11-08 16:30:35 UTC
*** Bug 635374 has been marked as a duplicate of this bug. ***
Comment 7 Rolf S. Arvidson 2017-11-17 12:27:35 UTC
I have similar error ... testing the samba-4.7.1 ebuild, it seems that it does build and link the missing libdnsserver-common-samba4.so successfully, but does not install this library in the final image. However, I was able to get this to install properly with the following USE flags:
acl
addc
addns
ads
client
cups
gnutls
ldap 

Thus I have
# emerge -vp samba

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

Calculating dependencies... done!
[ebuild   R    ] net-fs/samba-4.7.1  USE="acl addc addns ads client cups -debug gnutls ldap python system-mitkrb5 systemd -ceph -cluster -dmapi -fam -gpg -iprint -pam -quota (-selinux) -syslog (-system-heimdal) {-test} -winbind -zeroconf" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" 0 KiB

such that dsdb_dns.so, etc. are now linked properly:

# ldd /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so
	linux-vdso.so.1 (0x00007ffc47b20000)
	libsamba-python-samba4.so => /usr/lib64/samba/libsamba-python-samba4.so (0x00007f91f314a000)
	libdnsserver-common-samba4.so => /usr/lib64/samba/libdnsserver-common-samba4.so (0x00007f91f2f43000)
	libsamba-util.so.0 => /usr/lib64/libsamba-util.so.0 (0x00007f91f2ccd000)
	libsamba-errors.so.1 => /usr/lib64/libsamba-errors.so.1 (0x00007f91f2983000)
	libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x00007f91f25a6000)
<cut>

Also, there is an older, upstream bug that seems to reference the same problem:
https://bugzilla.samba.org/show_bug.cgi?id=11871
Comment 8 Rolf S. Arvidson 2017-11-18 16:41:25 UTC
Alternatively, if one doesn't need any of this functionality in samba, then 
set -python USE flag (disable python) and dsdb_dns.so won't be written at all.
Comment 9 André Terpstra 2017-12-18 07:28:32 UTC
(In reply to Rolf S. Arvidson from comment #8)
> Alternatively, if one doesn't need any of this functionality in samba, then 
> set -python USE flag (disable python) and dsdb_dns.so won't be written at
> all.

This works for me, thanks!
Comment 10 Ivo Steinmann 2018-02-07 21:59:53 UTC
I did 

rm -r /usr/lib64/python2.7/site-packages/samba
emerge -1 net-fs/samba

and then the problem was gone here
Comment 11 Remy Blank 2018-10-27 08:48:41 UTC
This is still happening (or happening again) with net-fs/samba-4.8.6.

 * Checking dynamic linking consistency
 *   broken /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so (requires libdnsserver-common-samba4.so)

And the rebuild doesn't help.

$ ldd /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so
        (...)
        libdnsserver-common-samba4.so => not found
        (...)


Portage 2.3.49 (python 2.7.15-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.27-r6, 4.14.65-gentoo x86_64)
=================================================================
System uname: Linux-4.14.65-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1505M_v5_@_2.80GHz-with-gentoo-2.4.1
KiB Mem:    32740596 total,   7600000 free
KiB Swap:    4194300 total,   4191484 free
Timestamp of repository gentoo: Sat, 27 Oct 2018 01:00:01 +0000
Head commit of repository gentoo: e1f15663754a2f6fc4f3c71259572db217a64ef9
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

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

Installed sets: @c-space
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build --keep-going -j4 --load-average 8"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l12"
PKGDIR="/usr/portage/packages"
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="a52 aac acl acpi alsa amd64 apache2 audiofile avahi bash-completion bazaar berkdb bluetooth btrfs bzip2 caps cdb cdda cddb cdparanoia cdr cli consolekit crypt cryptsetup css cups curl cvs cxx dbus device-mapper dri dv dvb dvd dvdr dvdread efi encode exif expat fam ffmpeg firmware flac ftp fuse gd gdbm gif git gmp gpg http2 iconv icu id3 id3tag idn imagemagick imap imlib ipv6 java java5 java6 jbig jpeg jpeg2k lame lcms libtirpc logrotate lua lz4 lzma lzo mad maildir mbox mercurial mhash mikmod mmap mmx mmx2 mng mp3 mp4 mpeg mtp multilib ncurses netlink nfs nls nntp nptl nptlonly ntfs ogg openmp openssl opus oss pam pcre pcsc-lite pdf perl php pkcs11 png policykit ppds pthreads python quicktime readline rle rtc samba sasl seccomp slang smartcard smp snmp speex spell sqlite sqlite3 sse sse2 sse3 ssh ssl ssse3 subversion tcl tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vcd vim-syntax vorbis vpx webp wifi wmf x264 x265 xattr xml xmp xvid zeroconf zip zlib" ABI_X86="64" 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="access_compat actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbd authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cache_disk cgi dav dav_fs dav_lock dbd deflate dir env expires ext_filter file_cache filter headers ident imagemap include info log_config logio macro mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext mpx popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX ARM" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-2" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev i965 intel nouveau nvidia vesa" 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 12 Bernd 2018-10-28 09:30:40 UTC
(In reply to Remy Blank from comment #11)
> This is still happening (or happening again) with net-fs/samba-4.8.6.
> 
>  * Checking dynamic linking consistency
>  *   broken /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so (requires
> libdnsserver-common-samba4.so)
> 
> And the rebuild doesn't help.
> 
> $ ldd /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so
>         (...)
>         libdnsserver-common-samba4.so => not found
>         (...)
> 

This happened to me today too, when running revdev-rebuild.sh. The files get built for both ABIs on an amd64 multilib, but not installed for either. Activating the addns USE flag and it's dependencies solved this issue for me.
Comment 13 Micha 2018-11-08 12:18:53 UTC
(In reply to Bernd from comment #12)
> (In reply to Remy Blank from comment #11)
> > This is still happening (or happening again) with net-fs/samba-4.8.6.
> >         (...)
> >         libdnsserver-common-samba4.so => not found
> >         (...)
> This happened to me today too, when running revdev-rebuild.sh. The files get
> built for both ABIs on an amd64 multilib, but not installed for either.
> Activating the addns USE flag and it's dependencies solved this issue for me.

adding addns use flag and re-emerging incl. dependencies did not help me:

# revdep-rebuild -v -- --ask
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Collecting system binaries and libraries
 * Collecting dynamic linking informations
 * Scanning files
 * Checking dynamic linking consistency
 * Broken files that require: libdnsserver-common-samba4.so (64 bits)
        * /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so
 * Assign files to packages
        * /usr/lib64/python2.7/site-packages/samba/dsdb_dns.so -> net-fs/samba-4.8.6

emerge --ask --verbose --oneshot --complete-graph=y net-fs/samba:0

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

Calculating dependencies    ... done!                        
[ebuild   R    ] net-fs/samba-4.8.6::gentoo  USE="acl addns ads client cups fam gnutls ldap pam python syslog system-mitkrb5 winbind zeroconf -addc -ceph -cluster -debug (-dmapi) -gpg -iprint -quota (-selinux) (-system-heimdal) -systemd -test" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]
Comment 14 Bernd 2018-11-08 18:03:40 UTC
I was thinking, gpg USE flag is dependant on addns USE flag, but I was wrong, it isn't.

I compiled using the following:

$ emerge -pqv =net-fs/samba-4.8.6
[ebuild   R   ] net-fs/samba-4.8.6  USE="acl addc addns client fam gnutls gpg pam python syslog system-mitkrb5 systemd winbind -ads -ceph -cluster -cups -debug (-dmapi) -iprint -ldap -quota (-selinux) (-system-heimdal) -test -zeroconf" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7"

which installed the libdnsserver-common-samba4.so lib.
Comment 15 Micha 2018-11-08 20:28:09 UTC
(In reply to Bernd from comment #14)
> I was thinking, gpg USE flag is dependant on addns USE flag, but I was
> wrong, it isn't.
Its the other way round.
> 
> I compiled using the following:
> 
> $ emerge -pqv =net-fs/samba-4.8.6
> [ebuild   R   ] net-fs/samba-4.8.6  USE="acl addc addns client fam gnutls
> gpg pam python syslog system-mitkrb5 systemd winbind -ads -ceph -cluster
> -cups -debug (-dmapi) -iprint -ldap -quota (-selinux) (-system-heimdal)
> -test -zeroconf" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7"
> 
> which installed the libdnsserver-common-samba4.so lib.
Now this works.
Still, I think it is a bug. I have activated some use flags and installed some packages which I don't need.
Comment 16 Larry the Git Cow gentoo-dev 2018-11-09 10:09:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22ce0a7959eb3b924d3ef8c0fd8727f8a27cc15c

commit 22ce0a7959eb3b924d3ef8c0fd8727f8a27cc15c
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-11-09 09:38:46 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-11-09 10:09:40 +0000

    net-fs/samba: Another revbump to really apply the python DSDB fix
    
    which was added with 4.8.6-r1 revbump but not being applied in the
    ebuild.
    
    Bug: https://bugs.gentoo.org/633728
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-fs/samba/{samba-4.8.6-r1.ebuild => samba-4.8.6-r2.ebuild} | 1 +
 1 file changed, 1 insertion(+)
Comment 17 Conrad Kostecki gentoo-dev 2021-01-04 19:41:47 UTC
Is this still relevant?
Comment 18 Kenton Groombridge 2021-01-04 19:47:10 UTC
This can be closed.