[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
Wed Dec 30 14:13:01 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):

 Replying to [comment:23 kencu]:
 > I'm actually surprised to hear it's not every os version. I wonder what
 they did in 10.15 and 11.x to allow gcc not to barf on USB.h there.
 >
 > We should probably copy what Apple did, if they did something to USB.h
 to fix this.

 Yeah I was too! I'll look into a `diff` to see if we can just use the
 newer version ... but I'm guessing `no` & that it makes more sense to do a
 `fixincludes` on the header like what GCC does.

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


More information about the macports-tickets mailing list