public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] repo/gentoo:master commit in: sys-libs/gdbm/
@ 2022-04-27  1:36 99% Sam James
  0 siblings, 0 replies; 1+ results
From: Sam James @ 2022-04-27  1:36 UTC (permalink / raw
  To: gentoo-commits

commit:     ba06b6b628c51a87ef82430dad2f642b669c557b
Author:     Manoj Gupta <manojgupta <AT> google <DOT> com>
AuthorDate: Tue Apr 26 22:02:08 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 27 01:36:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba06b6b6

sys-libs/gdbm: call elibtoolize in src_prepare

gdbm's default libtool file causes to link with /usr/lib directory
i.e. -L/usr/lib which causes linker (LLD) to complain when
cross-compiling building for arm32.

Call elibtoolize in src_prepare to regen files to avoid the
linker errors.

Signed-off-by: Manoj Gupta <manojgupta <AT> google.com>
Closes: https://github.com/gentoo/gentoo/pull/25219
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/gdbm/gdbm-1.23.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sys-libs/gdbm/gdbm-1.23.ebuild b/sys-libs/gdbm/gdbm-1.23.ebuild
index 634e8f355c15..3f48806dc843 100644
--- a/sys-libs/gdbm/gdbm-1.23.ebuild
+++ b/sys-libs/gdbm/gdbm-1.23.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gdbm.asc
-inherit multilib-minimal verify-sig
+inherit autotools multilib-minimal verify-sig
 
 DESCRIPTION="Standard GNU database libraries"
 HOMEPAGE="https://www.gnu.org/software/gdbm/"
@@ -20,6 +20,13 @@ DEPEND="readline? ( sys-libs/readline:=[${MULTILIB_USEDEP}] )"
 RDEPEND="${DEPEND}"
 BDEPEND="verify-sig? ( sec-keys/openpgp-keys-gdbm )"
 
+src_prepare() {
+	default
+	# gdbm ships with very old libtool files, regen to avoid
+	# errors when cross-compiling.
+	elibtoolize
+}
+
 multilib_src_configure() {
 	# gdbm doesn't appear to use either of these libraries
 	export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-04-27  1:36 99% [gentoo-commits] repo/gentoo:master commit in: sys-libs/gdbm/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox