Summary: | dev-libs/cyrus-sasl-2.1.26-r11[postgres] fails to detect PostgreSQL library | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guido Winkelmann <guido-genbugs> |
Component: | Current packages | Assignee: | Net-Mail Packages <net-mail+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alvaroag, barzog, hyedad, tb |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch for configure.in to build cyrus-sasl with pgsql module
Patch |
Description
Guido Winkelmann
2015-01-28 13:24:55 UTC
How about the intermittent revisions -r4..8? (In reply to Jeroen Roovers from comment #1) > How about the intermittent revisions -r4..8? Didn't try them. Created attachment 398354 [details, diff]
patch for configure.in to build cyrus-sasl with pgsql module
in the original configure script, it tries to search in /usr/lib/pgsql, but newer ebuilds of postgresql (9.4.1 in my case) installs into /usr/lib/postgresql-{VER}, with a symlink /usr/lib/postgresql -> /usr/lib/postgresql-{VER}/lib{ARCH}
in additional, it tries to search libpq.a, even if we have no static postgres libs
this patch does 2 workarounds:
1. adds /usr/lib/postgresql to search paths
2. adds search for libpq.so in additional to libpq.a
It works for me, hope it would be helpful
P.S. It seems a same patch is needed for mysql module
i can confirm this bug, and... (In reply to Guido Winkelmann from comment #0) [...] > > Jan 28 13:38:05 blish imap[1872]: SQL engine 'pgsql' not supported > > This bug looks superficially similar to > https://bugs.gentoo.org/show_bug.cgi?id=519646 except for PostgreSQL, not > MySQL. > > Rebuilding postgresql with USE="static-libs", then rebuild cyrus-sasl works > as a workaround. ...this helped on my server. =dev-libs/cyrus-sasl-2.1.26-r10::gentoo is affected too. Any chance that this will get some attention? The provided patch does seem to fix the issue. It would be nice to see the fix added to the tree. This issue is still present in dev-libs/cyrus-sasl-2.1.26-r11. The same patch mentioned above still works to fix the issue for me. *** Bug 629546 has been marked as a duplicate of this bug. *** (In reply to Anton J. Garnik from comment #3) I assume that this patch would work, but the simpler solution is to pass --with-pgsql=/usr/lib64/postgresql instead of --with-pgsql to configure. This avoids any checking for libpq.a static library, and the resulting /usr/lib64/sasl2/libsql.so.3.0.0 is linked against libpq.so.5. Created attachment 554798 [details, diff]
Patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98aa2181b4af36fb55bd8ebaae23971e6ea4d38a commit 98aa2181b4af36fb55bd8ebaae23971e6ea4d38a Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> AuthorDate: 2018-11-10 22:49:58 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2018-11-16 20:24:40 +0000 dev-libs/cyrus-sasl: dev-libs/cyrus-sasl: Fix detection of PostgreSQL library. Fixes: https://bugs.gentoo.org/538042 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org> .../{cyrus-sasl-2.1.26-r11.ebuild => cyrus-sasl-2.1.26-r12.ebuild} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) |