Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240652 - net-mail/dovecot: libcap.so.1 dependency
Summary: net-mail/dovecot: libcap.so.1 dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-09 08:30 UTC by Patrick
Modified: 2008-11-29 20:35 UTC (History)
3 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 Patrick 2008-10-09 08:30:51 UTC
I just built net-mail/dovecot-1.1.4-r1 for a few VServers, and on some of them starting dovecot failed with the following message:

/usr/sbin/dovecot: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

I guess this is because on the build machine libcap.so.1 is available, but on the VServers it is not. I built dovecot on the VServers where it wouldn't start, and now it runs fine there - but I fear this will happen again next time.

What to do about it? Introduce a USE flag?

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-09 15:36:31 UTC
There's the caps USE flag to control this. It's one of those USE flags you want to set globally and that will infect many libraries.
Comment 2 Patrick 2008-10-10 05:16:08 UTC
Thanks, didn't know that... so this bug report is invalid, I guess.
Comment 3 Sander Toonen 2008-10-11 10:35:04 UTC
I have the same problem, but the caps useflag is set globally in /etc/make.conf. Just upgraded to net-mail/dovecot-1.1.4-r1 and now, when i restart dovecot, i get the message: 

/usr/sbin/dovecot: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

Also, updating world deep with new use flags does not affect anything so i assume that caps is compiled in already.

server ~ # whereis libcap.so.1
libcap.so: /lib/libcap.so /lib/libcap.so.2 /usr/lib/libcap.so /lib64/libcap.so /lib64/libcap.so.2 /usr/lib64/libcap.so

2.6.23-hardened-r12
Intel(R) Xeon(R) CPU E5310 @ 1.60GHz
x86_64
Comment 4 Wolfram Schlich (RETIRED) gentoo-dev 2008-11-29 18:43:08 UTC
well, dovecot itself would need to support USE=caps ...
Comment 5 Wolfram Schlich (RETIRED) gentoo-dev 2008-11-29 20:35:42 UTC
Fixed in 1.1.7-r1.
dovecot now unconditionally depends on sys-libs/libcap as
configure does not support any --with/enable-capabilities
switch and I'm not going to patch configure for that.
If you don't like that, ask upstream to change configure :)