Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 715490

Summary: >=net-fs/samba-4.12 automagically depends on sys-libs/libunwind
Product: Gentoo Linux Reporter: Eugene Shalygin <eugene.shalygin>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, crabbedhaloablution, darwinskernel, jstein, kroemmelbein, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eugene Shalygin 2020-03-30 18:10:06 UTC
>>> package: sys-libs/libunwind-1.3.1
 *  - /usr/lib64/libunwind-x86_64.so.8
 *  - /usr/lib64/libunwind-x86_64.so.8.0.1
 *      used by /usr/lib64/libsamba-util.so.0.0.1 (net-fs/samba-4.12.0)


Reproducible: Always
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-05-18 10:22:46 UTC
Optional usage of libunwind was introduced over 12 years ago in:
https://gitlab.com/samba-team/samba/-/commit/7a5ff0885d08f9e32dc9939e5fd676a987b881d9

Later, over 2 years ago, code was moved in:
https://gitlab.com/samba-team/samba/-/commit/bf9551902afdb32310db4a3381964c435dd08bf0

After move to Waf, detection of libunwind was broken and was fixed over 3 months ago in:
https://gitlab.com/samba-team/samba/-/commit/558bd7c83d08523a9e88414195d9703df38e9af2

(This code would fail to detect currently available versions of sys-libs/llvm-libunwind, which do not provide .pc files.)
Comment 2 Frank Krömmelbein 2020-11-28 18:52:02 UTC
The problem still exists with the current stable version:

[ebuild   R    ] net-fs/samba-4.12.9-r1::gentoo  USE="acl client cups pam quota system-mitkrb5 winbind -addc -addns -ads -ceph -cluster -debug (-dmapi) (-fam) -gpg -iprint -json -ldap -profiling-data -python (-selinux) -snapper -syslog (-system-heimdal) -systemd (-test) -zeroconf" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8" 0 KiB

!!! existing preserved libs:
>>> package: sys-libs/libunwind-1.4.0
 *  - /usr/lib64/libunwind.so.8
 *  - /usr/lib64/libunwind.so.8.0.1
 *      used by /usr/lib64/libsamba-util.so.0.0.1 (net-fs/samba-4.12.9-r1)
 *  - /usr/lib64/libunwind-x86_64.so.8
 *  - /usr/lib64/libunwind-x86_64.so.8.0.1
 *      used by /usr/lib64/libsamba-util.so.0.0.1 (net-fs/samba-4.12.9-r1)
Comment 3 Larry the Git Cow gentoo-dev 2021-03-25 08:30:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=794ecf10b2db99d01345ed5ec87085da56f8ef89

commit 794ecf10b2db99d01345ed5ec87085da56f8ef89
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-03-25 08:28:15 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-03-25 08:29:29 +0000

    net-fs/samba: Security bump to versions 4.12.13, 4.13.7 and 4.14.2
    
    Dropped keywords on alpha and sparc due to sys-libs/libunwind dep
    
    Bug: https://bugs.gentoo.org/778026
    Closes: https://bugs.gentoo.org/715490
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-fs/samba/Manifest             |   3 +
 net-fs/samba/samba-4.12.14.ebuild | 329 +++++++++++++++++++++++++++++++++++++
 net-fs/samba/samba-4.13.7.ebuild  | 332 +++++++++++++++++++++++++++++++++++++
 net-fs/samba/samba-4.14.2.ebuild  | 336 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 1000 insertions(+)
Comment 4 pmn 2021-07-05 16:54:46 UTC
hitting this with on all versions; please re-open.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-05 18:15:27 UTC
(In reply to jrun from comment #4)
> hitting this with on all versions; please re-open.

Commenting on a closed bug ids a good way for it to be missed. It's an unconditional dependency on all versions in tree except for alpha + sparc where support doesn't exist in libunwind.

Please open a new bug with emerge --info and any other information.