Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515554 - dev-lang/lua: uses system-wide libtool rather than generating local copy (needed to cross-compile)
Summary: dev-lang/lua: uses system-wide libtool rather than generating local copy (nee...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: William Hubbs
Keywords: PullRequest
Depends on:
Reported: 2014-06-27 20:51 UTC by Michał Górny
Modified: 2022-02-14 07:34 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

Build log (dev-lang:lua-5.1.5-r3:20140627-091905.log,10.58 KB, text/x-log)
2014-06-27 20:51 UTC, Michał Górny

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-27 20:51:21 UTC
Created attachment 379804 [details]
Build log

Long story short, /usr/bin/libtool uses whatever random CC/CXX was used when libtool was last installed. So, using system-wide libtool means mixing CC/CXX used when building the package with CC/CXX used when building libtool, with the latter likely no longer installed.

Solution: only possible I know is to use autotools macros to have proper local libtool suited for currently used CC/CXX. Or not use libtool at all.
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2014-07-04 21:09:29 UTC
Well, as we now continue to ship slot :5.1, I'll look into using for this one, too (notice how lua-5.2 already generates it's own libtool files).
Comment 2 SpanKY gentoo-dev 2015-12-18 19:26:25 UTC
lua-5.2 also runs /usr/bin/libtool
Comment 3 Larry the Git Cow gentoo-dev 2022-02-14 07:34:06 UTC
The bug has been closed via the following commit(s):

commit 3f0c95ca346af106169ceef830e4e0ae5ea3eed2
Author:     Alexandra Parker <>
AuthorDate: 2022-01-31 03:01:47 +0000
Commit:     William Hubbs <>
CommitDate: 2022-02-14 07:33:58 +0000

    dev-lang/lua:5.1.5-r107 5.3.6-r3 bump
    - Cross-compile fix, use libtol on the target system and move libtool to
      DEPEND instead of BDEPEND.
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Alexandra Parker <>
    Signed-off-by: William Hubbs <>

 dev-lang/lua/lua-5.1.5-r107.ebuild | 157 ++++++++++++++++++++++++++++
 dev-lang/lua/lua-5.3.6-r3.ebuild   | 206 +++++++++++++++++++++++++++++++++++++
 2 files changed, 363 insertions(+)