pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/xroar



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Jun 18 15:50:48 UTC 2026

Modified Files:
        pkgsrc/emulators/xroar: distinfo
Added Files:
        pkgsrc/emulators/xroar/patches: patch-src_gdb.c

Log Message:
xroar: Fix build on NetBSD and SunOS with GCC 14.

NetBSD and SunOS need _NETBSD_SOURCE and __EXTENSIONS__
respectively to get strsep(3) defined when _POSIX_C_SOURCE
is 200112L.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/emulators/xroar/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/xroar/patches/patch-src_gdb.c

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

Modified files:

Index: pkgsrc/emulators/xroar/distinfo
diff -u pkgsrc/emulators/xroar/distinfo:1.5 pkgsrc/emulators/xroar/distinfo:1.6
--- pkgsrc/emulators/xroar/distinfo:1.5 Tue Jan  2 00:21:01 2024
+++ pkgsrc/emulators/xroar/distinfo     Thu Jun 18 15:50:48 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2024/01/02 00:21:01 ryoon Exp $
+$NetBSD: distinfo,v 1.6 2026/06/18 15:50:48 nia Exp $
 
 BLAKE2s (xroar-1.4.2.tar.gz) = df4cee605ca70f764f6757411b3b93304fed71bf64a66c7612754e92e53e44fc
 SHA512 (xroar-1.4.2.tar.gz) = a84071e3f13b0892cfe7eb956bcb75ffb10a4a76aacf0ca379ba01d9a7626a916a805fc4bb25ac540d2dfb0f0392ea26f3968d562ec3ebde259d388a16478293
 Size (xroar-1.4.2.tar.gz) = 1228108 bytes
+SHA1 (patch-src_gdb.c) = d9f5053fa19110c30a50cf48a9f22a23b0e359cc

Added files:

Index: pkgsrc/emulators/xroar/patches/patch-src_gdb.c
diff -u /dev/null pkgsrc/emulators/xroar/patches/patch-src_gdb.c:1.1
--- /dev/null   Thu Jun 18 15:50:48 2026
+++ pkgsrc/emulators/xroar/patches/patch-src_gdb.c      Thu Jun 18 15:50:48 2026
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_gdb.c,v 1.1 2026/06/18 15:50:48 nia Exp $
+
+NetBSD and SunOS also need _NETBSD_SOURCE and __EXTENSIONS__
+respectively to get strsep(3) defined when _POSIX_C_SOURCE
+is 200112L.
+
+--- src/gdb.c.orig     2026-06-18 15:47:36.854397453 +0000
++++ src/gdb.c
+@@ -65,6 +65,8 @@
+ // for addrinfo, struct timeval
+ #define _POSIX_C_SOURCE 200112L
+ // For strsep
++#define _NETBSD_SOURCE
++#define __EXTENSIONS__
+ #define _DEFAULT_SOURCE
+ #define _BSD_SOURCE
+ #define _DARWIN_C_SOURCE



Home | Main Index | Thread Index | Old Index