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.
ping
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(+)
sorry for the late response
To make the patch effective, eautoreconf needs to be called in src_prepare().
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(-)