[MacPorts] #55139: RFE: Improve Compiler Management Code
MacPorts
noreply at macports.org
Sun Oct 22 06:17:17 UTC 2017
#55139: RFE: Improve Compiler Management Code
----------------------------------+-----------------
Reporter: MarcusCalhoun-Lopez | Owner:
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Resolution: | Keywords:
Port: |
----------------------------------+-----------------
Comment (by MarcusCalhoun-Lopez):
Replying to [comment:1 dstrubbe]:
> Could you explain in what sense you think this treatment is superior to
the compiler portgroup? It seems like it is simpler by eliminating much of
the functionality.
Forgive me for not being clear on this point.[[BR]]
I believe the compiler PortGroup could be simplified with the proposed
changes.[[BR]]
It could also be eliminated from any ports that **just** need Fortran and
not the full power of the compilers PortGroup.
The compiler PortGroup essentially bypasses portconfigure.tcl (see
[https://github.com/macports/macports-
ports/blob/5b53e2a643adef3de86eea608a746371984da310/_resources/port1.0/group/compilers-1.0.tcl#L299
here] and [https://github.com/macports/macports-
ports/blob/5b53e2a643adef3de86eea608a746371984da310/_resources/port1.0/group/compilers-1.0.tcl#L322
here]).[[BR]]
If portconfigure.tcl were updated, perhaps the code duplication could be
eliminated.
With G95 not having been updated [http://www.g95.org/g95_status.shtml in
quite some time] and [https://github.com/flang-compiler/flang Flang] still
being in early stages, [https://gcc.gnu.org/fortran/ GFortran] seems like
the only feasible Fortran compiler for the time being.[[BR]]
So for ports that just want a Fortran compiler, adding
{{{compiler.require_fortran yes}}} instead of using the compiler
PortGroup seems reasonable.
For those ports that still desire the ability to modify the compiler with
variants, the compiler PortGroup would remain with full functionality but
with a little less code.
--
Ticket URL: <https://trac.macports.org/ticket/55139#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list