pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/cross/arm-none-eabi-gcc



Module Name:    pkgsrc
Committed By:   js
Date:           Mon Apr 20 03:49:24 UTC 2026

Modified Files:
        pkgsrc/cross/arm-none-eabi-gcc: distinfo
Added Files:
        pkgsrc/cross/arm-none-eabi-gcc/patches: patch-gcc_plugin.cc
            patch-include_safe-ctype.h patch-libcody_buffer.cc
            patch-libcody_client.cc patch-libcody_cody.hh
            patch-libcody_server.cc patch-libiberty_fibheap.c
            patch-libiberty_filedescriptor.c patch-libiberty_pex-unix.c

Log Message:
Make cross/arm-none-eabi-gcc compile on Fedora 44


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/cross/arm-none-eabi-gcc/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-gcc_plugin.cc \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-include_safe-ctype.h \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_buffer.cc \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_client.cc \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_cody.hh \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_server.cc \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_fibheap.c \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_filedescriptor.c \
    pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_pex-unix.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/cross/arm-none-eabi-gcc/distinfo
diff -u pkgsrc/cross/arm-none-eabi-gcc/distinfo:1.17 pkgsrc/cross/arm-none-eabi-gcc/distinfo:1.18
--- pkgsrc/cross/arm-none-eabi-gcc/distinfo:1.17        Wed Feb 25 09:15:03 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/distinfo     Mon Apr 20 03:49:24 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2026/02/25 09:15:03 triaxx Exp $
+$NetBSD: distinfo,v 1.18 2026/04/20 03:49:24 js Exp $
 
 BLAKE2s (gcc-14.3.0.tar.xz) = 70036c7d07767bba3476d19a6fd52f0b09dc05651c6cf5d136afe18ffa3b63a9
 SHA512 (gcc-14.3.0.tar.xz) = cb4e3259640721bbd275c723fe4df53d12f9b1673afb3db274c22c6aa457865dccf2d6ea20b4fd4c591f6152e6d4b87516c402015900f06ce9d43af66d3b7a93
@@ -7,7 +7,16 @@ BLAKE2s (newlib-4.5.0.20241231.tar.gz) =
 SHA512 (newlib-4.5.0.20241231.tar.gz) = d391ea3ac68ddb722909ef790f81ba4d6c35d9b2e0fcdb029f91a6c47db9ee94a686a2bdff211fb84025e1a317e257acfa59abda3fd2bc6609966798e1c604dc
 Size (newlib-4.5.0.20241231.tar.gz) = 9081514 bytes
 SHA1 (patch-gcc_config_arm_arm.h) = 2209c88f457bf8be72410f12ea899f8757ed0ada
+SHA1 (patch-gcc_plugin.cc) = 85facfdab177478fa423fafd0b4f7c1704e2f270
+SHA1 (patch-include_safe-ctype.h) = ffcaf03789db2dcc93e72a8f918b4251c369259b
 SHA1 (patch-libcc1_configure) = aec9713e7d8cd0bb4af1e25282cc161a3375e926
 SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
+SHA1 (patch-libcody_buffer.cc) = e214878a48c4ab9688d2a0dbe21bb43d81bc9ef2
+SHA1 (patch-libcody_client.cc) = 910fecb286993259597521a684dc561379e906e6
+SHA1 (patch-libcody_cody.hh) = 027ddbddf2c8c64c08a3ebce40d8eb7172ef848e
+SHA1 (patch-libcody_server.cc) = b21d32444ca6fc1637a5318d519c671d6a8aff66
 SHA1 (patch-libiberty_Makefile.in) = 6b7c61efc45586040c414fb6c716209064dbb432
+SHA1 (patch-libiberty_fibheap.c) = f11678ec725c773a18d03236ab4387d9ec9eef7d
+SHA1 (patch-libiberty_filedescriptor.c) = 51ad6812739b459d8cb37b6bd8afd5afb92dabd3
+SHA1 (patch-libiberty_pex-unix.c) = 7cf523e46d6c669785293f82fa8cf0b6c2b69895
 SHA1 (patch-zlib_zutil.h) = fe698a26a16fb2a290c5658616d8a945f97f33d3

Added files:

Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-gcc_plugin.cc
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-gcc_plugin.cc:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-gcc_plugin.cc  Mon Apr 20 03:49:24 2026
@@ -0,0 +1,13 @@
+$NetBSD: patch-gcc_plugin.cc,v 1.1 2026/04/20 03:49:24 js Exp $
+
+--- gcc/plugin.cc.orig 2025-06-15 13:13:22.246840287 +0000
++++ gcc/plugin.cc
+@@ -31,6 +31,8 @@ along with GCC; see the file COPYING3.
+ #include "intl.h"
+ #include "plugin.h"
+ 
++#include <dlfcn.h>
++
+ #ifdef ENABLE_PLUGIN
+ #include "plugin-version.h"
+ #endif
Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-include_safe-ctype.h
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-include_safe-ctype.h:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-include_safe-ctype.h   Mon Apr 20 03:49:24 2026
@@ -0,0 +1,48 @@
+$NetBSD: patch-include_safe-ctype.h,v 1.1 2026/04/20 03:49:24 js Exp $
+
+--- include/safe-ctype.h.orig  2026-04-20 01:37:46.426135730 +0000
++++ include/safe-ctype.h
+@@ -121,30 +121,30 @@ extern const unsigned char  _sch_tolower
+ 
+ #include <ctype.h>
+ #undef isalpha
+-#define isalpha(c) do_not_use_isalpha_with_safe_ctype
++#define isalpha do_not_use_isalpha_with_safe_ctype
+ #undef isalnum
+-#define isalnum(c) do_not_use_isalnum_with_safe_ctype
++#define isalnum do_not_use_isalnum_with_safe_ctype
+ #undef iscntrl
+-#define iscntrl(c) do_not_use_iscntrl_with_safe_ctype
++#define iscntrl do_not_use_iscntrl_with_safe_ctype
+ #undef isdigit
+-#define isdigit(c) do_not_use_isdigit_with_safe_ctype
++#define isdigit do_not_use_isdigit_with_safe_ctype
+ #undef isgraph
+-#define isgraph(c) do_not_use_isgraph_with_safe_ctype
++#define isgraph do_not_use_isgraph_with_safe_ctype
+ #undef islower
+-#define islower(c) do_not_use_islower_with_safe_ctype
++#define islower do_not_use_islower_with_safe_ctype
+ #undef isprint
+-#define isprint(c) do_not_use_isprint_with_safe_ctype
++#define isprint do_not_use_isprint_with_safe_ctype
+ #undef ispunct
+-#define ispunct(c) do_not_use_ispunct_with_safe_ctype
++#define ispunct do_not_use_ispunct_with_safe_ctype
+ #undef isspace
+-#define isspace(c) do_not_use_isspace_with_safe_ctype
++#define isspace do_not_use_isspace_with_safe_ctype
+ #undef isupper
+-#define isupper(c) do_not_use_isupper_with_safe_ctype
++#define isupper do_not_use_isupper_with_safe_ctype
+ #undef isxdigit
+-#define isxdigit(c) do_not_use_isxdigit_with_safe_ctype
++#define isxdigit do_not_use_isxdigit_with_safe_ctype
+ #undef toupper
+-#define toupper(c) do_not_use_toupper_with_safe_ctype
++#define toupper do_not_use_toupper_with_safe_ctype
+ #undef tolower
+-#define tolower(c) do_not_use_tolower_with_safe_ctype
++#define tolower do_not_use_tolower_with_safe_ctype
+ 
+ #endif /* SAFE_CTYPE_H */
Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_buffer.cc
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_buffer.cc:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_buffer.cc      Mon Apr 20 03:49:24 2026
@@ -0,0 +1,273 @@
+$NetBSD: patch-libcody_buffer.cc,v 1.1 2026/04/20 03:49:24 js Exp $
+
+--- libcody/buffer.cc.orig     2026-04-20 01:24:57.046758295 +0000
++++ libcody/buffer.cc
+@@ -30,7 +30,7 @@
+ namespace Cody {
+ namespace Detail {
+ 
+-static const char CONTINUE = S2C(u8";");
++static const char CONTINUE = S2C(";");
+ 
+ void MessageBuffer::BeginLine ()
+ {
+@@ -38,9 +38,9 @@ void MessageBuffer::BeginLine ()
+     {
+       // Terminate the previous line with a continuation
+       buffer.reserve (buffer.size () + 3);
+-      buffer.push_back (S2C(u8" "));
++      buffer.push_back (S2C(" "));
+       buffer.push_back (CONTINUE);
+-      buffer.push_back (S2C(u8"\n"));
++      buffer.push_back (S2C("\n"));
+     }
+   lastBol = buffer.size ();
+ }
+@@ -65,11 +65,11 @@ void MessageBuffer::Append (char const *
+       for (size_t ix = len; ix--;)
+       {
+         unsigned char c = (unsigned char)str[ix];
+-        if (!((c >= S2C(u8"a") && c <= S2C(u8"z"))
+-              || (c >= S2C(u8"A") && c <= S2C(u8"Z"))
+-              || (c >= S2C(u8"0") && c <= S2C(u8"9"))
+-              || c == S2C(u8"-") || c == S2C(u8"+") || c == S2C(u8"_")
+-              || c == S2C(u8"/") || c == S2C(u8"%") || c == S2C(u8".")))
++        if (!((c >= S2C("a") && c <= S2C("z"))
++              || (c >= S2C("A") && c <= S2C("Z"))
++              || (c >= S2C("0") && c <= S2C("9"))
++              || c == S2C("-") || c == S2C("+") || c == S2C("_")
++              || c == S2C("/") || c == S2C("%") || c == S2C(".")))
+           {
+             quote = true;
+             break;
+@@ -81,7 +81,7 @@ void MessageBuffer::Append (char const *
+   buffer.reserve (buffer.size () + len * (quote ? 3 : 1) + 2);
+ 
+   if (quote)
+-    buffer.push_back (S2C(u8"'"));
++    buffer.push_back (S2C("'"));
+ 
+   for (auto *end = str + len; str != end;)
+     {
+@@ -93,8 +93,8 @@ void MessageBuffer::Append (char const *
+       for (e = str; e != end; ++e)
+         {
+           unsigned char c = (unsigned char)*e;
+-          if (c < S2C(u8" ") || c == 0x7f
+-              || c == S2C(u8"\\") || c == S2C(u8"'"))
++          if (c < S2C(" ") || c == 0x7f
++              || c == S2C("\\") || c == S2C("'"))
+             break;
+         }
+       buffer.insert (buffer.end (), str, e);
+@@ -103,19 +103,19 @@ void MessageBuffer::Append (char const *
+       if (str == end)
+       break;
+ 
+-      buffer.push_back (S2C(u8"\\"));
++      buffer.push_back (S2C("\\"));
+       switch (unsigned char c = (unsigned char)*str++)
+       {
+-      case S2C(u8"\t"):
+-        c = S2C(u8"t");
++      case S2C("\t"):
++        c = S2C("t");
+         goto append;
+ 
+-      case S2C(u8"\n"):
+-        c = S2C(u8"n");
++      case S2C("\n"):
++        c = S2C("n");
+         goto append;
+ 
+-      case S2C(u8"'"):
+-      case S2C(u8"\\"):
++      case S2C("'"):
++      case S2C("\\"):
+       append:
+         buffer.push_back (c);
+         break;
+@@ -127,16 +127,16 @@ void MessageBuffer::Append (char const *
+             shift -= 4;
+ 
+             char nibble = (c >> shift) & 0xf;
+-            nibble += S2C(u8"0");
+-            if (nibble > S2C(u8"9"))
+-              nibble += S2C(u8"a") - (S2C(u8"9") + 1);
++            nibble += S2C("0");
++            if (nibble > S2C("9"))
++              nibble += S2C("a") - (S2C("9") + 1);
+             buffer.push_back (nibble);
+           }
+       }
+     }
+ 
+   if (quote)
+-    buffer.push_back (S2C(u8"'"));
++    buffer.push_back (S2C("'"));
+ }
+ 
+ void MessageBuffer::Append (char c)
+@@ -205,7 +205,7 @@ int MessageBuffer::Read (int fd) noexcep
+   bool more = true;
+   for (;;)
+     {
+-      auto newline = std::find (iter, buffer.end (), S2C(u8"\n"));
++      auto newline = std::find (iter, buffer.end (), S2C("\n"));
+       if (newline == buffer.end ())
+       break;
+       more = newline != buffer.begin () && newline[-1] == CONTINUE;
+@@ -233,7 +233,7 @@ int MessageBuffer::Lex (std::vector<std:
+   if (IsAtEnd ())
+     return ENOENT;
+ 
+-  Assert (buffer.back () == S2C(u8"\n"));
++  Assert (buffer.back () == S2C("\n"));
+ 
+   auto iter = buffer.begin () + lastBol;
+ 
+@@ -242,25 +242,25 @@ int MessageBuffer::Lex (std::vector<std:
+       char c = *iter;
+ 
+       ++iter;
+-      if (c == S2C(u8" ") || c == S2C(u8"\t"))
++      if (c == S2C(" ") || c == S2C("\t"))
+       {
+         word = nullptr;
+         continue;
+       }
+ 
+-      if (c == S2C(u8"\n"))
++      if (c == S2C("\n"))
+       break;
+ 
+       if (c == CONTINUE)
+       {
+         // Line continuation
+-        if (word || *iter != S2C(u8"\n"))
++        if (word || *iter != S2C("\n"))
+           goto malformed;
+         ++iter;
+         break;
+       }
+ 
+-      if (c <= S2C(u8" ") || c >= 0x7f)
++      if (c <= S2C(" ") || c >= 0x7f)
+       goto malformed;
+ 
+       if (!word)
+@@ -269,20 +269,20 @@ int MessageBuffer::Lex (std::vector<std:
+         word = &result.back ();
+       }
+ 
+-      if (c == S2C(u8"'"))
++      if (c == S2C("'"))
+       {
+         // Quoted word
+         for (;;)
+           {
+             c = *iter;
+ 
+-            if (c == S2C(u8"\n"))
++            if (c == S2C("\n"))
+               {
+               malformed:;
+                 result.clear ();
+-                iter = std::find (iter, buffer.end (), S2C(u8"\n"));
++                iter = std::find (iter, buffer.end (), S2C("\n"));
+                 auto back = iter;
+-                if (back[-1] == CONTINUE  && back[-2] == S2C(u8" "))
++                if (back[-1] == CONTINUE  && back[-2] == S2C(" "))
+                   // Smells like a line continuation
+                   back -= 2;
+                 result.emplace_back (&buffer[lastBol],
+@@ -292,35 +292,35 @@ int MessageBuffer::Lex (std::vector<std:
+                 return EINVAL;
+               }
+ 
+-            if (c < S2C(u8" ") || c >= 0x7f)
++            if (c < S2C(" ") || c >= 0x7f)
+               goto malformed;
+ 
+             ++iter;
+-            if (c == S2C(u8"'"))
++            if (c == S2C("'"))
+               break;
+ 
+-            if (c == S2C(u8"\\"))
++            if (c == S2C("\\"))
+               // escape
+               switch (c = *iter)
+                 {
+-                  case S2C(u8"\\"):
+-                  case S2C(u8"'"):
++                  case S2C("\\"):
++                  case S2C("'"):
+                     ++iter;
+                     break;
+ 
+-                  case S2C(u8"n"):
+-                    c = S2C(u8"\n");
++                  case S2C("n"):
++                    c = S2C("\n");
+                     ++iter;
+                     break;
+ 
+-                  case S2C(u8"_"):
++                  case S2C("_"):
+                     // We used to escape SPACE as \_, so accept that
+-                    c = S2C(u8" ");
++                    c = S2C(" ");
+                     ++iter;
+                     break;
+ 
+-                  case S2C(u8"t"):
+-                    c = S2C(u8"\t");
++                  case S2C("t"):
++                    c = S2C("\t");
+                     ++iter;
+                     break;
+ 
+@@ -330,22 +330,22 @@ int MessageBuffer::Lex (std::vector<std:
+                       for (unsigned nibble = 0; nibble != 2; nibble++)
+                         {
+                           c = *iter;
+-                          if (c < S2C(u8"0"))
++                          if (c < S2C("0"))
+                             {
+                               if (!nibble)
+                                 goto malformed;
+                               break;
+                             }
+-                          else if (c <= S2C(u8"9"))
+-                            c -= S2C(u8"0");
+-                          else if (c < S2C(u8"a"))
++                          else if (c <= S2C("9"))
++                            c -= S2C("0");
++                          else if (c < S2C("a"))
+                             {
+                               if (!nibble)
+                                 goto malformed;
+                               break;
+                             }
+-                          else if (c <= S2C(u8"f"))
+-                            c -= S2C(u8"a") - 10;
++                          else if (c <= S2C("f"))
++                            c -= S2C("a") - 10;
+                           else
+                             {
+                               if (!nibble)
+@@ -378,11 +378,11 @@ void MessageBuffer::LexedLine (std::stri
+     {
+       size_t pos = lastBol - 1;
+       for (; pos; pos--)
+-      if (buffer[pos-1] == S2C(u8"\n"))
++      if (buffer[pos-1] == S2C("\n"))
+         break;
+ 
+       size_t end = lastBol - 1;
+-      if (buffer[end-1] == CONTINUE && buffer[end-2] == S2C(u8" "))
++      if (buffer[end-1] == CONTINUE && buffer[end-2] == S2C(" "))
+       // Strip line continuation
+       end -= 2;
+       str.append (&buffer[pos], end - pos);
Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_client.cc
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_client.cc:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_client.cc      Mon Apr 20 03:49:24 2026
@@ -0,0 +1,173 @@
+$NetBSD: patch-libcody_client.cc,v 1.1 2026/04/20 03:49:24 js Exp $
+
+--- libcody/client.cc.orig     2026-04-19 17:49:17.971655803 +0000
++++ libcody/client.cc
+@@ -97,7 +97,7 @@ int Client::CommunicateWithServer ()
+ 
+ static Packet CommunicationError (int err)
+ {
+-  std::string e {u8"communication error:"};
++  std::string e {"communication error:"};
+   e.append (strerror (err));
+ 
+   return Packet (Client::PC_ERROR, std::move (e));
+@@ -110,33 +110,33 @@ Packet Client::ProcessResponse (std::vec
+     {
+       if (e == EINVAL)
+       {
+-        std::string msg (u8"malformed string '");
++        std::string msg ("malformed string '");
+         msg.append (words[0]);
+-        msg.append (u8"'");
++        msg.append ("'");
+         return Packet (Client::PC_ERROR, std::move (msg));
+       }
+       else
+-      return Packet (Client::PC_ERROR, u8"missing response");
++      return Packet (Client::PC_ERROR, "missing response");
+     }
+ 
+   Assert (!words.empty ());
+-  if (words[0] == u8"ERROR")
++  if (words[0] == "ERROR")
+     return Packet (Client::PC_ERROR,
+-                 words.size () == 2 ? words[1]: u8"malformed error response");
++                 words.size () == 2 ? words[1]: "malformed error response");
+ 
+   if (isLast && !read.IsAtEnd ())
+     return Packet (Client::PC_ERROR,
+-                 std::string (u8"unexpected extra response"));
++                 std::string ("unexpected extra response"));
+ 
+   Assert (code < Detail::RC_HWM);
+   Packet result (responseTable[code] (words));
+   result.SetRequest (code);
+   if (result.GetCode () == Client::PC_ERROR && result.GetString ().empty ())
+     {
+-      std::string msg {u8"malformed response '"};
++      std::string msg {"malformed response '"};
+ 
+       read.LexedLine (msg);
+-      msg.append (u8"'");
++      msg.append ("'");
+       result.GetString () = std::move (msg);
+     }
+   else if (result.GetCode () == Client::PC_CONNECT)
+@@ -199,7 +199,7 @@ Packet Client::Connect (char const *agen
+                         size_t alen, size_t ilen)
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"HELLO");
++  write.AppendWord ("HELLO");
+   write.AppendInteger (Version);
+   write.AppendWord (agent, true, alen);
+   write.AppendWord (ident, true, ilen);
+@@ -211,14 +211,14 @@ Packet Client::Connect (char const *agen
+ // HELLO $version $agent [$flags]
+ Packet ConnectResponse (std::vector<std::string> &words)
+ {
+-  if (words[0] == u8"HELLO" && (words.size () == 3 || words.size () == 4))
++  if (words[0] == "HELLO" && (words.size () == 3 || words.size () == 4))
+     {
+       char *eptr;
+       unsigned long val = strtoul (words[1].c_str (), &eptr, 10);
+ 
+       unsigned version = unsigned (val);
+       if (*eptr || version != val || version < Version)
+-      return Packet (Client::PC_ERROR, u8"incompatible version");
++      return Packet (Client::PC_ERROR, "incompatible version");
+       else
+       {
+         unsigned flags = 0;
+@@ -231,14 +231,14 @@ Packet ConnectResponse (std::vector<std:
+       }
+     }
+ 
+-  return Packet (Client::PC_ERROR, u8"");
++  return Packet (Client::PC_ERROR, "");
+ }
+ 
+ // MODULE-REPO
+ Packet Client::ModuleRepo ()
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"MODULE-REPO");
++  write.AppendWord ("MODULE-REPO");
+   write.EndLine ();
+ 
+   return MaybeRequest (Detail::RC_MODULE_REPO);
+@@ -247,16 +247,16 @@ Packet Client::ModuleRepo ()
+ // PATHNAME $dir | ERROR
+ Packet PathnameResponse (std::vector<std::string> &words)
+ {
+-  if (words[0] == u8"PATHNAME" && words.size () == 2)
++  if (words[0] == "PATHNAME" && words.size () == 2)
+     return Packet (Client::PC_PATHNAME, std::move (words[1]));
+ 
+-  return Packet (Client::PC_ERROR, u8"");
++  return Packet (Client::PC_ERROR, "");
+ }
+ 
+ // OK or ERROR
+ Packet OKResponse (std::vector<std::string> &words)
+ {
+-  if (words[0] == u8"OK")
++  if (words[0] == "OK")
+     return Packet (Client::PC_OK);
+   else
+     return Packet (Client::PC_ERROR,
+@@ -267,7 +267,7 @@ Packet OKResponse (std::vector<std::stri
+ Packet Client::ModuleExport (char const *module, Flags flags, size_t mlen)
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"MODULE-EXPORT");
++  write.AppendWord ("MODULE-EXPORT");
+   write.AppendWord (module, true, mlen);
+   if (flags != Flags::None)
+     write.AppendInteger (unsigned (flags));
+@@ -280,7 +280,7 @@ Packet Client::ModuleExport (char const
+ Packet Client::ModuleImport (char const *module, Flags flags, size_t mlen)
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"MODULE-IMPORT");
++  write.AppendWord ("MODULE-IMPORT");
+   write.AppendWord (module, true, mlen);
+   if (flags != Flags::None)
+     write.AppendInteger (unsigned (flags));
+@@ -293,7 +293,7 @@ Packet Client::ModuleImport (char const
+ Packet Client::ModuleCompiled (char const *module, Flags flags, size_t mlen)
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"MODULE-COMPILED");
++  write.AppendWord ("MODULE-COMPILED");
+   write.AppendWord (module, true, mlen);
+   if (flags != Flags::None)
+     write.AppendInteger (unsigned (flags));
+@@ -306,7 +306,7 @@ Packet Client::ModuleCompiled (char cons
+ Packet Client::IncludeTranslate (char const *include, Flags flags, size_t ilen)
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"INCLUDE-TRANSLATE");
++  write.AppendWord ("INCLUDE-TRANSLATE");
+   write.AppendWord (include, true, ilen);
+   if (flags != Flags::None)
+     write.AppendInteger (unsigned (flags));
+@@ -319,14 +319,14 @@ Packet Client::IncludeTranslate (char co
+ // PATHNAME $cmifile
+ Packet IncludeTranslateResponse (std::vector<std::string> &words)
+ {
+-  if (words[0] == u8"BOOL" && words.size () == 2)
++  if (words[0] == "BOOL" && words.size () == 2)
+     {
+-      if (words[1] == u8"FALSE")
++      if (words[1] == "FALSE")
+       return Packet (Client::PC_BOOL, 0);
+-      else if (words[1] == u8"TRUE")
++      else if (words[1] == "TRUE")
+       return Packet (Client::PC_BOOL, 1);
+       else
+-      return Packet (Client::PC_ERROR, u8"");
++      return Packet (Client::PC_ERROR, "");
+     }
+   else
+     return PathnameResponse (words);
Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_cody.hh
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_cody.hh:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_cody.hh        Mon Apr 20 03:49:24 2026
@@ -0,0 +1,22 @@
+$NetBSD: patch-libcody_cody.hh,v 1.1 2026/04/20 03:49:24 js Exp $
+
+--- libcody/cody.hh.orig       2026-04-20 01:24:29.356643518 +0000
++++ libcody/cody.hh
+@@ -74,7 +74,7 @@ public:
+   /// the buffer.  Use before a sequence of Write calls.
+   void PrepareToWrite ()
+   {
+-    buffer.push_back (u8"\n"[0]);
++    buffer.push_back ("\n"[0]);
+     lastBol = 0;
+   }
+   ///
+@@ -110,7 +110,7 @@ public:
+   /// Add whitespace word separator.  Multiple adjacent whitespace is fine.
+   void Space ()
+   {
+-    Append (Detail::S2C(u8" "));
++    Append (Detail::S2C(" "));
+   }
+ 
+ public:
Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_server.cc
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_server.cc:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libcody_server.cc      Mon Apr 20 03:49:24 2026
@@ -0,0 +1,108 @@
+$NetBSD: patch-libcody_server.cc,v 1.1 2026/04/20 03:49:24 js Exp $
+
+--- libcody/server.cc.orig     2026-04-20 01:21:31.107113617 +0000
++++ libcody/server.cc
+@@ -36,12 +36,12 @@ static RequestPair
+   const requestTable[Detail::RC_HWM] =
+   {
+     // Same order as enum RequestCode
+-    RequestPair {u8"HELLO", nullptr},
+-    RequestPair {u8"MODULE-REPO", ModuleRepoRequest},
+-    RequestPair {u8"MODULE-EXPORT", ModuleExportRequest},
+-    RequestPair {u8"MODULE-IMPORT", ModuleImportRequest},
+-    RequestPair {u8"MODULE-COMPILED", ModuleCompiledRequest},
+-    RequestPair {u8"INCLUDE-TRANSLATE", IncludeTranslateRequest},
++    RequestPair {"HELLO", nullptr},
++    RequestPair {"MODULE-REPO", ModuleRepoRequest},
++    RequestPair {"MODULE-EXPORT", ModuleExportRequest},
++    RequestPair {"MODULE-IMPORT", ModuleImportRequest},
++    RequestPair {"MODULE-COMPILED", ModuleCompiledRequest},
++    RequestPair {"INCLUDE-TRANSLATE", IncludeTranslateRequest},
+   };
+ }
+ 
+@@ -135,21 +135,21 @@ void Server::ProcessRequests (void)
+         std::string msg;
+ 
+         if (err > 0)
+-          msg = u8"error processing '";
++          msg = "error processing '";
+         else if (ix >= Detail::RC_HWM)
+-          msg = u8"unrecognized '";
++          msg = "unrecognized '";
+         else if (IsConnected () && ix == Detail::RC_CONNECT)
+-          msg = u8"already connected '";
++          msg = "already connected '";
+         else if (!IsConnected () && ix != Detail::RC_CONNECT)
+-          msg = u8"not connected '";
++          msg = "not connected '";
+         else
+-          msg = u8"malformed '";
++          msg = "malformed '";
+ 
+         read.LexedLine (msg);
+-        msg.append (u8"'");
++        msg.append ("'");
+         if (err > 0)
+           {
+-            msg.append (u8" ");
++            msg.append (" ");
+             msg.append (strerror (err));
+           }
+         resolver->ErrorResponse (this, std::move (msg));
+@@ -176,7 +176,7 @@ Resolver *ConnectRequest (Server *s, Res
+     return nullptr;
+ 
+   if (words.size () == 3)
+-    words.emplace_back (u8"");
++    words.emplace_back ("");
+   unsigned version = ParseUnsigned (words[1]);
+   if (version == ~0u)
+     return nullptr;
+@@ -265,7 +265,7 @@ int IncludeTranslateRequest (Server *s,
+ void Server::ErrorResponse (char const *error, size_t elen)
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"ERROR");
++  write.AppendWord ("ERROR");
+   write.AppendWord (error, true, elen);
+   write.EndLine ();
+ }
+@@ -273,7 +273,7 @@ void Server::ErrorResponse (char const *
+ void Server::OKResponse ()
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"OK");
++  write.AppendWord ("OK");
+   write.EndLine ();
+ }
+ 
+@@ -282,7 +282,7 @@ void Server::ConnectResponse (char const
+   is_connected = true;
+ 
+   write.BeginLine ();
+-  write.AppendWord (u8"HELLO");
++  write.AppendWord ("HELLO");
+   write.AppendInteger (Version);
+   write.AppendWord (agent, true, alen);
+   write.EndLine ();
+@@ -291,7 +291,7 @@ void Server::ConnectResponse (char const
+ void Server::PathnameResponse (char const *cmi, size_t clen)
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"PATHNAME");
++  write.AppendWord ("PATHNAME");
+   write.AppendWord (cmi, true, clen);
+   write.EndLine ();
+ }
+@@ -299,8 +299,8 @@ void Server::PathnameResponse (char cons
+ void Server::BoolResponse (bool truthiness)
+ {
+   write.BeginLine ();
+-  write.AppendWord (u8"BOOL");
+-  write.AppendWord (truthiness ? u8"TRUE" : u8"FALSE");
++  write.AppendWord ("BOOL");
++  write.AppendWord (truthiness ? "TRUE" : "FALSE");
+   write.EndLine ();
+ }
+ 
Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_fibheap.c
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_fibheap.c:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_fibheap.c    Mon Apr 20 03:49:24 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-libiberty_fibheap.c,v 1.1 2026/04/20 03:49:24 js Exp $
+
+For some reason, HAVE_LIMITS_H is not defined on Linux and makes it fail.
+
+--- libiberty/fibheap.c.orig   2025-06-15 13:06:53.573537761 +0000
++++ libiberty/fibheap.c
+@@ -22,9 +22,7 @@ Boston, MA 02110-1301, USA.  */
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #endif
+-#ifdef HAVE_LIMITS_H
+ #include <limits.h>
+-#endif
+ #ifdef HAVE_STDLIB_H
+ #include <stdlib.h>
+ #endif
Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_filedescriptor.c
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_filedescriptor.c:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_filedescriptor.c     Mon Apr 20 03:49:24 2026
@@ -0,0 +1,13 @@
+$NetBSD: patch-libiberty_filedescriptor.c,v 1.1 2026/04/20 03:49:24 js Exp $
+
+--- libiberty/filedescriptor.c.orig    2025-06-15 13:08:22.076607890 +0000
++++ libiberty/filedescriptor.c
+@@ -23,6 +23,8 @@
+ #include "ansidecl.h"
+ #include "libiberty.h"
+ 
++#include <unistd.h>
++
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
Index: pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_pex-unix.c
diff -u /dev/null pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_pex-unix.c:1.1
--- /dev/null   Mon Apr 20 03:49:24 2026
+++ pkgsrc/cross/arm-none-eabi-gcc/patches/patch-libiberty_pex-unix.c   Mon Apr 20 03:49:24 2026
@@ -0,0 +1,23 @@
+$NetBSD: patch-libiberty_pex-unix.c,v 1.1 2026/04/20 03:49:24 js Exp $
+
+--- libiberty/pex-unix.c.orig  2025-06-15 13:09:05.276043172 +0000
++++ libiberty/pex-unix.c
+@@ -42,9 +42,7 @@ extern int errno;
+ 
+ #include <sys/types.h>
+ 
+-#ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+-#endif
+ #ifdef HAVE_SYS_WAIT_H
+ #include <sys/wait.h>
+ #endif
+@@ -58,7 +56,7 @@ extern int errno;
+ #ifdef HAVE_PROCESS_H
+ #include <process.h>
+ #endif
+-#ifdef HAVE_SPAWN_H
++#if defined(HAVE_SPAWN_H) || defined(__linux__)
+ #include <spawn.h>
+ #endif
+ 



Home | Main Index | Thread Index | Old Index