Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 795168

Summary: dev-cpp/pystring-1.1.3 calls g++ directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Sebastian Parborg <darkdefende>
Status: RESOLVED FIXED    
Severity: normal CC: dschridde+gentoobugs, proxy-maint, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-06-10 06:30:01 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-cpp/pystring-1.1.3 calls g++ directly.
Discovered on: amd64 (internal ref: ci)

NOTE:
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 C++ implementation (like clang++). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Comment 1 Agostino Sarubbo gentoo-dev 2021-06-10 06:30:04 UTC
Created attachment 715041 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-06-10 06:30:06 UTC
Possible context of error(s):

/usr/bin/libtool: line 1813: g++: command not found
Comment 3 Sebastian Parborg 2021-06-12 12:09:43 UTC
I've posted a fix here: https://github.com/gentoo/gentoo/pull/21209
Comment 4 Larry the Git Cow gentoo-dev 2021-06-12 12:55:16 UTC
The bug has been closed via the following commit(s):

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

commit 91773fd1eb57d4c080c0151f5899f1631ddf2aac
Author:     Sebastian Parborg <darkdefende@gmail.com>
AuthorDate: 2021-06-12 12:00:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-12 12:54:54 +0000

    dev-cpp/pystring: Don't use hardcoded g++ (convert to CMake)
    
    Convert the project into cmake so we get compiler switching for free.
    
    Closes: https://bugs.gentoo.org/795156
    Closes: https://bugs.gentoo.org/795168
    Signed-off-by: Sebastian Parborg <darkdefende@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/21209
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-cpp/pystring/files/cmake.patch                 | 84 ++++++++++++++++++++++
 ...tring-1.1.3.ebuild => pystring-1.1.3-r1.ebuild} | 20 ++----
 2 files changed, 91 insertions(+), 13 deletions(-)