[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
Tue Feb 16 01:53:50 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):
I just attached my current shell script that is to be executed by the
legacy Makefile. It creates the directory `include/IOKit/usb/` in the
current directory, then patches (via a sed script) the header `USB.h` into
the new directory. In my testing, this script works on 10.4 and 10.5. It
will do something only if the `USB.h` header has the issue, and it
performs basic testing on the resulting header to show that the patching
works. It needs more testing to verify functionality on newer OSX / MacOSX
/ macOS, from 10.6 through 10.14 and beyond -- to verify for example that
on 10.15 it does nothing. Next up is to integrate calling it into the
legacy Makefile, which I hope is easier than creating the script in the
first place!
--
Ticket URL: <https://trac.macports.org/ticket/61868#comment:38>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list