Summary: | sci-libs/ta-lib-0.4.0 - rdlibtool: error logged in slbt_exec_link_create_executable(), line 1761: path not found: gen_code.wrapper | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | orbea |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/25457 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 765709 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 sci-libs:ta-lib-0.4.0:20210518-033326.log temp.tar.bz2 |
Description
Toralf Förster
2021-05-18 07:09:49 UTC
Created attachment 709530 [details]
emerge-info.txt
Created attachment 709533 [details]
emerge-history.txt
Created attachment 709536 [details]
environment
Created attachment 709539 [details]
etc.portage.tar.bz2
Created attachment 709542 [details]
logs.tar.bz2
Created attachment 709545 [details]
sci-libs:ta-lib-0.4.0:20210518-033326.log
Created attachment 709548 [details]
temp.tar.bz2
This is failing because the all-local target in the Makefile doesn't have a prerequisite on the gen_code target that is depends on. The difference in performance between GNU libtool and slibtool where the latter is much faster probably has something do with this. Additionally there are several other issues as described in the upstream issue. https://sourceforge.net/p/ta-lib/patches/6/ Mainly: * Links internal dependencies with .la files rather than -l linker flags. The -l linker flags are for external dependencies exclusively and this can break with slibtool. * Additionally slibtool will output the gen_code binary to the .libs directory while slibtool will do so in the Makefile directory. The command needs to be invoked with $(LIBTOOL) --mode=execute to correctly copy the binary and not the slibtool wrapper script for the binary. * Lastly there is a workaround for a slibtool bug where the cp(1) command is wrapped in a shell script. Invoking the command directly with --mode=execute will result in slibtool dropping the destination argument which obviously does not work. While this workaround is far from ideal, it will be portable for GNU libtool, slibtool now and slibtool when the bug is fixed. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e1fa5ad82974f69f122a7663bd18a1f947e53e commit e1e1fa5ad82974f69f122a7663bd18a1f947e53e Author: orbea <orbea@riseup.net> AuthorDate: 2022-05-12 19:41:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-13 22:45:56 +0000 sci-libs/ta-lib: Fix build with slibtool This fixes several issues with the build: * Renames configure.in to configure.ac as is standard. * Adds detection to configure.ac for libm to replaced the hardcoded instances of -lm. * Links internal dependencies with .la files rather than -l linker flags. The -l linker flags are for external dependencies exclusively and this can break with slibtool. * With slibtool there is a parellel make issue where gen_code binary is copied to ../../../bin before it is created and the Makefile.am needs to explicitly list gen_code as a prerequisite for the 'all-local' target. This probably happens because slibtool is significantly faster than GNU libtool. * Additionally slibtool will output the gen_code binary to the .libs directory while slibtool will do so in the Makefile directory. The command needs to be invoked with $(LIBTOOL) --mode=execute to correctly copy the binary and not the slibtool wrapper script for the binary. * Lastly there is a workaround for a slibtool bug where the cp(1) command is wrapped in a shell script. Invoking the command directly with --mode=execute will result in slibtool dropping the destination argument which obviously does not work. While this workaround is far from ideal, it will be portable for GNU libtool, slibtool now and slibtool when the bug is fixed. Bug: https://bugs.gentoo.org/790770 Upstream-PR: https://sourceforge.net/p/ta-lib/patches/6/ Signed-off-by: orbea <orbea@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/25457 Signed-off-by: Sam James <sam@gentoo.org> sci-libs/ta-lib/files/ta-lib-0.4.0-slibtool.patch | 92 +++++++++++++++++++++++ sci-libs/ta-lib/ta-lib-0.4.0-r1.ebuild | 41 ++++++++++ 2 files changed, 133 insertions(+) |