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

Bug 705282

Summary: =sys-libs/libcxx-9.0.1 uses lexicographical version compare
Product: Gentoo Linux Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED FIXED    
Severity: normal CC: llvm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705240    

Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-12 11:54:48 UTC
sys-libs/libcxx uses lexicographical string version compare:

sys-libs/libcxx/libcxx-10.0.0.9999.ebuild:	if tc-is-gcc && [[ $(gcc-version) < 4.7 ]] ; then
sys-libs/libcxx/libcxx-7.1.0.ebuild:	if tc-is-gcc && [[ $(gcc-version) < 4.7 ]] ; then
sys-libs/libcxx/libcxx-8.0.1.ebuild:	if tc-is-gcc && [[ $(gcc-version) < 4.7 ]] ; then
sys-libs/libcxx/libcxx-9.0.1.ebuild:	if tc-is-gcc && [[ $(gcc-version) < 4.7 ]] ; then

The intention is likely to use 'ver_cmp'. See bug #705240 for hints to fix it.
Comment 1 Larry the Git Cow gentoo-dev 2020-05-05 21:40:23 UTC
The bug has been closed via the following commit(s):

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

commit d564decfa7cff7c90d90b4944417c91fd7c1b048
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-05-05 21:40:03 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-05-05 21:40:17 +0000

    sys-libs/libcxx: drop invalid gcc-version check, bug #705282
    
    gcc-4.7 is very old version. The version check uses lexicographical
    compare. It should use version compare to be valid. Let's just drop
    the check.
    
    Closes: https://bugs.gentoo.org/705282
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/libcxx/libcxx-10.0.0.9999.ebuild | 6 ------
 sys-libs/libcxx/libcxx-10.0.0.ebuild      | 6 ------
 sys-libs/libcxx/libcxx-11.0.0.9999.ebuild | 6 ------
 sys-libs/libcxx/libcxx-8.0.1.ebuild       | 8 +-------
 sys-libs/libcxx/libcxx-9.0.1.ebuild       | 6 ------
 5 files changed, 1 insertion(+), 31 deletions(-)