[MacPorts] #54773: port:libgcc/port:gcc7: proposed modifications, efficiency + libc++ support

MacPorts noreply at macports.org
Tue Sep 12 10:19:55 UTC 2017


#54773: port:libgcc/port:gcc7: proposed modifications, efficiency + libc++ support
--------------------------+----------------------
  Reporter:  RJVB         |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  haspatch
      Port:  gcc7 libgcc  |
--------------------------+----------------------

Comment (by RJVB):

 Replying to [comment:24 RJVB]:
 > The most elegant approach would be that gcc8 doesn't support the
 +with_libgcc variant if gcc7 is installed with it and vice versa.

 That was actually quite easy to implement and not significantly different
 from what I was already doing to auto-activate the +stub variant when
 required.
 I think it's easier to see what's going on in my Portfile version from the
 actual file rather than a large unified diff:

 https://github.com/RJVB/macstrop/blob/master/lang/gcc7/Portfile#L346

 That's the part where I determine if it's possible to install port:gcc7
 +with_libgcc without causing runtime library conflicts in lib/libgcc . The
 code is written in such a way that it can be used unmodified in port:gcc7
 and port:gcc8 (=> port:gcc8 and port:gcc9 in some future) and is based on
 the constraint that only the current latest stable release and beta/devel
 port versions can be installed with that variant. Those are the ports that
 are most likely to receive frequent upgrades. For the older versions (at
 least gcc6) we could only backport the bootstrap-less building as a
 gesture to users installing from source.

--
Ticket URL: <https://trac.macports.org/ticket/54773#comment:25>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list