[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
Mon Oct 25 01:48:15 UTC 2021


#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 evanmiller):

 All right, opened a draft PR over here just for {{{libusb}}} if anyone's
 interested: https://github.com/macports/macports-ports/pull/12677

 How generic is your LegacySupport solution? At least here on Tiger, it
 appears that other Framework headers are affected by this kind of pragma
 intermingling (see e.g. [https://github.com/phracker/MacOSX-
 SDKs/blob/master/MacOSX10.4u.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/storage/IOAppleLabelScheme.h#L43-L71
 here])

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


More information about the macports-tickets mailing list