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

Bug 366243

Summary: Include tc-has-fortran() in toolchain-funcs.eclass
Product: Gentoo Linux Reporter: Justin Lecher (RETIRED) <jlec>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED OBSOLETE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 339465, 361591, 368719    
Attachments: tc-has-fortran.check

Description Justin Lecher (RETIRED) gentoo-dev 2011-05-06 17:00:39 UTC
Problem:

gcc:4.5[fortran]
gcc:4.6[-fortran]

and gcc:4.6 is the active compiler. If an ebuild would depend on gcc[fortran] to have a fortran compiler, it would still fail. Similar situation as with the openmp support. please include the function attached, for checking of a wotrking fortran compiler.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-05-06 17:01:33 UTC
Created attachment 272301 [details]
tc-has-fortran.check

tc-has-fortran.check
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-05-28 11:04:57 UTC
Any reaction here?
Comment 3 SpanKY gentoo-dev 2011-06-07 20:16:00 UTC
the same issue arises for all frontends as they all can be disabled.  i dont see how this is something that really needs "fixing".

if you want to put pretty user friendly polish on fortran and all of its crazy eccentricities (see also Bug 348964), then perhaps it better you write a fortran eclass of some sort and stick all the crazy you want in there.

i dont feel this exploding logic to try and detect user stupidness is appropriate for toolchain-funcs.eclass as it encourages adoption across the tree.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2011-06-21 09:18:00 UTC
Obsolete, now implemented in fortran 2 eclass