pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
cyclone{,-bootstrap}: fix patch for detecting open_memstream
Module Name: pkgsrc-wip
Committed By: Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By: yhardy
Date: Mon Mar 2 12:23:45 2026 +0000
Changeset: a7cd6f2aa980fda4a966e28d2bd5e7f5df72f28f
Modified Files:
cyclone-bootstrap/distinfo
cyclone-bootstrap/patches/patch-Makefile.config
cyclone/distinfo
cyclone/patches/patch-Makefile.config
Log Message:
cyclone{,-bootstrap}: fix patch for detecting open_memstream
The second argument for open_memstream is of type (size_t*),
not int. This fixes the detection of open_memstream.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a7cd6f2aa980fda4a966e28d2bd5e7f5df72f28f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
cyclone-bootstrap/distinfo | 2 +-
cyclone-bootstrap/patches/patch-Makefile.config | 2 +-
cyclone/distinfo | 2 +-
cyclone/patches/patch-Makefile.config | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diffs:
diff --git a/cyclone-bootstrap/distinfo b/cyclone-bootstrap/distinfo
index 3a2d0b093b..6f8600c02a 100644
--- a/cyclone-bootstrap/distinfo
+++ b/cyclone-bootstrap/distinfo
@@ -4,6 +4,6 @@ BLAKE2s (cyclone-bootstrap/v0.36.0.tar.gz) = 24afeaa923381ea26a001f720556429a292
SHA512 (cyclone-bootstrap/v0.36.0.tar.gz) = 477534602baa4acbae0450e664617ad70302a79c552005741080c4e4d2993805ff1d25703bd2c43c82764a477a4b26fb4b88c8787a82e99fa5a6fc88d9f914f2
Size (cyclone-bootstrap/v0.36.0.tar.gz) = 3967729 bytes
SHA1 (patch-Makefile) = ba2033dda259957f2a5f86f786888621193cc51c
-SHA1 (patch-Makefile.config) = 26e1276fdf8084327ecd883e62c838fbc3437e07
+SHA1 (patch-Makefile.config) = 29567ad5cda996d0dc598fcde21ca61d4dadfa3f
SHA1 (patch-gc.c) = ef28c26e399d3572239895b89375d85f9133fd07
SHA1 (patch-include_cyclone_types.h) = 22f4ac2fd4cfb63729d5620006dc40143cf2a09b
diff --git a/cyclone-bootstrap/patches/patch-Makefile.config b/cyclone-bootstrap/patches/patch-Makefile.config
index be49a91cbc..8dc20cb398 100644
--- a/cyclone-bootstrap/patches/patch-Makefile.config
+++ b/cyclone-bootstrap/patches/patch-Makefile.config
@@ -36,7 +36,7 @@ $NetBSD$
#CYC_PLATFORM_HAS_MEMSTREAM ?= 1
-CYC_PLATFORM_HAS_MEMSTREAM := $(shell echo "main(){char *buf; int len; open_memstream(&buf, &len);}" | $(CC) -xc - >/dev/null 2>/dev/null && echo 1 || echo 0)
-CYC_PLATFORM_HAS_FMEMOPEN := $(shell echo "main(){char *buf; fmemopen(&buf, 0, \"r\");}" | $(CC) -xc - >/dev/null 2>/dev/null && echo 1 || echo 0)
-+CYC_PLATFORM_HAS_MEMSTREAM := $(shell echo "int main(){char *buf; int len; open_memstream(&buf, &len);}" | $(CC) -xc -include stdio.h - >/dev/null 2>/dev/null && echo 1 || echo 0)
++CYC_PLATFORM_HAS_MEMSTREAM := $(shell echo "int main(){char *buf; size_t len; open_memstream(&buf, &len);}" | $(CC) -xc -include stdio.h - >/dev/null 2>/dev/null && echo 1 || echo 0)
+CYC_PLATFORM_HAS_FMEMOPEN := $(shell echo "int main(){char *buf; fmemopen(&buf, 0, \"r\");}" | $(CC) -xc -include stdio.h - >/dev/null 2>/dev/null && echo 1 || echo 0)
# code from chibi's makefile to detect platform
diff --git a/cyclone/distinfo b/cyclone/distinfo
index 4ae2cf01e1..bc9ae18e33 100644
--- a/cyclone/distinfo
+++ b/cyclone/distinfo
@@ -4,7 +4,7 @@ BLAKE2s (cyclone-0.36.0.tar.gz) = 1777c4452a676b992c0b5ed968cd6b72b358fbd5517e72
SHA512 (cyclone-0.36.0.tar.gz) = 6dfa3ff80b1a8397608483e6d914c25b1fee521d620991fb70f1bcf77303d290477100cbd82fbd9c939b5f2c91f72240f58711d9ab023721c15c8ad9b15998fd
Size (cyclone-0.36.0.tar.gz) = 5237987 bytes
SHA1 (patch-Makefile) = d5e8d8a25d9472601708778ec9e220a987da4128
-SHA1 (patch-Makefile.config) = b62fb06268ee9dc327ba9d9f75550c70fb2e4bb6
+SHA1 (patch-Makefile.config) = 2451e3409b82769c6a2c9599bc1a1552630d744c
SHA1 (patch-cyclone.scm) = e624dd62369d92b88501f8770d3504e78e311321
SHA1 (patch-gc.c) = ef28c26e399d3572239895b89375d85f9133fd07
SHA1 (patch-include_cyclone_types.h) = caf0f87ec67d42aad59d7041c50de12fac20c932
diff --git a/cyclone/patches/patch-Makefile.config b/cyclone/patches/patch-Makefile.config
index 53724c7150..31c0c0cfdb 100644
--- a/cyclone/patches/patch-Makefile.config
+++ b/cyclone/patches/patch-Makefile.config
@@ -33,7 +33,7 @@ $NetBSD$
#CYC_PLATFORM_HAS_MEMSTREAM ?= 1
-CYC_PLATFORM_HAS_MEMSTREAM := $(shell echo "main(){char *buf; int len; open_memstream(&buf, &len);}" | $(CC) -xc - >/dev/null 2>/dev/null && echo 1 || echo 0)
-CYC_PLATFORM_HAS_FMEMOPEN := $(shell echo "main(){char *buf; fmemopen(&buf, 0, \"r\");}" | $(CC) -xc - >/dev/null 2>/dev/null && echo 1 || echo 0)
-+CYC_PLATFORM_HAS_MEMSTREAM := $(shell echo "int main(){char *buf; int len; open_memstream(&buf, &len);}" | $(CC) -xc -include stdio.h - >/dev/null 2>/dev/null && echo 1 || echo 0)
++CYC_PLATFORM_HAS_MEMSTREAM := $(shell echo "int main(){char *buf; size_t len; open_memstream(&buf, &len);}" | $(CC) -xc -include stdio.h - >/dev/null 2>/dev/null && echo 1 || echo 0)
+CYC_PLATFORM_HAS_FMEMOPEN := $(shell echo "int main(){char *buf; fmemopen(&buf, 0, \"r\");}" | $(CC) -xc -include stdio.h - >/dev/null 2>/dev/null && echo 1 || echo 0)
# code from chibi's makefile to detect platform
Home |
Main Index |
Thread Index |
Old Index