pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lang/nim: add missing patch in again
Module Name: pkgsrc-wip
Committed By: arcathrax <ivan%ivanpollak.com@localhost>
Pushed By: arcathrax
Date: Tue Nov 17 13:38:50 2026 +0100
Changeset: ee8a9dafad71e3e556f0521f436973b4d930ac70
Modified Files:
nim/distinfo
Added Files:
nim/patches/patch-dist_nimble_vendor_chronos_chronos_sendfile.nim
Log Message:
lang/nim: add missing patch in again
I thought that it would build without any patches but i guess im wrong
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ee8a9dafad71e3e556f0521f436973b4d930ac70
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
nim/distinfo | 1 -
...ch-dist_nimble_vendor_chronos_chronos_sendfile.nim | 19 +++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)
diffs:
diff --git a/nim/distinfo b/nim/distinfo
index a279bafed5..e79fcd91df 100644
--- a/nim/distinfo
+++ b/nim/distinfo
@@ -36,5 +36,4 @@ Size (status-im-nim-http-utils-f142cb2e8bd812dd002a6493b6082827bb248592.tar.gz)
BLAKE2s (status-im-nim-stew-83eb1157963b7f49351dbdd858355fa990bbe23c.tar.gz) = d6a444a3aa95970aa53cf5ebabf48ebd19130a7b60cc53b821779192f0781086
SHA512 (status-im-nim-stew-83eb1157963b7f49351dbdd858355fa990bbe23c.tar.gz) = b2453e69ce22ddaa145c648fd4f3298cc2535a2f45a55f8917a74e30368aa6a20126fe12abd18b44cc2da8955ad1ddc279b456365b7ab9530ebe4975ac2353ca
Size (status-im-nim-stew-83eb1157963b7f49351dbdd858355fa990bbe23c.tar.gz) = 122652 bytes
-SHA1 (patch-dist_nimble_src_nimblepkg_downloadnim.nim) = 499197b81265ecf16d4c6baeca54673aead052c6
SHA1 (patch-dist_nimble_vendor_chronos_chronos_sendfile.nim) = da30276501e0521056267c28f35e14949f5a2f96
diff --git a/nim/patches/patch-dist_nimble_vendor_chronos_chronos_sendfile.nim b/nim/patches/patch-dist_nimble_vendor_chronos_chronos_sendfile.nim
new file mode 100644
index 0000000000..0d2d2f9909
--- /dev/null
+++ b/nim/patches/patch-dist_nimble_vendor_chronos_chronos_sendfile.nim
@@ -0,0 +1,19 @@
+$NetBSD: patch-dist_nimble_vendor_chronos_chronos_sendfile.nim,v 1.1 2026/11/07 22:43:07 wiz Exp $
+
+NetBSD does not provide sendfile(2) (no libc symbol, no header declaration,
+no man page). chronos grouped NetBSD with the BSDs that do, so the generated
+code called an implicitly-declared function, which the pkgsrc compiler
+wrapper turns into an error. Treat NetBSD like emscripten/haiku instead.
+
+--- dist/nimble/vendor/chronos/chronos/sendfile.nim.orig
++++ dist/nimble/vendor/chronos/chronos/sendfile.nim
+@@ -41,3 +41,3 @@
+-elif defined(emscripten) or defined(haiku):
++elif defined(emscripten) or defined(haiku) or defined(netbsd):
+
+ proc sendfile*(outfd, infd: int, offset: int, count: var int): int =
+@@ -67,3 +67,2 @@
+-elif defined(freebsd) or defined(openbsd) or defined(netbsd) or
+- defined(dragonflybsd):
++elif defined(freebsd) or defined(openbsd) or defined(dragonflybsd):
+ import oserrno
Home |
Main Index |
Thread Index |
Old Index