From: Stuart Cassoff Subject: [UPDATE] devel/swig To: OpenBSD Ports Date: Sun, 30 Aug 2026 10:46:38 -0400 It's Swiggin' time again! Port: * Drop a patch that went upstream. * patch-CCache_configure could use a comment. Swig changes worth mentioning: * %typedef is deprecated; embed.i and the %new_copy_array macro are removed. * Python 2 is no longer supported; SWIG now targets Python 3.5 and later. * Ruby: generated wrappers migrated to the TypedData API (the deprecated Data API is removed in Ruby 4.1) and use embedded TypedData storage on Ruby 3.3 and later. The rest at https://swig.org. This is only an update to the port; I haven't tested anything (yet). Who's up for testing their favourite progs with the new Swig? :D Stu diff -Nurp /usr/ports/devel/swig/Makefile ./Makefile --- /usr/ports/devel/swig/Makefile Wed Feb 25 05:48:30 2026 +++ ./Makefile Sun Aug 30 10:03:22 2026 @@ -1,7 +1,7 @@ COMMENT = simplified wrapper and interface generator SUBST_VARS = VERSION -VERSION = 4.4.1 +VERSION = 4.5.0 DISTNAME = swig-${VERSION} CATEGORIES = devel diff -Nurp /usr/ports/devel/swig/distinfo ./distinfo --- /usr/ports/devel/swig/distinfo Wed Feb 25 05:48:30 2026 +++ ./distinfo Sun Aug 30 10:07:11 2026 @@ -1,2 +1,2 @@ -SHA256 (swig-4.4.1.tar.gz) = QBYqcGxW91ktCP1S71URy3rBkfNZPPBzBqClVMYoH88= -SIZE (swig-4.4.1.tar.gz) = 8658358 +SHA256 (swig-4.5.0.tar.gz) = Iq4OiH+MyoAxoyXGfQBSB2UyALQOce2z+IeA4o5H0P8= +SIZE (swig-4.5.0.tar.gz) = 9178362 diff -Nurp /usr/ports/devel/swig/patches/patch-CCache_configure ./patches/patch-CCache_configure --- /usr/ports/devel/swig/patches/patch-CCache_configure Thu Nov 3 04:04:24 2022 +++ ./patches/patch-CCache_configure Sun Aug 30 10:15:54 2026 @@ -1,7 +1,7 @@ Index: CCache/configure --- CCache/configure.orig +++ CCache/configure -@@ -4093,15 +4093,7 @@ else $as_nop +@@ -4169,15 +4169,7 @@ else case e in #( cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include diff -Nurp /usr/ports/devel/swig/patches/patch-configure ./patches/patch-configure --- /usr/ports/devel/swig/patches/patch-configure Wed Feb 25 05:48:30 2026 +++ ./patches/patch-configure Wed Dec 31 19:00:00 1969 @@ -1,22 +0,0 @@ -https://github.com/swig/swig/issues/3304 - -fix Examples/guile/multivalue & multimap regress tests - -ld: error: unknown argument '-I/usr/local/include' -ld: error: unknown argument '-pthread' -ld: error: unknown argument '-pthread' -ld: error: unable to find library -lm - -Index: configure ---- configure.orig -+++ configure -@@ -6619,7 +6619,8 @@ then - *-*-linux*) LDSHARED="\$(CC) -shared";; - *-*-dgux*) LDSHARED="ld -G";; - *-*-freebsd3*) LDSHARED="\$(CC) -shared";; -- *-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";; -+ *-*-freebsd*) LDSHARED="ld -Bshareable";; -+ *-*-openbsd*) LDSHARED="\$(CC) -shared";; - *-*-netbsd*) - if [ "`\$(CC) -dM -E -