Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678754 - net-mail/cyrus-imapd-3.0.8-r1 USE="caps sieve" - perl modules underlinked
Summary: net-mail/cyrus-imapd-3.0.8-r1 USE="caps sieve" - perl modules underlinked
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-02-25 15:22 UTC by Maciej S. Szmigiero
Modified: 2019-03-15 07:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
one possible patch (cyrus-imapd-libcap-libs.patch,2.12 KB, patch)
2019-02-25 15:22 UTC, Maciej S. Szmigiero
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2019-02-25 15:22:13 UTC
net-mail/cyrus-imapd-3.0.8-r1 dropped patches for bug 604470,
probably due to the following upstream commit:
https://github.com/cyrusimap/cyrus-imapd/commit/defb2cfcac43b89300bf32dd0c71967b7246dd3b

However, when comparing these patches with the aforementioned commit
it is clear that upstream hasn't added every library that these patches did
for linking in.

At least libcap is missing, so launching sieveshell (when the package is built
with "caps" USE flag) fails due to undefined libcap symbols:
Can't load '/usr/lib64/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi/auto/Cyrus/SIEVE/managesieve/managesieve.so' for module Cyrus::SIEVE::managesieve: /usr/lib64/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi/auto/Cyrus/SIEVE/managesieve/managesieve.so: undefined symbol: cap_set_proc at /usr/lib64/perl5/5.26.1/x86_64-linux-thread-multi/DynaLoader.pm line 193. at /usr/bin/sieveshell line 65

I've attached a patch to fix the above libcap issue (which is enough to make
sieveshell work on my system), however a more through analysis is required
whether other libraries linked in by the patches applied by former versions of
net-mail/cyrus-imapd ebuilds are required, too.
Comment 1 Maciej S. Szmigiero 2019-02-25 15:22:53 UTC
Created attachment 566416 [details, diff]
one possible patch
Comment 2 Larry the Git Cow gentoo-dev 2019-03-15 07:38:39 UTC
The bug has been closed via the following commit(s):

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

commit d90a3246db6e4d20a92632c266022dfcb85822fc
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2019-03-15 07:38:16 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2019-03-15 07:38:16 +0000

    net-mail/cyrus-imapd: bump to 3.0.9
    
    and fix underlinking perl modules
    Closes: https://bugs.gentoo.org/678754
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 net-mail/cyrus-imapd/Manifest                      |   1 +
 net-mail/cyrus-imapd/cyrus-imapd-3.0.9.ebuild      | 218 +++++++++++++++++++++
 .../files/cyrus-imapd-libcap-libs-r1.patch         |  35 ++++
 3 files changed, 254 insertions(+)