[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 Feb 8 21:34:19 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 michaelld):
FYI the required change that I added a patch in MP for has been merged
upstream:
https://github.com/libusb/libusb/commit/a247f1696ed83e492a5435f338caa5a12da3fd83
... so, the patch must be removed from the devel port when we update it.
There is a release coming "soon" and so this will be part of it .. yay!
Thus, we need to fixup the Legacy project to do a "fixincludes" of sorts:
for impacted systems, copy the file <IOKit/usb/USB.h> into the same
directory structure in Legacy & then patch the file per what we've all
noted above. @Kencu: Do you have a preference of the language used for
"fixincludes"? We can do this directly in the Makefile, or create a
separate script (e.g., sh), or a patch for each OSX version's USB.h ...
lots of options! I think a shell script or directly in the Makefile are
the most efficient, but for future such "fixincludes" what precedent do we
want to set for where & how this is done?
--
Ticket URL: <https://trac.macports.org/ticket/61868#comment:32>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list