pkgsrc-Changes archive

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

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



Module Name:    pkgsrc
Committed By:   js
Date:           Sun Jun 15 13:19:52 UTC 2025

Modified Files:
        pkgsrc/cross/ppc-morphos-gcc: distinfo
Added Files:
        pkgsrc/cross/ppc-morphos-gcc/patches: patch-gcc_plugin.cc
            patch-libiberty_fibheap.c patch-libiberty_filedescriptor.c
            patch-libiberty_pex-unix.c

Log Message:
Make cross/ppc-morphos-gcc compile on Linux


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/cross/ppc-morphos-gcc/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/cross/ppc-morphos-gcc/patches/patch-gcc_plugin.cc \
    pkgsrc/cross/ppc-morphos-gcc/patches/patch-libiberty_fibheap.c \
    pkgsrc/cross/ppc-morphos-gcc/patches/patch-libiberty_filedescriptor.c \
    pkgsrc/cross/ppc-morphos-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/ppc-morphos-gcc/distinfo
diff -u pkgsrc/cross/ppc-morphos-gcc/distinfo:1.1 pkgsrc/cross/ppc-morphos-gcc/distinfo:1.2
--- pkgsrc/cross/ppc-morphos-gcc/distinfo:1.1   Sun Jun 15 12:51:35 2025
+++ pkgsrc/cross/ppc-morphos-gcc/distinfo       Sun Jun 15 13:19:52 2025
@@ -1,12 +1,16 @@
-$NetBSD: distinfo,v 1.1 2025/06/15 12:51:35 js Exp $
+$NetBSD: distinfo,v 1.2 2025/06/15 13:19:52 js Exp $
 
 BLAKE2s (gcc-15.1.0.tar.xz) = 260d64654fbfc0ee06540cc4604cd7071be53d616069a9dd57e5359a0b0ecf46
 SHA512 (gcc-15.1.0.tar.xz) = ddd35ca6c653dffa88f7c7ef9ee4cd806e156e0f3b30f4d63e75a8363361285cd566ee73127734cde6a934611de815bee3e32e24bfd2e0ab9f7ff35c929821c1
 Size (gcc-15.1.0.tar.xz) = 98268344 bytes
 SHA1 (patch-config_override.m4) = 1ee0186b006a987dc57151a9d112654eabd24db9
 SHA1 (patch-gcc_config_rs6000_morphos.h) = c788e480f3f510b61292f5b1ec5b84646b33ab93
+SHA1 (patch-gcc_plugin.cc) = 85facfdab177478fa423fafd0b4f7c1704e2f270
 SHA1 (patch-libcc1_configure.ac) = ca40be7af4a4ffc3a4fba1a0dbda76fcde1fa2d9
 SHA1 (patch-libgcc_config_rs6000_gthr-morphos.c) = 0fae90d02ce28f8191ef2e4eb4fdbfe2ee7c23d3
+SHA1 (patch-libiberty_fibheap.c) = f11678ec725c773a18d03236ab4387d9ec9eef7d
+SHA1 (patch-libiberty_filedescriptor.c) = 51ad6812739b459d8cb37b6bd8afd5afb92dabd3
+SHA1 (patch-libiberty_pex-unix.c) = 7cf523e46d6c669785293f82fa8cf0b6c2b69895
 SHA1 (patch-libstdc++-v3_crossconfig.m4) = 0d0d20f9a1444bd77520decd275ac22d2a6e4890
 SHA1 (patch-libstdc++-v3_libsupc++_unwind-cxx.h) = 0234e780171554bf60858b884ab1181cad36f8b2
 SHA1 (patch-zlib_zutil.c) = 33a75b615f4d43c628450f8f3743a00a1a050c3e

Added files:

Index: pkgsrc/cross/ppc-morphos-gcc/patches/patch-gcc_plugin.cc
diff -u /dev/null pkgsrc/cross/ppc-morphos-gcc/patches/patch-gcc_plugin.cc:1.1
--- /dev/null   Sun Jun 15 13:19:52 2025
+++ pkgsrc/cross/ppc-morphos-gcc/patches/patch-gcc_plugin.cc    Sun Jun 15 13:19:52 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-gcc_plugin.cc,v 1.1 2025/06/15 13:19:52 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/ppc-morphos-gcc/patches/patch-libiberty_fibheap.c
diff -u /dev/null pkgsrc/cross/ppc-morphos-gcc/patches/patch-libiberty_fibheap.c:1.1
--- /dev/null   Sun Jun 15 13:19:52 2025
+++ pkgsrc/cross/ppc-morphos-gcc/patches/patch-libiberty_fibheap.c      Sun Jun 15 13:19:52 2025
@@ -0,0 +1,16 @@
+$NetBSD: patch-libiberty_fibheap.c,v 1.1 2025/06/15 13:19:52 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/ppc-morphos-gcc/patches/patch-libiberty_filedescriptor.c
diff -u /dev/null pkgsrc/cross/ppc-morphos-gcc/patches/patch-libiberty_filedescriptor.c:1.1
--- /dev/null   Sun Jun 15 13:19:52 2025
+++ pkgsrc/cross/ppc-morphos-gcc/patches/patch-libiberty_filedescriptor.c       Sun Jun 15 13:19:52 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-libiberty_filedescriptor.c,v 1.1 2025/06/15 13:19:52 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/ppc-morphos-gcc/patches/patch-libiberty_pex-unix.c
diff -u /dev/null pkgsrc/cross/ppc-morphos-gcc/patches/patch-libiberty_pex-unix.c:1.1
--- /dev/null   Sun Jun 15 13:19:52 2025
+++ pkgsrc/cross/ppc-morphos-gcc/patches/patch-libiberty_pex-unix.c     Sun Jun 15 13:19:52 2025
@@ -0,0 +1,23 @@
+$NetBSD: patch-libiberty_pex-unix.c,v 1.1 2025/06/15 13:19:52 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