Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791451 - dev-lang/lua calls libtool on prefix, fails build: make: /usr/bin/libtool: No such file or directory
Summary: dev-lang/lua calls libtool on prefix, fails build: make: /usr/bin/libtool: No...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool rlibtool
  Show dependency tree
 
Reported: 2021-05-22 09:27 UTC by Sergei Trofimovich (RETIRED)
Modified: 2022-09-23 05:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-22 09:27:32 UTC
Prefix has all it's tools in ${EPREFIX}, yet libtool is being called by absolute path:

>>> Source configured.
>>> Compiling source in ${EPREFIX}/var/tmp/portage/dev-lang/lua-5.4.2-r1/work/lua-5.4.2 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j2 CC=x86_64-pc-linux-gnu-gcc 'CFLAGS=-DLUA_COMPAT_5_3 -DLUA_USE_READLINE -DLUA_USE_LINUX  -O2 -pipe -O2 -pipe' 'SYSLDFLAGS=-Wl,-O1 -Wl,--as-needed' RPATH=${EPREFIX}/usr/lib64/ LUA_LIBS=-lreadline 'LIB_LIBS=-lm -ldl' V=5.4 gentoo_all
/usr/bin/libtool --quiet --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -c  -DLUA_COMPAT_5_3 -DLUA_USE_READLINE -DLUA_USE_LINUX  -O2 -pipe -O2 -pipe -o lapi.lo lapi.c
make: /usr/bin/libtool: No such file or directory
make: *** [Makefile:232: lapi.lo] Error 127
 * ERROR: dev-lang/lua-5.4.2-r1::gentoo failed (compile phase):
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-22 12:15:45 UTC
The following seems to be enough:

--- a/dev-lang/lua/files/lua-5.4.2-make.patch
+++ b/dev-lang/lua/files/lua-5.4.2-make.patch
@@ -25,7 +25,7 @@ index 1797df9..90284d8 100644
 +# Use libtool for binary installs, etc.
 +
 +export V
-+export LIBTOOL = /usr/bin/libtool --quiet --tag=CC
++export LIBTOOL = libtool --quiet --tag=CC
 +# See libtool manual about how to set this
 +
 +gentoo_clean:
@@ -71,7 +71,7 @@ index 514593d..8af8f99 100644

  # (end of Makefile)
 +
-+export LIBTOOL = /usr/bin/libtool --quiet --tag=CC
++export LIBTOOL = libtool --quiet --tag=CC
 +export LIB_VERSION = 6:1:1
 +
 +# The following rules use libtool for compiling and linking in order to

Note that previous versions of the patch used 'libtool'.
Comment 2 Larry the Git Cow gentoo-dev 2022-09-05 08:20:11 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=678e40a0f28403a4e6ef76695e33429fe6cefe00

commit 678e40a0f28403a4e6ef76695e33429fe6cefe00
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-09-05 08:20:00 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-09-05 08:20:00 +0000

    dev-lang/lua: update EAPI 7 -> 8
    
    Closes: https://github.com/gentoo/gentoo/pull/27061
    Bug: https://bugs.gentoo.org/472230
    Bug: https://bugs.gentoo.org/627330
    Bug: https://bugs.gentoo.org/689598
    Bug: https://bugs.gentoo.org/706378
    Bug: https://bugs.gentoo.org/765712
    Bug: https://bugs.gentoo.org/791451
    Bug: https://bugs.gentoo.org/834911
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/lua/Manifest              |  1 +
 dev-lang/lua/lua-5.4.4-r100.ebuild | 39 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=818a17909877d016c6baa9ab04ea875e98fd80bb

commit 818a17909877d016c6baa9ab04ea875e98fd80bb
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-09-05 08:19:59 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-09-05 08:19:59 +0000

    dev-lang/lua: update EAPI 7 -> 8
    
    Bug: https://bugs.gentoo.org/472230
    Bug: https://bugs.gentoo.org/627330
    Bug: https://bugs.gentoo.org/689598
    Bug: https://bugs.gentoo.org/706378
    Bug: https://bugs.gentoo.org/765712
    Bug: https://bugs.gentoo.org/791451
    Bug: https://bugs.gentoo.org/834911
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/lua/Manifest              |  1 +
 dev-lang/lua/lua-5.3.6-r100.ebuild | 39 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fab25cc8ac44fa73bb14821560ac1ba1829447df

commit fab25cc8ac44fa73bb14821560ac1ba1829447df
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-09-05 08:19:58 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-09-05 08:19:58 +0000

    dev-lang/lua: add 5.1.6
    
    * add two patches from Debian
    
    Bug: https://bugs.gentoo.org/472230
    Bug: https://bugs.gentoo.org/627330
    Bug: https://bugs.gentoo.org/689598
    Bug: https://bugs.gentoo.org/706378
    Bug: https://bugs.gentoo.org/765712
    Bug: https://bugs.gentoo.org/791451
    Bug: https://bugs.gentoo.org/834911
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/lua/Manifest                              |  1 +
 dev-lang/lua/files/5.1/0001-extern_C.patch         | 20 +++++++++
 ...02-Fix-stack-overflow-in-vararg-functions.patch | 17 ++++++++
 dev-lang/lua/lua-5.1.6.ebuild                      | 49 ++++++++++++++++++++++
 4 files changed, 87 insertions(+)
Comment 3 orbea 2022-09-23 05:53:06 UTC
This now works with:

dev-lang/lua-5.1.5-r200
dev-lang/lua-5.3.6-r102
dev-lang/lua-5.4.4-r102

Thanks!