Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167863 - net-fs/samba-3.0.24 links against libcap if present
Summary: net-fs/samba-3.0.24 links against libcap if present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 169005 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-21 11:16 UTC by gent_bz
Modified: 2007-03-02 15:29 UTC (History)
1 user (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 gent_bz 2007-02-21 11:16:34 UTC
Using $ROOT/$PORTAGE_CONFIGROOT when installing samba-3.0.24, if libcap is installed in / (regardless of whether it is in $ROOT), samba configure will detect and link to libcap.so.1.  If libcap is not installed to $ROOT, samba will error out when started as it cannot find libcap.so.1.

Linking to libcap doesn't appear to be configurable through 'configure --without-libcap' (or whatever), so this bug is probably something to be pushed upstream (not dissimilar to auto-libfam-linking from earlier samba versions).

I did not experience this with <samba-3.0.24
Comment 1 DrChandra the Gentoo Person 2007-02-25 02:52:09 UTC
Another point of info: If samba is linked to libcap, emerge --depclean can still remove libcap. revdep-rebuild then wants to rebuild samba. Looks like libcap need to be a dep of samba.
Comment 2 DrChandra the Gentoo Person 2007-02-26 03:54:09 UTC
My samba 3.0.24 compiles without libcap present, so no use flag or dep appears to be needed.
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2007-02-26 17:35:07 UTC
Added "caps" USE-flag, together with the following line:
use caps && export ac_cv_header_sys_capability_h=yes || export ac_cv_header_sys_capability_h=no

This should do the job, closing.
Comment 4 gent_bz 2007-02-27 02:44:17 UTC
(In reply to comment #3)
> Added "caps" USE-flag, together with the following line:
> use caps && export ac_cv_header_sys_capability_h=yes || export
> ac_cv_header_sys_capability_h=no
> 
> This should do the job, closing.
> 

Thanks, looks good, nice fix.

You need to add a line to use.local.desc.
Comment 5 Tiziano Müller (RETIRED) gentoo-dev 2007-02-27 08:00:13 UTC
Nope, caps is in use.desc.
Comment 6 gent_bz 2007-02-27 08:11:00 UTC
It is.  Mea culpa.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-03-02 15:29:21 UTC
*** Bug 169005 has been marked as a duplicate of this bug. ***