Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys-libs/gdbm: call elibtoolize in src_prepare #25219

Closed
wants to merge 1 commit into from

Conversation

m-gupta
Copy link
Contributor

@m-gupta m-gupta commented Apr 26, 2022

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.

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @m-gupta
Areas affected: ebuilds
Packages affected: sys-libs/gdbm

sys-libs/gdbm: @gentoo/base-system

Linked bugs

No bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment.

If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers.

Missing GCO sign-off

Please read the terms of Gentoo Certificate of Origin and acknowledge them by adding a sign-off to all your commits.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. no signoff One or more commits do not indicate GCO sign-off. labels Apr 26, 2022
@m-gupta
Copy link
Contributor Author

m-gupta commented Apr 26, 2022

fwiw, elibtoolize used to be called in older versions: https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-libs/gdbm?id=44af412c0086421e18075a413dc2aba43dae6d8c. It was replaced by a bigger hammer eautoreconf at some point which was then dropped altogether.

@@ -20,6 +20,11 @@ DEPEND="readline? ( sys-libs/readline:=[${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}"
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-gdbm )"

src_prepare() {
default
elibtoolize
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment explaing why to avoid this happening in future.

Do wonder if it's stale in the tarball or if the fix never actually landed in upstream libtool so we need our patches for it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, checking build-aux/ltmain.sh:

#! /bin/sh
## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
##               by inline-source v2014-01-03.01

# libtool (GNU libtool) 2.4.6
# Provide generalized library-building support services.
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996

# Copyright (C) 1996-2015 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.  There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[...]

so yeah, their distro hasn't got 2.4.7 yet, and even that may not have the needed patches.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2022-04-26 22:42 UTC
Newest commit scanned: 840c03d
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/8b7d8b74b3/output.html

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@google.com>
@m-gupta
Copy link
Contributor Author

m-gupta commented Apr 26, 2022

Updated with a comment about old libtool files.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2022-04-26 23:27 UTC
Newest commit scanned: 79ccbbd
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/71ea9a852f/output.html

@thesamesam
Copy link
Member

Thanks!

@thesamesam
Copy link
Member

thesamesam commented Apr 27, 2022

(FWIW:

$ pkgcheck scan
sys-libs/gdbm
  IndirectInherits: version 1.23: libtool: indirect inherit usage: 'elibtoolize', line 27
  UnusedInherits: version 1.23: unused eclass: autotools

Fixed in 54f604a.)

@m-gupta
Copy link
Contributor Author

m-gupta commented Apr 27, 2022

oops, thanks for fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. no signoff One or more commits do not indicate GCO sign-off.
Projects
None yet
4 participants