Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600592 - net-fs/samba-4.2.14 with FEATURES=distcc installs broken libsmbclient.so
Summary: net-fs/samba-4.2.14 with FEATURES=distcc installs broken libsmbclient.so
Status: UNCONFIRMED
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-23 15:25 UTC by Victor Mataré
Modified: 2020-12-17 12:12 UTC (History)
2 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 Victor Mataré 2016-11-23 15:25:33 UTC
I have two ~amd64 systems, but strangely, only one has this issue. The problem is that all of the libsmbclient.so dependencies live in /usr/lib/samba and are supposed to be found via the DT_RUNPATH dynamic section attribute in libsmbclient.so.

So on the working machine I see:

# objdump -p /usr/lib/libsmbclient.so | grep RUNPATH
  RUNPATH              /usr/lib64/samba:/usr/lib64

Whereas on the broken machine I get:

# objdump -p /usr/lib/libsmbclient.so | grep RUNPATH
  RUNPATH              /usr/lib64

Which of course yields build failures for anything linking against libsmbclient.so. Both machines differ mainly in their USE flags, so I'll continue to investigate what triggers the problem, but of course something like this should not happen at all, no matter the USE flags.
Comment 1 Victor Mataré 2016-12-10 15:31:37 UTC
Okay, this seems to be triggered by FEATURES=distcc. Once I disable distcc, the correct RUNPATH is put into the library. Not sure how to proceed with this. On the one hand, there's a bunch of packages that fail to build with distcc, so maybe we don't care all that much, but those are normally pretty obvious build errors. Whereas in this case, we end up with lots of secondary problems that may be pretty hard to track down for many users.