Issue: sci-electronics/puff-20181104 calls ld directly.
Discovered on: amd64 (internal ref: ci)
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different LD implementation (like llvm-link). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Created attachment 720435 [details]
build log and emerge --info
Possible context of error(s):
ppasx.sh: line 10: ld: command not found
Not sure if policy is really relevant in this case as the Free Pascal Compiler which is used here does not even build with the GNU gold linker. Anyway....
Fixing was a little bit nasty as fpc generates a linker script during compile. So we have to patch the Makefile so that it later patches these linker script with the actual linker command. See the patches in FILESDIR for details.
The bug has been closed via the following commit(s):
Author: Thomas Beierlein <email@example.com>
AuthorDate: 2021-07-03 15:46:30 +0000
Commit: Thomas Beierlein <firstname.lastname@example.org>
CommitDate: 2021-07-03 15:47:36 +0000
sci-electronics/puff: Do not call 'ld' directly
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Thomas Beierlein <email@example.com>
.../puff/files/puff-20100127-Makefile.patch | 19 +++++++++++++++++++
.../puff/files/puff-20181104-Makefile.patch | 21 +++++++++++++++++++++
sci-electronics/puff/puff-20100127-r1.ebuild | 10 ++++------
sci-electronics/puff/puff-20181104.ebuild | 9 ++++-----
4 files changed, 48 insertions(+), 11 deletions(-)