Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713728 - net-mail/cyrus-imapd-3.0.11 fails to build with recent versions of sys-libs/libcap (PATCH)
Summary: net-mail/cyrus-imapd-3.0.11 fails to build with recent versions of sys-libs/l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/cyrusimap/cyrus-im...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-03-21 01:48 UTC by Maciej S. Szmigiero
Modified: 2020-04-09 14:08 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 Maciej S. Szmigiero 2020-03-21 01:48:54 UTC
net-mail/cyrus-imapd-3.0.11 fails to build with recent versions of sys-libs/libcap:
lib/util.c:582:12: error: conflicting types for ‘cap_setuid’
  582 | static int cap_setuid(int uid, int is_master)
      |            ^~~~~~~~~~
In file included from lib/util.c:57:
/usr/include/sys/capability.h:178:12: note: previous declaration of ‘cap_setuid’ was here
  178 | extern int cap_setuid(uid_t uid);
      |            ^~~~~~~~~~
make[2]: *** [Makefile:4541: lib/util.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

The upstream has a patch available for this issue, I have linked it at URL field.
This patch applies cleanly and makes the package buildable again.
Comment 1 Larry the Git Cow gentoo-dev 2020-04-09 14:08:14 UTC
The bug has been closed via the following commit(s):

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

commit bccf2ea2f117c28889359760444e1740e96b7f97
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2020-04-09 14:07:45 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2020-04-09 14:07:45 +0000

    net-mail/cyrus-imapd: security bump to 3.0.13
    
    also fixes building with new versions of libcap and gcc-10
    
    Closes: https://bugs.gentoo.org/713728
    Closes: https://bugs.gentoo.org/713502
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 net-mail/cyrus-imapd/Manifest                      |   1 +
 net-mail/cyrus-imapd/cyrus-imapd-3.0.13.ebuild     | 230 +++++++++++++++++++++
 .../cyrus-imapd/files/cyrus-imapd-libcap.patch     |  64 ++++++
 net-mail/cyrus-imapd/metadata.xml                  |   2 +-
 4 files changed, 296 insertions(+), 1 deletion(-)