pkgsrc-Changes archive

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

CVS commit: pkgsrc/cross/ppc-morphos-gcc-11



Module Name:    pkgsrc
Committed By:   js
Date:           Mon Apr 21 22:43:57 UTC 2025

Modified Files:
        pkgsrc/cross/ppc-morphos-gcc-11: distinfo
Added Files:
        pkgsrc/cross/ppc-morphos-gcc-11/patches: patch-include_safe-ctype.h

Log Message:
Make cross/ppc-morphos-gcc-11 build on macOS 15


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/cross/ppc-morphos-gcc-11/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/cross/ppc-morphos-gcc-11/patches/patch-include_safe-ctype.h

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

Modified files:

Index: pkgsrc/cross/ppc-morphos-gcc-11/distinfo
diff -u pkgsrc/cross/ppc-morphos-gcc-11/distinfo:1.5 pkgsrc/cross/ppc-morphos-gcc-11/distinfo:1.6
--- pkgsrc/cross/ppc-morphos-gcc-11/distinfo:1.5        Sun Apr 20 20:26:08 2025
+++ pkgsrc/cross/ppc-morphos-gcc-11/distinfo    Mon Apr 21 22:43:57 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2025/04/20 20:26:08 js Exp $
+$NetBSD: distinfo,v 1.6 2025/04/21 22:43:57 js Exp $
 
 BLAKE2s (sdk-source-20230510.tar.xz) = 777febe845ddbf50cbaec55c2d198085996a5064bc3c4128f44dfe79355d765e
 SHA512 (sdk-source-20230510.tar.xz) = badf3e678d514713ece14779dcce5fe78f3a849c73718e05b3317c1c766fb9879368c8fd58f9441c905023a660e893cf0eec405d2c133e4c6d11fe39acc50418
@@ -8,6 +8,7 @@ SHA1 (patch-gcc_config_host-darwin.c) = 
 SHA1 (patch-gcc_config_rs6000_morphos.h) = c788e480f3f510b61292f5b1ec5b84646b33ab93
 SHA1 (patch-gcc_doc_extend.texi) = 34b21725886883ad3ad974dbc80d877425fa1220
 SHA1 (patch-gcc_plugin.c) = a690fc8cf595c6746832673ba77c472bdfc717bd
+SHA1 (patch-include_safe-ctype.h) = 1bc66b5e78d928fab522b7b6875cf7709aaeb808
 SHA1 (patch-libcc1_configure.ac) = ca40be7af4a4ffc3a4fba1a0dbda76fcde1fa2d9
 SHA1 (patch-libiberty_simple-object-mach-o.c) = 04b20b3a90b49aa51587dfe592448b4bd0324ae7
 SHA1 (patch-libstdc++-v3_configure.ac) = d436423f31b5b9b977bfa27078d160ced4f3ed94

Added files:

Index: pkgsrc/cross/ppc-morphos-gcc-11/patches/patch-include_safe-ctype.h
diff -u /dev/null pkgsrc/cross/ppc-morphos-gcc-11/patches/patch-include_safe-ctype.h:1.1
--- /dev/null   Mon Apr 21 22:43:57 2025
+++ pkgsrc/cross/ppc-morphos-gcc-11/patches/patch-include_safe-ctype.h  Mon Apr 21 22:43:57 2025
@@ -0,0 +1,47 @@
+$NetBSD: patch-include_safe-ctype.h,v 1.1 2025/04/21 22:43:57 js Exp $
+
+Don't define functions from ctype.h to garbage, as it breaks the C++ headers on
+Darwin.
+
+--- include/safe-ctype.h.orig  2025-04-21 22:37:25.719755271 +0000
++++ include/safe-ctype.h
+@@ -112,39 +112,4 @@ extern const unsigned char  _sch_tolower
+ #define TOUPPER(c) _sch_toupper[(c) & 0xff]
+ #define TOLOWER(c) _sch_tolower[(c) & 0xff]
+ 
+-/* Prevent the users of safe-ctype.h from accidently using the routines
+-   from ctype.h.  Initially, the approach was to produce an error when
+-   detecting that ctype.h has been included.  But this was causing
+-   trouble as ctype.h might get indirectly included as a result of
+-   including another system header (for instance gnulib's stdint.h).
+-   So we include ctype.h here and then immediately redefine its macros.  */
+-
+-#include <ctype.h>
+-#undef isalpha
+-#define isalpha(c) do_not_use_isalpha_with_safe_ctype
+-#undef isalnum
+-#define isalnum(c) do_not_use_isalnum_with_safe_ctype
+-#undef iscntrl
+-#define iscntrl(c) do_not_use_iscntrl_with_safe_ctype
+-#undef isdigit
+-#define isdigit(c) do_not_use_isdigit_with_safe_ctype
+-#undef isgraph
+-#define isgraph(c) do_not_use_isgraph_with_safe_ctype
+-#undef islower
+-#define islower(c) do_not_use_islower_with_safe_ctype
+-#undef isprint
+-#define isprint(c) do_not_use_isprint_with_safe_ctype
+-#undef ispunct
+-#define ispunct(c) do_not_use_ispunct_with_safe_ctype
+-#undef isspace
+-#define isspace(c) do_not_use_isspace_with_safe_ctype
+-#undef isupper
+-#define isupper(c) do_not_use_isupper_with_safe_ctype
+-#undef isxdigit
+-#define isxdigit(c) do_not_use_isxdigit_with_safe_ctype
+-#undef toupper
+-#define toupper(c) do_not_use_toupper_with_safe_ctype
+-#undef tolower
+-#define tolower(c) do_not_use_tolower_with_safe_ctype
+-
+ #endif /* SAFE_CTYPE_H */



Home | Main Index | Thread Index | Old Index