<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/653135a509291c0299d389f9c6933cdfe15bf372">https://github.com/macports/macports-ports/commit/653135a509291c0299d389f9c6933cdfe15bf372</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 653135a5092 libusb: add patch to fix size of const array to build using older GCC in C11
</span>653135a5092 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 653135a509291c0299d389f9c6933cdfe15bf372
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Sat Dec 26 14:39:15 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> libusb: add patch to fix size of const array to build using older GCC in C11
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Ref: https://trac.macports.org/ticket/61868
</span>---
devel/libusb/Portfile | 3 +++
devel/libusb/files/patch-c11-const-array-size-older-GCC.diff | 11 +++++++++++
2 files changed, 14 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libusb/Portfile b/devel/libusb/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3e9ad60d5a2..978afc62c4c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libusb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libusb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,6 +58,9 @@ if {${subport} eq ${name}} {
</span> # see https://trac.macports.org/ticket/56156
patchfiles-append patch-10.7-nospeedsuper.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://trac.macports.org/ticket/61868
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-c11-const-array-size-older-GCC.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build port:libtool \
port:automake \
port:autoconf
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libusb/files/patch-c11-const-array-size-older-GCC.diff b/devel/libusb/files/patch-c11-const-array-size-older-GCC.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..112e38090d6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libusb/files/patch-c11-const-array-size-older-GCC.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libusb/os/darwin_usb.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libusb/os/darwin_usb.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2148,7 +2148,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct darwin_transfer_priv *tpriv = usbi_get_transfer_priv(itransfer);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const unsigned char max_transfer_type = LIBUSB_TRANSFER_TYPE_BULK_STREAM;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- const char *transfer_types[max_transfer_type + 1] = {"control", "isoc", "bulk", "interrupt", "bulk-stream"};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const char *transfer_types[] = {"control", "isoc", "bulk", "interrupt", "bulk-stream", 0};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bool is_isoc = LIBUSB_TRANSFER_TYPE_ISOCHRONOUS == transfer->type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (transfer->type > max_transfer_type) {
</span></pre><pre style='margin:0'>
</pre>