app-office/mdbtools-0.7.1-r2 does not link in src/odbc subdirectory because of hardcoded /lib directory name in configure.ac thus trying to link 64 bits binaries against 32 bits shared libraries. I made a patch that fixes this issue, it may not be the best one but... Reproducible: Always Steps to Reproduce: 1. Switch to 17.1 profile (then /usr/lib contains 32 bits libraries) 2. Try to merge app-office/mdbtools-0.7.1-r2 with [odbc] USE flag set 3. Actual Results: link failure in src/odbc subdirectory when attempting to link libmdbodbc.so and libmdbodbcW.so with errors looking like: ./../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libodbcinst.so: error adding symbols: file in wrong format Expected Results: link against libraries from /usr/lib64 instead of /usr/lib
Created attachment 592590 [details] emerge info
Created attachment 592592 [details] build.log
Created attachment 592594 [details, diff] Ebuild patch proposal This patch may not be the perfect one but it fixes the problem, at least on my machine(s)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65cae217e153667e4924ea583ad1e10205815251 commit 65cae217e153667e4924ea583ad1e10205815251 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-02-27 03:50:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-02-27 04:11:51 +0000 app-office/mdbtools: fix libdir with USE=odbc Closes: https://bugs.gentoo.org/697568 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org> app-office/mdbtools/mdbtools-0.7.1-r2.ebuild | 3 +++ app-office/mdbtools/mdbtools-0.9.1.ebuild | 4 ++++ 2 files changed, 7 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a7835a8ef07544cbd633b4c7793c4b1518a505d commit 7a7835a8ef07544cbd633b4c7793c4b1518a505d Author: Sam James <sam@gentoo.org> AuthorDate: 2021-02-27 14:48:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-02-27 15:12:38 +0000 app-office/mdbtools: (security) bump to 0.9.2 Includes a patch rather than sed which has been sent upstream. URL: https://github.com/mdbtools/mdbtools/pull/261 Bug: https://bugs.gentoo.org/697568 Bug: https://bugs.gentoo.org/773289 Signed-off-by: Sam James <sam@gentoo.org> app-office/mdbtools/Manifest | 1 + .../mdbtools-0.9.2-unixODBC-respect-libdir.patch | 46 ++++++++++++++++ app-office/mdbtools/mdbtools-0.9.2.ebuild | 61 ++++++++++++++++++++++ 3 files changed, 108 insertions(+)