pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
cyclone: define *ai-v4mapped* to zero when AI_V4MAPPED is undefined
Module Name: pkgsrc-wip
Committed By: Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By: yhardy
Date: Fri Mar 1 21:24:29 2024 +0200
Changeset: de4a48ff7afdab80c48e2a3e6d654310f3fa463d
Modified Files:
cyclone/distinfo
Added Files:
cyclone/patches/patch-srfi_106.sld
Log Message:
cyclone: define *ai-v4mapped* to zero when AI_V4MAPPED is undefined
This allows (srfi 106) to be available on NetBSD and other platforms
without AI_V4MAPPED. However, the library no longer conforms to SRFI-106.
This patch is similar to other patches in pkgsrc which work around
lack of AI_V4MAPPED support,
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=de4a48ff7afdab80c48e2a3e6d654310f3fa463d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
cyclone/distinfo | 1 +
cyclone/patches/patch-srfi_106.sld | 27 +++++++++++++++++++++++++++
2 files changed, 28 insertions(+)
diffs:
diff --git a/cyclone/distinfo b/cyclone/distinfo
index 8fa9bd1cd4..d51119218b 100644
--- a/cyclone/distinfo
+++ b/cyclone/distinfo
@@ -8,4 +8,5 @@ SHA1 (patch-Makefile.config) = 1cb1559cbe9779d5fa8bda998db14951af99716a
SHA1 (patch-cyclone.scm) = e624dd62369d92b88501f8770d3504e78e311321
SHA1 (patch-include_cyclone_types.h) = caf0f87ec67d42aad59d7041c50de12fac20c932
SHA1 (patch-scheme_base.sld) = b9aaeb494572eb4fddecf25d30eae7cafe77163f
+SHA1 (patch-srfi_106.sld) = 7302e8edc66cfea9c7a336af9ea9df9b2d041c1d
SHA1 (patch-tests_macro-hygiene.scm) = 3e640ae4e4f67f0d3e3be7670559748758ac66bc
diff --git a/cyclone/patches/patch-srfi_106.sld b/cyclone/patches/patch-srfi_106.sld
new file mode 100644
index 0000000000..30ea36c161
--- /dev/null
+++ b/cyclone/patches/patch-srfi_106.sld
@@ -0,0 +1,27 @@
+$NetBSD$
+
+This patch defines *ai-v4mapped* to zero when AI_V4MAPPED is undefined
+and similarly for *ai-all* (similar to other patches). This allows
+(srfi 106) to be available on NetBSD and other platforms without
+AI_V4MAPPED. However, the library no longer conforms to SRFI-106.
+
+--- srfi/106.sld.orig 2024-02-14 02:31:23.000000000 +0000
++++ srfi/106.sld
+@@ -388,7 +388,7 @@
+ #ifdef AI_V4MAPPED
+ return_closcall1(data, k, obj_int2obj(AI_V4MAPPED));
+ #else
+- Cyc_rt_raise_msg(data, \"AI_V4MAPPED is not available on this platform\");
++ return_closcall1(data, k, obj_int2obj(0));
+ #endif
+ ")
+ (define *ai-all* (ai-all))
+@@ -398,7 +398,7 @@
+ #ifdef AI_ALL
+ return_closcall1(data, k, obj_int2obj(AI_ALL));
+ #else
+- Cyc_rt_raise_msg(data, \"AI_ALL is not available on this platform\");
++ return_closcall1(data, k, obj_int2obj(0));
+ #endif
+ ")
+ (make-const ai-addrconfig "AI_ADDRCONFIG" )
Home |
Main Index |
Thread Index |
Old Index