Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588234 - games-board/openyahtzee - GCC version check fails with clang
Summary: games-board/openyahtzee - GCC version check fails with clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 588226
  Show dependency tree
 
Reported: 2016-07-07 13:25 UTC by Michael Palimaka (kensington)
Modified: 2016-07-26 00:09 UTC (History)
1 user (show)

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


Attachments
patch (openyahtzee.patch,1.61 KB, patch)
2016-07-11 18:39 UTC, Austin English (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Palimaka (kensington) gentoo-dev 2016-07-07 13:25:56 UTC
Due to a change in toolchain-funcs.eclass, gcc-version now queries the active compiler instead of the active GCC. This causes a failure with CC="clang" as clang reports itself as GCC 4.2.

Please see the tracker bug for more information.
Comment 1 Austin English (RETIRED) gentoo-dev 2016-07-11 18:39:11 UTC
Created attachment 440382 [details, diff]
patch

Here's a patch for this. Changelog:

* version bump to 1.9.3
* drop no longer needed patch
* add tc-is-gcc check, warn for other compilers
* fix clang build, needs -std=c++11 in cxxflags
Comment 2 Austin English (RETIRED) gentoo-dev 2016-07-26 00:09:21 UTC
(In reply to Austin English from comment #1)
> Created attachment 440382 [details, diff] [details, diff]
> patch
> 
> Here's a patch for this. Changelog:
> 
> * version bump to 1.9.3
> * drop no longer needed patch
> * add tc-is-gcc check, warn for other compilers
> * fix clang build, needs -std=c++11 in cxxflags

https://github.com/gentoo/gentoo/commit/28de8a84a7cee0d27503e403d1dd3cd3e7129adb