[MacPorts] #62675: wgrib2: ld: library not found for -lMacportsLegacySupport

MacPorts noreply at macports.org
Mon Dec 6 12:24:20 UTC 2021


#62675: wgrib2: ld: library not found for -lMacportsLegacySupport
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  tenomoto
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.4
Resolution:              |   Keywords:
      Port:  wgrib2      |
-------------------------+----------------------

Comment (by evanmiller):

 It looks like legacysupport 1.0 has faulty logic that always adds legacy
 support for 10.12 and earlier:

 https://github.com/macports/macports-
 ports/blob/88bdf88e7b20351fceac37d7d75ceb7641b29b92/_resources/port1.0/group/legacysupport-1.0.tcl#L83-L89

 The issue is that when {{{add_legacysupport}}} is first called,
 {{{legacy.newest_darwin_requires_legacy}}} is the default value (16) and
 so legacy support is added on 10.11.

 When {{{add_legacysupport}}} is called a second time via
 {{{register_callback}}},  {{{legacy.newest_darwin_requires_legacy}}} has
 the correct value (10 in this case) but the build environment is not
 actually modified to remove legacy support.

 I suggest upgrading the PG to 1.1.

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


More information about the macports-tickets mailing list