pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/gcc13-gnat/patches



Module Name:    pkgsrc
Committed By:   dkazankov
Date:           Fri Apr 25 12:48:45 UTC 2025

Added Files:
        pkgsrc/lang/gcc13-gnat/patches: patch-libgcc_config_i386_t-darwin
            patch-libgcc_config_rs6000_t-darwin
            patch-libgcc_config_t-darwin-libgccs1
            patch-libgcc_config_t-darwin-min-11

Log Message:
gcc13-gnat: add missing patches


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_i386_t-darwin \
    pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_rs6000_t-darwin \
    pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_t-darwin-libgccs1 \
    pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_t-darwin-min-11

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

Added files:

Index: pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_i386_t-darwin
diff -u /dev/null pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_i386_t-darwin:1.1
--- /dev/null   Fri Apr 25 12:48:45 2025
+++ pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_i386_t-darwin    Fri Apr 25 12:48:44 2025
@@ -0,0 +1,27 @@
+$NetBSD: patch-libgcc_config_i386_t-darwin,v 1.1 2025/04/25 12:48:44 dkazankov Exp $
+
+libgcc, Darwin: Drop the legacy library build for macOS >= 15 [PR116809].
+
+We have been building a legacy libgcc_s.1 DSO to support code that
+was built with older compilers.
+
+From macOS 15,  the unwinder no longer exports some of the symbols used
+in that library which (a) cuases bootstrap fail and (b) means that the
+legacy library is no longer useful.
+
+No open branch of GCC emits references to this library - and any already
+-built code that depends on the symbols would need rework anyway.
+
+       PR target/116809
+
+See https://github.com/gcc-mirror/gcc/blob/master/libgcc/config/i386/t-darwin.
+
+--- libgcc/config/i386/t-darwin.orig   2024-05-21 07:47:41.000000000 +0000
++++ libgcc/config/i386/t-darwin
+@@ -4,6 +4,3 @@ LIB2FUNCS_EXCLUDE = _fixtfdi _fixunstfdi
+ 
+ # Extra symbols for this port.
+ SHLIB_MAPFILES += $(srcdir)/config/i386/libgcc-darwin.ver
+-
+-# Build a legacy libgcc_s.1
+-BUILD_LIBGCCS1 = YES
Index: pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_rs6000_t-darwin
diff -u /dev/null pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_rs6000_t-darwin:1.1
--- /dev/null   Fri Apr 25 12:48:45 2025
+++ pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_rs6000_t-darwin  Fri Apr 25 12:48:44 2025
@@ -0,0 +1,27 @@
+$NetBSD: patch-libgcc_config_rs6000_t-darwin,v 1.1 2025/04/25 12:48:44 dkazankov Exp $
+
+libgcc, Darwin: Drop the legacy library build for macOS >= 15 [PR116809].
+
+We have been building a legacy libgcc_s.1 DSO to support code that
+was built with older compilers.
+
+From macOS 15,  the unwinder no longer exports some of the symbols used
+in that library which (a) cuases bootstrap fail and (b) means that the
+legacy library is no longer useful.
+
+No open branch of GCC emits references to this library - and any already
+-built code that depends on the symbols would need rework anyway.
+
+       PR target/116809
+
+See https://github.com/gcc-mirror/gcc/blob/master/libgcc/config/rs6000/t-darwin.
+
+--- libgcc/config/rs6000/t-darwin.orig 2024-05-21 07:47:41.000000000 +0000
++++ libgcc/config/rs6000/t-darwin
+@@ -56,6 +56,3 @@ unwind-dw2_s.o: HOST_LIBGCC2_CFLAGS += -
+ unwind-dw2.o: HOST_LIBGCC2_CFLAGS += -maltivec
+ 
+ LIB2ADDEH += $(srcdir)/config/rs6000/darwin-fallback.c
+-
+-# Build a legacy libgcc_s.1
+-BUILD_LIBGCCS1 = YES
Index: pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_t-darwin-libgccs1
diff -u /dev/null pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_t-darwin-libgccs1:1.1
--- /dev/null   Fri Apr 25 12:48:45 2025
+++ pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_t-darwin-libgccs1        Fri Apr 25 12:48:44 2025
@@ -0,0 +1,23 @@
+$NetBSD: patch-libgcc_config_t-darwin-libgccs1,v 1.1 2025/04/25 12:48:44 dkazankov Exp $
+
+libgcc, Darwin: Drop the legacy library build for macOS >= 15 [PR116809].
+
+We have been building a legacy libgcc_s.1 DSO to support code that
+was built with older compilers.
+
+From macOS 15,  the unwinder no longer exports some of the symbols used
+in that library which (a) cuases bootstrap fail and (b) means that the
+legacy library is no longer useful.
+
+No open branch of GCC emits references to this library - and any already
+-built code that depends on the symbols would need rework anyway.
+
+       PR target/116809
+
+See https://github.com/gcc-mirror/gcc/blob/master/libgcc/config/t-darwin-libgccs1.
+
+--- libgcc/config/t-darwin-libgccs1.orig       2024-12-09 03:35:09.522148209 +0000
++++ libgcc/config/t-darwin-libgccs1
+@@ -0,0 +1,2 @@
++# Build a legacy libgcc_s.1
++BUILD_LIBGCCS1 = YES
Index: pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_t-darwin-min-11
diff -u /dev/null pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_t-darwin-min-11:1.1
--- /dev/null   Fri Apr 25 12:48:45 2025
+++ pkgsrc/lang/gcc13-gnat/patches/patch-libgcc_config_t-darwin-min-11  Fri Apr 25 12:48:44 2025
@@ -0,0 +1,17 @@
+$NetBSD: patch-libgcc_config_t-darwin-min-11,v 1.1 2025/04/25 12:48:44 dkazankov Exp $
+
+libgcc, Darwin: From macOS 11, make that the earliest supported.
+
+For libgcc, we have (so far) supported building a DSO that supports
+earlier versions of the OS than the target.  From macOS 11, there are
+APIs that do not exist on earlier OS versions, so limit the libgcc
+range to macOS11..current.
+
+See https://github.com/gcc-mirror/gcc/blob/master/libgcc/config/t-darwin-min-11.
+
+--- libgcc/config/t-darwin-min-11.orig 2024-12-10 16:14:54.471536671 +0000
++++ libgcc/config/t-darwin-min-11
+@@ -0,0 +1,3 @@
++# Support building with -mmacosx-version-min back to macOS 11.
++DARWIN_MIN_LIB_VERSION = -mmacosx-version-min=11
++DARWIN_MIN_CRT_VERSION = -mmacosx-version-min=11



Home | Main Index | Thread Index | Old Index