Package: cyrus-imapd
Version: 3.12.3-1~bpo13+1
Severity: important
Tags: upstream

Dear Maintainer,

The `Cyrus::SIEVE::managesieve` Perl module (used by `sieveshell`) fails to 
load at runtime:

```
Can't load '.../auto/Cyrus/SIEVE/managesieve/managesieve.so' for module 
Cyrus::SIEVE::managesieve: .../managesieve.so: undefined symbol: cap_free  at 
.../sieveshell line 71.
Compilation failed in require at .../sieveshell line 71.
BEGIN failed--compilation aborted at .../sieveshell line 71.
```

### Cause

`perl/sieve/managesieve/Makefile.PL.in`'s `LIBS` list does not have 
`@LIBCAP_LIBS@` (unlike `perl/imap/Makefile.PL.in`).

This breaks `sieveshell` on builds that are built with `--with-libcap` (e.g. 
Debian).

Since `libcyrus_min.a` (linked in as `MYEXTLIB`, so its own link requirements 
don't propagate) calls `cap_free()` when built `--with-libcap`, 
`managesieve.so` ends up with an undefined symbol at dlopen time, breaking 
`sieveshell`.

Fix by adding `@LIBCAP_LIBS@` to `LIBS`, matching perl/imap.

Reported upstream:
- For 3.10: https://github.com/cyrusimap/cyrus-imapd/pull/6186
- For 3.12: https://github.com/cyrusimap/cyrus-imapd/pull/6185

Kind regards,

    Edmund


-- System Information:
Debian Release: 13.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.95+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cyrus-imapd depends on:
pn  cyrus-common  <none>
ii  libc6         2.36-9+deb12u10
ii  libcom-err2   1.47.0-2
ii  libjansson4   2.14-2
ii  libsasl2-2    2.1.28+dfsg-10
ii  libsqlite3-0  3.40.1-2+deb12u1
pn  libssl3t64    <none>
ii  libwrap0      7.6.q-32
ii  zlib1g        1:1.2.13.dfsg-1

Versions of packages cyrus-imapd recommends:
ii  rsync  3.2.7-1+deb12u2

cyrus-imapd suggests no packages.

-- Configuration Files:
/etc/pam.d/imap [Errno 13] Permission denied: '/etc/pam.d/imap'

-- no debconf information

-- debsums errors found:
debsums: package cyrus-imapd is not installed

Reply via email to