Summary: | dev-db/libdbi-drivers-0.9.0-r1[postgres] error: /usr/lib64/postgresql-13/lib64: read: Is a directory when using slibtool | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alessandro Barbieri <lssndrbarbieri> |
Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, orbea |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 765709 | ||
Attachments: |
libdbi-drivers-0.9.0-r1:20210313-104912.log
Patch to fix the pgsql linker path. |
Description
Alessandro Barbieri
2021-03-13 22:07:53 UTC
Created attachment 691245 [details]
libdbi-drivers-0.9.0-r1:20210313-104912.log
buildlog
Created attachment 692451 [details, diff]
Patch to fix the pgsql linker path.
The problem occurs because they find the postgresql linker path with pg_config.
$ pg_config --libdir
/usr/lib64/postgresql-13/lib64
But then miss the required -L so that they pass the file directly to the compiler which obviously does not work.
rdlibtool: link: gcc .libs/dbd_pgsql.o -std=gnu99 /usr/lib64/postgresql-13/lib64 -lpq -L/usr/lib64 -ldbi -shared -fPIC -Wl,--no-undefined -o .libs/libdbdpgsql.so
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: read in flex scanner failed
Simply adding the missing -L solves this and I guess this is another thing GNU libtool silently filters out...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a11066e80787923436d8389fd0aca711f69ecf6 commit 6a11066e80787923436d8389fd0aca711f69ecf6 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-19 21:43:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-19 21:43:23 +0000 dev-db/libdbi-drivers: fix build with slibtool Closes: https://bugs.gentoo.org/775878 Signed-off-by: Sam James <sam@gentoo.org> .../libdbi-drivers-0.9.0-slibtool-libdir.patch | 21 +++++++++++++++++++++ .../libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild | 1 + 2 files changed, 22 insertions(+) |