[MacPorts] #68565: py-pygit2 passes arbitrary linking flags: ld: warning: directory '/usr/local/lib64' following -L not found

MacPorts noreply at macports.org
Fri Oct 27 06:28:02 UTC 2023


#68565: py-pygit2 passes arbitrary linking flags: ld: warning: directory
'/usr/local/lib64' following -L not found
---------------------------+----------------------
  Reporter:  barracuda156  |      Owner:  mascguy
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  py-pygit2     |
---------------------------+----------------------
Changes (by ryandesign):

 * cc: dbevans (added)


Comment:

 Replying to [ticket:68565 barracuda156]:
 > but I guess this is still wrong:

 Definitely. `-I/usr/local/include` also shouldn't be there.

 I haven't tried it but from the code it looks like the fix is to supply
 `LIBGIT2` and `LIBGIT2_LIB` environment variables:

 https://github.com/libgit2/pygit2/blob/02fea5755e07b59608c6807b209a0dbb3de140ab/pygit2/_build.py#L43-L64

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


More information about the macports-tickets mailing list