<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/74fd565889efd67b1fae557fb929f543672583c8">https://github.com/macports/macports-ports/commit/74fd565889efd67b1fae557fb929f543672583c8</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 74fd565889e *-mingw32-binutils: Import upstream fix for ld
</span>74fd565889e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 74fd565889efd67b1fae557fb929f543672583c8
</span>Author: Dean M Greer <38226388+Gcenx@users.noreply.github.com>
AuthorDate: Mon Mar 6 22:16:54 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> *-mingw32-binutils: Import upstream fix for ld
</span>---
cross/i686-w64-mingw32-binutils/Portfile | 4 ++-
.../files/0001-pr30079.diff | 31 ++++++++++++++++++++++
cross/x86_64-w64-mingw32-binutils/Portfile | 4 ++-
.../files/0001-pr30079.diff | 31 ++++++++++++++++++++++
4 files changed, 68 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/cross/i686-w64-mingw32-binutils/Portfile b/cross/i686-w64-mingw32-binutils/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6c1250635bb..d1a3888f664 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/cross/i686-w64-mingw32-binutils/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/cross/i686-w64-mingw32-binutils/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,10 +8,12 @@ set mingw_name w64-mingw32
</span> set mingw_arch i686
set mingw_target ${mingw_arch}-${mingw_name}
crossbinutils.setup ${mingw_target} 2.40
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
maintainers {mojca @mojca} openmaintainer
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles 0001-pr30079.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append \
--disable-multilib \
--disable-werror
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/cross/i686-w64-mingw32-binutils/files/0001-pr30079.diff b/cross/i686-w64-mingw32-binutils/files/0001-pr30079.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0da436989ee
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/cross/i686-w64-mingw32-binutils/files/0001-pr30079.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From b7eab2a9d4f4e92692daf14b09fc95ca11b72e30 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Michael Matz <matz@suse.de>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 9 Feb 2023 15:29:00 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Fix PR30079: abort on mingw
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+the early-out in wild_sort is not enough, it might still be
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+that filenames are equal _and_ the wildcard list doesn't specify
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+a sort order either. Don't call compare_section then.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Tested on all targets.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ld/ldlang.c | 3 ++-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 2 insertions(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git ld/ldlang.c ld/ldlang.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 84a2914fc26..b5e0d026ae4 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ld/ldlang.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ld/ldlang.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -649,7 +649,8 @@ wild_sort (lang_wild_statement_type *wild,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ looking at the sections for this file. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Find the correct node to append this section. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (compare_section (sec->spec.sorted, section, (*tree)->section) < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (sec && sec->spec.sorted != none && sec->spec.sorted != by_none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ && compare_section (sec->spec.sorted, section, (*tree)->section) < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tree = &((*tree)->left);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tree = &((*tree)->right);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.31.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/cross/x86_64-w64-mingw32-binutils/Portfile b/cross/x86_64-w64-mingw32-binutils/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 78914aa860f..7b62dab42fc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/cross/x86_64-w64-mingw32-binutils/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/cross/x86_64-w64-mingw32-binutils/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,10 +8,12 @@ set mingw_name w64-mingw32
</span> set mingw_arch x86_64
set mingw_target ${mingw_arch}-${mingw_name}
crossbinutils.setup ${mingw_target} 2.40
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
maintainers {mojca @mojca} openmaintainer
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles 0001-pr30079.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append \
--disable-multilib \
--disable-werror
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/cross/x86_64-w64-mingw32-binutils/files/0001-pr30079.diff b/cross/x86_64-w64-mingw32-binutils/files/0001-pr30079.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0da436989ee
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/cross/x86_64-w64-mingw32-binutils/files/0001-pr30079.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From b7eab2a9d4f4e92692daf14b09fc95ca11b72e30 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Michael Matz <matz@suse.de>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Thu, 9 Feb 2023 15:29:00 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Fix PR30079: abort on mingw
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+the early-out in wild_sort is not enough, it might still be
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+that filenames are equal _and_ the wildcard list doesn't specify
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+a sort order either. Don't call compare_section then.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Tested on all targets.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ld/ldlang.c | 3 ++-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 2 insertions(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git ld/ldlang.c ld/ldlang.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 84a2914fc26..b5e0d026ae4 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ld/ldlang.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ld/ldlang.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -649,7 +649,8 @@ wild_sort (lang_wild_statement_type *wild,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ looking at the sections for this file. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Find the correct node to append this section. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (compare_section (sec->spec.sorted, section, (*tree)->section) < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (sec && sec->spec.sorted != none && sec->spec.sorted != by_none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ && compare_section (sec->spec.sorted, section, (*tree)->section) < 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tree = &((*tree)->left);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tree = &((*tree)->right);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.31.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>