[MacPorts] #61868: libusb @1.0.24: cannot parse USB.h with mainline gcc versions due to variant pragma handling not accepted by gcc

MacPorts noreply at macports.org
Sat Dec 26 19:46:22 UTC 2020


#61868: libusb @1.0.24: cannot parse USB.h with mainline gcc versions due to
variant pragma handling not accepted by gcc
-----------------------------------+-----------------------
  Reporter:  dgonyier              |      Owner:  michaelld
      Type:  defect                |     Status:  reopened
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.6.4
Resolution:                        |   Keywords:
      Port:  libusb, libusb-devel  |
-----------------------------------+-----------------------

Comment (by michaelld):

 With this change + adding in a fixed-up USB.h header to LegacySupport,
 libusb 1.0.24 now builds fine on OSX 10.5 PPC. I'll submit this change
 upstream as well as start a PR for the USB.h addition to LegacySupport ...
 that one will be a little tricky since my current best fix is to copy
 USB.h and edit it ... which I'm guessing means we need the latest version,
 somehow tailored for different OSX versions ... guessing ... maybe @kencu
 has some ideas here?

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


More information about the macports-tickets mailing list