Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728336 - net-mail/dovecot-2.3.10.1 USE=unwind - checking whether we will be linking with libunwind... configure: error: Cannot find libunwind
Summary: net-mail/dovecot-2.3.10.1 USE=unwind - checking whether we will be linking wi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-06-15 08:04 UTC by Jeroen Roovers (RETIRED)
Modified: 2020-09-13 10:51 UTC (History)
2 users (show)

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


Attachments
dovecot-2.3.10.1-want_unwind.patch (dovecot-2.3.10.1-want_unwind.patch,634 bytes, patch)
2020-06-15 08:04 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2020-06-15 08:04:09 UTC
Created attachment 644810 [details, diff]
dovecot-2.3.10.1-want_unwind.patch

m4/want_unwind.m4 checks for libunwind through pkg-config:

checking for LIBUNWIND... yes

but then goes on to assume that $build_cpu can be used directly to link against the architecture-specific version of the library:

checking for _Uhppa2.0_init_local in -lunwind-hppa2.0... no
checking whether we will be linking with libunwind... configure: error: Cannot find libunwind

On HPPA this fails as libunwind install libunwind-hppa.so and not libunwind-hppa2.0.so.

arfrever.fta@gmail.com says that dovecot's configure should instead be checking for libunwind-generic (also through pkg-coonfig) for the architecture specific version, which produces a handy symlink from libunwind-generic.so to libunwind-<specific>.so.

m4/want_unwind.m4 could simply check for the generic libunwind, but since upstream makes an effort to check for libunwind first and then for libunwind-generic, in the attached patch I changed it to do both through pkg-config.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-08-19 07:32:16 UTC
ping
Comment 2 Larry the Git Cow gentoo-dev 2020-09-12 08:53:51 UTC
The bug has been closed via the following commit(s):

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

commit 41483d42a7d49a0f94063af7671c54f15268c9f7
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2020-09-12 08:53:26 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2020-09-12 08:53:26 +0000

    net-mail/dovecot: fix automagic dependencies and libunwind linking
    
    Closes: https://bugs.gentoo.org/737264
    Closes: https://bugs.gentoo.org/682706
    Closes: https://bugs.gentoo.org/728336
    Package-Manager: Portage-3.0.6, Repoman-3.0.1
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 net-mail/dovecot/dovecot-2.3.11.3-r1.ebuild        | 296 +++++++++++++++++++++
 .../dovecot/files/dovecot-unwind-generic.patch     |  15 ++
 net-mail/dovecot/metadata.xml                      |   2 +
 3 files changed, 313 insertions(+)
Comment 3 Eray Aslan gentoo-dev 2020-09-12 08:55:37 UTC
sorry for the late response
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-13 10:42:53 UTC
To make the patch effective, eautoreconf needs to be called in src_prepare().
Comment 5 Larry the Git Cow gentoo-dev 2020-09-13 10:51:03 UTC
The bug has been closed via the following commit(s):

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

commit 5f96100c791052ad190f6a19195c55404e3dce62
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-09-13 10:50:36 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-09-13 10:51:01 +0000

    net-mail/dovecot: Call eautoreconf
    
    Package-Manager: Portage-3.0.6, Repoman-3.0.1
    Closes: https://bugs.gentoo.org/728336
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-mail/dovecot/dovecot-2.3.11.3-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)