diff db222cb4a3bdb48d994d062743773b99319f18ba c78a3aeca8a0de42053544ea26b7fbc3ce9d40ab
commit - db222cb4a3bdb48d994d062743773b99319f18ba
commit + c78a3aeca8a0de42053544ea26b7fbc3ce9d40ab
blob - aae1cec5b412a410c50ccb789a6bef1ba7506381
blob + 372beee8285f0ed76b7022ad3ae48619d3690929
--- lang/nim/Makefile
+++ lang/nim/Makefile
@@ -2,15 +2,24 @@ ONLY_FOR_ARCHS = amd64 arm64 i386
COMMENT = statically typed systems programming language
-DISTNAME = nim-1.6.18
+DISTNAME = nim-2.2.6
EXTRACT_SUFX = .tar.xz
-REVISION = 2
CATEGORIES = lang
HOMEPAGE = https://nim-lang.org/
SITES = ${HOMEPAGE}download/
+NIMBLE_CHECKSUMS_V = f8f6bd34bfa3fe12c64b919059ad856a96efcba0
+NIMBLE_ZIPPY_V = a99f6a7d8a8e3e0213b3cad0daf0ea974bf58e3f
+
+DIST_TUPLE = github nim-lang atlas 2aa62121b40d580aa2fb27920a37b938d36c5f57 .
+DIST_TUPLE += github nim-lang nimble 9207e8b2bbdf66b5a4d1020214cff44d2d30df92 .
+DIST_TUPLE += github nim-lang checksums 0b8e46379c5bc1bf73d8b3011908389c60fb9b98 .
+DIST_TUPLE += github nim-lang sat faf1617f44d7632ee9601ebc13887644925dcc01 .
+DIST_TUPLE += github nim-lang checksums ${NIMBLE_CHECKSUMS_V} .
+DIST_TUPLE += github guzba zippy ${NIMBLE_ZIPPY_V} .
+
# MIT
PERMIT_PACKAGE = Yes
@@ -28,6 +37,22 @@ TEST_DEPENDS = archivers/p7zip,-main \
SUBST_VARS += CFLAGS
+post-extract:
+ rm -R ${WRKDIST}/dist/nimble
+ rm -R ${WRKDIST}/dist/checksums
+ mv ${WRKDIR}/nimble-* ${WRKDIST}/dist/nimble
+ rm -R ${WRKDIST}/dist/nimble/vendor/{checksums,zippy}
+ mv ${WRKDIR}/checksums-${NIMBLE_CHECKSUMS_V} \
+ ${WRKDIST}/dist/nimble/vendor/checksums
+ mv ${WRKDIR}/zippy-${NIMBLE_ZIPPY_V} \
+ ${WRKDIST}/dist/nimble/vendor/zippy
+ cp -r ${WRKDIR}/sat-*/* \
+ ${WRKDIST}/dist/nimble/vendor/sat/
+ mv ${WRKDIR}/checksums-* ${WRKDIST}/dist/checksums
+ mv ${WRKDIR}/atlas-* ${WRKDIST}/dist/atlas
+ mkdir -p ${WRKDIST}/dist/atlas/dist
+ mv ${WRKDIR}/sat-* ${WRKDIST}/dist/atlas/dist/sat
+
post-patch:
mkdir -p ${WRKSRC}/nimcache-port
mkdir -p ${WRKSRC}/nimcache-port-test
@@ -36,6 +61,7 @@ post-patch:
${WRKSRC}/koch.nim
pre-configure:
+ ${SUBST_CMD} ${WRKSRC}/compiler/options.nim
${SUBST_CMD} ${WRKSRC}/config/nim.cfg
do-build:
@@ -43,16 +69,18 @@ do-build:
COMP_FLAGS="${CPPFLAGS} ${CFLAGS}" LINK_FLAGS="${LDFLAGS}" \
CFLAGS="${CFLAGS}" sh build.sh
cd ${WRKSRC} && bin/nim c -d:release --parallelBuild:${MAKE_JOBS} \
+ --lib:lib --noNimblePath --skipUserCfg --skipParentCfg --hints:off \
--nimcache:"${WRKSRC}/nimcache-port" --listFullPaths \
--listCmd --putenv:"PATH=${PATH}" koch
.for t in boot nimble tools
cd ${WRKSRC} && ./koch $t -d:release --parallelBuild:${MAKE_JOBS} \
+ --lib:lib --skipUserCfg --skipParentCfg --hints:off \
--nimcache:"${WRKSRC}/nimcache-port" --listFullPaths \
--listCmd --putenv:"PATH=${PATH}"
.endfor
do-install:
-.for b in nim nimble nimpretty nimgrep nimsuggest testament
+.for b in atlas nim nimble nimgrep nimpretty nimsuggest testament
${INSTALL_PROGRAM} ${WRKSRC}/bin/$b ${PREFIX}/bin
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/lib/nim
@@ -67,7 +95,7 @@ do-install:
# note that for some tests an internet connection is required
do-test:
cd ${WRKSRC} && ${SETENV} ${ALL_TEST_ENV} ./koch tests all -d:release \
- --parallelBuild:1
+ --parallelBuild:1 \
--nimcache:"${WRKSRC}/nimcache-port-test" \
--putenv:"PATH=${PATH}"
blob - fd8711daa6f5bf9a7306a34ab109a998ca4dc25c
blob + 59ae0d76c87651749b3079cd324912eef4270843
--- lang/nim/distinfo
+++ lang/nim/distinfo
@@ -1,2 +1,14 @@
-SHA256 (nim-1.6.18.tar.xz) = UCQaxyIpG6ljdT8EWqo1h7c8GqKK4pxXPBWluKYCoss=
-SIZE (nim-1.6.18.tar.xz) = 5212008
+SHA256 (guzba-zippy-a99f6a7d8a8e3e0213b3cad0daf0ea974bf58e3f.tar.gz) = TmlLHmmbJYmlMcgfY/AWT1AKX1K9EF7PRXLeqYLx2ms=
+SHA256 (nim-2.2.6.tar.xz) = ZXsOPV3veIFI0qh/phI/p1Wy2SytMe9g/SYeRReFUos=
+SHA256 (nim-lang-atlas-2aa62121b40d580aa2fb27920a37b938d36c5f57.tar.gz) = Uqo0b+TTuy+ZSeatZgXX/x5mk7MU07u3K2J5h0a8lW0=
+SHA256 (nim-lang-checksums-0b8e46379c5bc1bf73d8b3011908389c60fb9b98.tar.gz) = 1A4JO9XjoQoupZf0oj85ytTOOE8QmLhDm0/U1fzh4TI=
+SHA256 (nim-lang-checksums-f8f6bd34bfa3fe12c64b919059ad856a96efcba0.tar.gz) = nNBiWuiGDtHWogz/PauBMlqSPCd4n8K+2CYlp8V2OXU=
+SHA256 (nim-lang-nimble-9207e8b2bbdf66b5a4d1020214cff44d2d30df92.tar.gz) = /TC/NhnXE3ZxUR2mCsVm16Un3bquueOjmXtyAQRayUg=
+SHA256 (nim-lang-sat-faf1617f44d7632ee9601ebc13887644925dcc01.tar.gz) = 37kKp/pim7e9OVrgQUEDYkOUkmANBpeNKbpybBbvQHc=
+SIZE (guzba-zippy-a99f6a7d8a8e3e0213b3cad0daf0ea974bf58e3f.tar.gz) = 29504190
+SIZE (nim-2.2.6.tar.xz) = 8471204
+SIZE (nim-lang-atlas-2aa62121b40d580aa2fb27920a37b938d36c5f57.tar.gz) = 90761
+SIZE (nim-lang-checksums-0b8e46379c5bc1bf73d8b3011908389c60fb9b98.tar.gz) = 47512
+SIZE (nim-lang-checksums-f8f6bd34bfa3fe12c64b919059ad856a96efcba0.tar.gz) = 47503
+SIZE (nim-lang-nimble-9207e8b2bbdf66b5a4d1020214cff44d2d30df92.tar.gz) = 691703
+SIZE (nim-lang-sat-faf1617f44d7632ee9601ebc13887644925dcc01.tar.gz) = 9736
blob - 1cc549895b5586a2736ed2b28948140cab29ec67
blob + aa414e19e6f71c233b700cf5673604c30e7dabfc
--- lang/nim/patches/patch-build_sh
+++ lang/nim/patches/patch-build_sh
@@ -7,8 +7,8 @@ Index: build.sh
fi
CC="sem -j $parallel --id $$ ${CC}"
fi
--COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} -w -fmax-errors=3 -O3 -fno-strict-aliasing -fno-ident $extraBuildArgs"
-+COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} -w -fmax-errors=3 -fno-strict-aliasing -fno-ident $extraBuildArgs"
+-COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} -w -fmax-errors=3 -fno-strict-aliasing -O3 -fno-ident -fno-math-errno $extraBuildArgs"
++COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} -w -fmax-errors=3 -fno-strict-aliasing -fno-ident -fno-math-errno $extraBuildArgs"
LINK_FLAGS="${LDFLAGS:-} "
PS4=""
# platform detection
blob - 9853af10e7d163bae6b4e19dfaa0f6d3f4190455
blob + aab32b8987e207fb46af2c55840f71ec33afa932
--- lang/nim/patches/patch-config_nim_cfg
+++ lang/nim/patches/patch-config_nim_cfg
@@ -6,7 +6,7 @@
Index: config/nim.cfg
--- config/nim.cfg.orig
+++ config/nim.cfg
-@@ -8,7 +8,7 @@
+@@ -9,7 +9,7 @@
# Environment variables can be accessed like so:
# gcc.path %= "$CC_PATH"
@@ -15,7 +15,7 @@ Index: config/nim.cfg
# additional options always passed to the compiler:
--parallel_build: "0" # 0 to auto-detect number of processors
-@@ -111,7 +111,7 @@ nimblepath="$home/.nimble/pkgs/"
+@@ -132,7 +132,7 @@ nimblepath="$home/.nimble/pkgs/"
@if unix:
@if bsd:
# BSD got posix_spawn only recently, so we deactivate it for osproc:
@@ -24,7 +24,7 @@ Index: config/nim.cfg
@elif haiku:
gcc.options.linker = "-Wl,--as-needed -lnetwork"
gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork"
-@@ -201,21 +201,27 @@ clang.objc.options.linker = "-lobjc -lgnustep-base"
+@@ -223,21 +223,27 @@ clang.objc.options.linker = "-lobjc -lgnustep-base"
# Options for FreeBSD, OpenBSD, NetBSD linker to add locations for searching
# shared libraries.
@@ -58,30 +58,30 @@ Index: config/nim.cfg
@elif netbsd:
cincludes: "/usr/pkg/include"
clibdir: "/usr/pkg/lib"
-@@ -235,15 +241,15 @@ clang.objc.options.linker = "-lobjc -lgnustep-base"
- gcc.options.linker %= "-L $WIND_BASE/target/lib/usr/lib/ppc/PPC32/common -mrtp -fno-strict-aliasing -D_C99 -D_HAS_C9X -std=c99 -fasm -Wall -Wno-write-strings"
- @end
-
--gcc.options.speed = "-O3 -fno-strict-aliasing -fno-ident"
+@@ -262,15 +268,15 @@ gcc.options.always %= "${gcc.options.always} -fno-stri
+ # -fno-math-errno is default in OSX, iOS, BSD, Musl, Libm, LLVM, Clang, ICC.
+ # See https://itnext.io/why-standard-c-math-functions-are-slow-d10d02554e33
+ # and https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Optimize-Options.html#Optimize-Options
+-gcc.options.speed = "-O3 -fno-ident -fno-math-errno"
-gcc.options.size = "-Os -fno-ident"
-+gcc.options.speed = "${CFLAGS} -fno-strict-aliasing -fno-ident"
++gcc.options.speed = "${CFLAGS} -fno-ident -fno-math-errno"
+gcc.options.size = "${CFLAGS} -Os -fno-ident"
@if windows:
gcc.options.debug = "-g3 -Og -gdwarf-3"
@else:
gcc.options.debug = "-g3 -Og"
@end
--gcc.cpp.options.speed = "-O3 -fno-strict-aliasing -fno-ident"
+-gcc.cpp.options.speed = "-O3 -fno-strict-aliasing -fno-ident -fno-math-errno"
-gcc.cpp.options.size = "-Os -fno-ident"
-+gcc.cpp.options.speed = "${CFLAGS} -fno-strict-aliasing -fno-ident"
++gcc.cpp.options.speed = "${CFLAGS} -fno-strict-aliasing -fno-ident -fno-math-errno"
+gcc.cpp.options.size = "${CFLAGS} -Os -fno-ident"
gcc.cpp.options.debug = "-g3 -Og"
#passl = "-pg"
-@@ -257,8 +263,8 @@ llvm_gcc.options.size = "-Os"
+@@ -284,8 +290,8 @@ llvm_gcc.options.size = "-Os"
clang.options.debug = "-g"
clang.cpp.options.debug = "-g"
- clang.options.always = "-w -ferror-limit=3"
+ clang.options.always = "-w -ferror-limit=3 -fno-strict-aliasing"
-clang.options.speed = "-O3"
-clang.options.size = "-Os"
+clang.options.speed = "${CFLAGS}"
blob - /dev/null
blob + 125385150074e8cb95973bf99170abecd78f3a97 (mode 644)
--- /dev/null
+++ lang/nim/patches/patch-compiler_options_nim
@@ -0,0 +1,12 @@
+Index: compiler/options.nim
+--- compiler/options.nim.orig
++++ compiler/options.nim
+@@ -573,7 +573,7 @@ proc newConfigRef*(): ConfigRef =
+ outFile: RelativeFile"",
+ outDir: AbsoluteDir"",
+ prefixDir: AbsoluteDir"",
+- libpath: AbsoluteDir"", nimcacheDir: AbsoluteDir"",
++ libpath: AbsoluteDir"${PREFIX}/lib/nim", nimcacheDir: AbsoluteDir"",
+ dllOverrides: newStringTable(modeCaseInsensitive),
+ moduleOverrides: newStringTable(modeStyleInsensitive),
+ cfileSpecificOptions: newStringTable(modeCaseSensitive),
blob - e9bd97d3fcd61d480f90a51cb649f07b9a914af7
blob + c1b47139e5c9cd9aa636d9d3ae40f9390c757160
--- lang/nim/patches/patch-dist_nimble_src_nimblepkg_options_nim
+++ lang/nim/patches/patch-dist_nimble_src_nimblepkg_options_nim
@@ -3,16 +3,20 @@ don't exec git
Index: dist/nimble/src/nimblepkg/options.nim
--- dist/nimble/src/nimblepkg/options.nim.orig
+++ dist/nimble/src/nimblepkg/options.nim
-@@ -161,12 +161,6 @@ proc writeHelp*(quit=true) =
+@@ -300,15 +300,7 @@ const
+ ## sources outside the git tree of Nimble:
+ git_revision_override* {.strdefine.} = ""
+
+- gitRevision* = when git_revision_override.len == 0:
+- const execResult = gorgeEx("git rev-parse HEAD")
+- when execResult[0].len > 0 and execResult[1] == QuitSuccess:
+- execResult[0]
+- else:
+- {.warning: "Couldn't determine GIT hash: " & execResult[0].}
+- "couldn't determine git hash"
+- else:
+- git_revision_override
++ gitRevision* = "couldn't determine git hash"
+
proc writeVersion*() =
echo("nimble v$# compiled at $# $#" %
- [nimbleVersion, CompileDate, CompileTime])
-- const execResult = gorgeEx("git rev-parse HEAD")
-- when execResult[0].len > 0 and execResult[1] == QuitSuccess:
-- echo "git hash: ", execResult[0]
-- else:
-- {.warning: "Couldn't determine GIT hash: " & execResult[0].}
-- echo "git hash: couldn't determine git hash"
- raise NimbleQuit(msg: "")
-
- proc parseActionType*(action: string): ActionType =
blob - fec523e021a5f7744ae2eaf048b26e469ac391cd (mode 644)
blob + /dev/null
--- lang/nim/patches/patch-lib_pure_asyncnet_nim
+++ /dev/null
@@ -1,22 +0,0 @@
-Index: lib/pure/asyncnet.nim
---- lib/pure/asyncnet.nim.orig
-+++ lib/pure/asyncnet.nim
-@@ -261,6 +261,9 @@ when defineSsl:
- ErrClearError()
- # Call the desired operation.
- opResult = op
-+ var err = SSL_ERROR_NONE
-+ if opResult < 0:
-+ err = getSslError(socket, opResult.cint)
-
- # Send any remaining pending SSL data.
- await sendPendingSslData(socket, flags)
-@@ -268,7 +271,7 @@ when defineSsl:
- # If the operation failed, try to see if SSL has some data to read
- # or write.
- if opResult < 0:
-- let err = getSslError(socket, opResult.cint)
-+ #let err = getSslError(socket, opResult.cint)
- let fut = appeaseSsl(socket, flags, err.cint)
- yield fut
- if not fut.read():
blob - /dev/null
blob + ff80fb48c9cb0690b731a871e48d312137d665fb (mode 644)
--- /dev/null
+++ lang/nim/patches/patch-koch_nim
@@ -0,0 +1,26 @@
+Index: koch.nim
+--- koch.nim.orig
++++ koch.nim
+@@ -156,10 +156,6 @@ proc bundleC2nim(args: string) =
+ options = "--noNimblePath --path:. " & args)
+
+ proc bundleNimbleExe(latest: bool, args: string) =
+- let commit = if latest: "HEAD" else: NimbleStableCommit
+- cloneDependency(distDir, "https://github.com/nim-lang/nimble.git",
+- commit = commit, allowBundled = true)
+- updateSubmodules(distDir / "nimble", allowBundled = true)
+ nimCompile("dist/nimble/src/nimble.nim",
+ options = "-d:release --noNimblePath " & args)
+ const zippyTests = "dist/nimble/vendor/zippy/tests"
+@@ -167,11 +163,6 @@ proc bundleNimbleExe(latest: bool, args: string) =
+ removeDir(zippyTests)
+
+ proc bundleAtlasExe(latest: bool, args: string) =
+- let commit = if latest: "HEAD" else: AtlasStableCommit
+- cloneDependency(distDir, "https://github.com/nim-lang/atlas.git",
+- commit = commit, allowBundled = true)
+- cloneDependency(distDir / "atlas" / distDir, "https://github.com/nim-lang/sat.git",
+- commit = SatStableCommit, allowBundled = true)
+ # installer.ini expects it under $nim/bin
+ nimCompile("dist/atlas/src/atlas.nim",
+ options = "-d:release --noNimblePath -d:nimAtlasBootstrap " & args)
blob - b29e9bf099034be689df0f892e39e9d445535219
blob + 6ee25cbf4e44733c3f9705909a75a67232385bb8
--- lang/nim/pkg/PLIST
+++ lang/nim/pkg/PLIST
@@ -1,6 +1,7 @@
@conflict nimrod-<0.11.2
@pkgpath lang/nimrod
@sample ${SYSCONFDIR}/nim/
+@bin bin/atlas
@bin bin/nim
@bin bin/nimble
@bin bin/nimgrep
@@ -12,7 +13,6 @@ lib/nim/arch/
lib/nim/arch/x86/
lib/nim/arch/x86/amd64.S
lib/nim/arch/x86/i386.S
-lib/nim/compilation.nim
lib/nim/core/
lib/nim/core/hotcodereloading.nim
lib/nim/core/locks.nim
@@ -23,26 +23,25 @@ lib/nim/core/typeinfo.nim
lib/nim/cycle.h
lib/nim/deprecated/
lib/nim/deprecated/pure/
-lib/nim/deprecated/pure/LockFreeHash.nim
-lib/nim/deprecated/pure/events.nim
+lib/nim/deprecated/pure/future.nim
+lib/nim/deprecated/pure/mersenne.nim
lib/nim/deprecated/pure/ospaths.nim
-lib/nim/deprecated/pure/parseopt2.nim
-lib/nim/deprecated/pure/securehash.nim
-lib/nim/deprecated/pure/sharedstrings.nim
+lib/nim/deprecated/pure/oswalkdir.nim
+lib/nim/deprecated/pure/sums.nim
lib/nim/deps.txt
lib/nim/experimental/
lib/nim/experimental/diff.nim
lib/nim/genode/
lib/nim/genode/alloc.nim
+lib/nim/genode/constructibles.nim
+lib/nim/genode/entrypoints.nim
lib/nim/genode/env.nim
+lib/nim/genode/signals.nim
lib/nim/genode_cpp/
+lib/nim/genode_cpp/signals.h
lib/nim/genode_cpp/syslocks.h
lib/nim/genode_cpp/threads.h
lib/nim/impure/
-lib/nim/impure/db_mysql.nim
-lib/nim/impure/db_odbc.nim
-lib/nim/impure/db_postgres.nim
-lib/nim/impure/db_sqlite.nim
lib/nim/impure/nre/
lib/nim/impure/nre.nim
lib/nim/impure/nre/private/
@@ -52,7 +51,6 @@ lib/nim/impure/re.nim
lib/nim/js/
lib/nim/js/asyncjs.nim
lib/nim/js/dom.nim
-lib/nim/js/dom_extensions.nim
lib/nim/js/jsconsole.nim
lib/nim/js/jscore.nim
lib/nim/js/jsffi.nim
@@ -64,11 +62,13 @@ lib/nim/nimrtl.nim
lib/nim/nimrtl.nim.cfg
lib/nim/packages/
lib/nim/packages/docutils/
+lib/nim/packages/docutils/dochelpers.nim
lib/nim/packages/docutils/docutils.nimble.old
lib/nim/packages/docutils/highlite.nim
lib/nim/packages/docutils/rst.nim
lib/nim/packages/docutils/rstast.nim
lib/nim/packages/docutils/rstgen.nim
+lib/nim/packages/docutils/rstidx.nim
lib/nim/posix/
lib/nim/posix/epoll.nim
lib/nim/posix/inotify.nim
@@ -93,7 +93,6 @@ lib/nim/pure/async.nim
lib/nim/pure/asyncdispatch.nim
lib/nim/pure/asyncdispatch.nim.cfg
lib/nim/pure/asyncfile.nim
-lib/nim/pure/asyncftpclient.nim
lib/nim/pure/asyncfutures.nim
lib/nim/pure/asynchttpserver.nim
lib/nim/pure/asyncmacro.nim
@@ -131,22 +130,17 @@ lib/nim/pure/cookies.nim
lib/nim/pure/coro.nim
lib/nim/pure/coro.nimcfg
lib/nim/pure/cstrutils.nim
-lib/nim/pure/db_common.nim
lib/nim/pure/distros.nim
lib/nim/pure/dynlib.nim
lib/nim/pure/encodings.nim
lib/nim/pure/endians.nim
lib/nim/pure/fenv.nim
-lib/nim/pure/future.nim
lib/nim/pure/hashes.nim
lib/nim/pure/htmlgen.nim
lib/nim/pure/htmlparser.nim
lib/nim/pure/httpclient.nim
lib/nim/pure/httpcore.nim
lib/nim/pure/includes/
-lib/nim/pure/includes/osenv.nim
-lib/nim/pure/includes/oserr.nim
-lib/nim/pure/includes/osseps.nim
lib/nim/pure/includes/unicode_ranges.nim
lib/nim/pure/ioselects/
lib/nim/pure/ioselects/ioselectors_epoll.nim
@@ -161,18 +155,15 @@ lib/nim/pure/marshal.nim
lib/nim/pure/math.nim
lib/nim/pure/md5.nim
lib/nim/pure/memfiles.nim
-lib/nim/pure/mersenne.nim
lib/nim/pure/mimetypes.nim
lib/nim/pure/nativesockets.nim
lib/nim/pure/net.nim
lib/nim/pure/nimprof.nim
lib/nim/pure/nimprof.nim.cfg
-lib/nim/pure/nimtracker.nim
lib/nim/pure/oids.nim
lib/nim/pure/options.nim
lib/nim/pure/os.nim
lib/nim/pure/osproc.nim
-lib/nim/pure/oswalkdir.nim
lib/nim/pure/parsecfg.nim
lib/nim/pure/parsecsv.nim
lib/nim/pure/parsejson.nim
@@ -183,15 +174,12 @@ lib/nim/pure/parsexml.nim
lib/nim/pure/pathnorm.nim
lib/nim/pure/pegs.nim
lib/nim/pure/prelude.nim
-lib/nim/pure/punycode.nim
lib/nim/pure/random.nim
lib/nim/pure/rationals.nim
lib/nim/pure/reservedmem.nim
lib/nim/pure/ropes.nim
lib/nim/pure/segfaults.nim
lib/nim/pure/selectors.nim
-lib/nim/pure/smtp.nim
-lib/nim/pure/smtp.nim.cfg
lib/nim/pure/ssl_certs.nim
lib/nim/pure/ssl_config.nim
lib/nim/pure/stats.nim
@@ -220,13 +208,20 @@ lib/nim/pure/volatile.nim
lib/nim/pure/xmlparser.nim
lib/nim/pure/xmltree.nim
lib/nim/std/
+lib/nim/std/appdirs.nim
+lib/nim/std/assertions.nim
+lib/nim/std/cmdline.nim
lib/nim/std/compilesettings.nim
lib/nim/std/decls.nim
+lib/nim/std/dirs.nim
lib/nim/std/editdistance.nim
lib/nim/std/effecttraits.nim
lib/nim/std/enumerate.nim
lib/nim/std/enumutils.nim
+lib/nim/std/envvars.nim
lib/nim/std/exitprocs.nim
+lib/nim/std/files.nim
+lib/nim/std/formatfloat.nim
lib/nim/std/genasts.nim
lib/nim/std/importutils.nim
lib/nim/std/isolation.nim
@@ -237,33 +232,54 @@ lib/nim/std/jsheaders.nim
lib/nim/std/jsonutils.nim
lib/nim/std/logic.nim
lib/nim/std/monotimes.nim
+lib/nim/std/objectdollar.nim
+lib/nim/std/oserrors.nim
+lib/nim/std/outparams.nim
lib/nim/std/packedsets.nim
+lib/nim/std/paths.nim
lib/nim/std/private/
lib/nim/std/private/asciitables.nim
lib/nim/std/private/bitops_utils.nim
-lib/nim/std/private/dbutils.nim
lib/nim/std/private/decode_helpers.nim
lib/nim/std/private/digitsutils.nim
+lib/nim/std/private/dragonbox.nim
lib/nim/std/private/gitutils.nim
lib/nim/std/private/globs.nim
lib/nim/std/private/jsutils.nim
lib/nim/std/private/miscdollars.nim
+lib/nim/std/private/ntpath.nim
+lib/nim/std/private/osappdirs.nim
+lib/nim/std/private/oscommon.nim
+lib/nim/std/private/osdirs.nim
+lib/nim/std/private/osfiles.nim
+lib/nim/std/private/ospaths2.nim
+lib/nim/std/private/osseps.nim
+lib/nim/std/private/ossymlinks.nim
+lib/nim/std/private/schubfach.nim
lib/nim/std/private/since.nim
lib/nim/std/private/strimpl.nim
+lib/nim/std/private/syslocks.nim
+lib/nim/std/private/threadtypes.nim
lib/nim/std/private/underscored_calls.nim
+lib/nim/std/private/win_getsysteminfo.nim
lib/nim/std/private/win_setenv.nim
lib/nim/std/setutils.nim
lib/nim/std/sha1.nim
lib/nim/std/socketstreams.nim
lib/nim/std/stackframes.nim
+lib/nim/std/staticos.nim
lib/nim/std/strbasics.nim
-lib/nim/std/sums.nim
+lib/nim/std/symlinks.nim
+lib/nim/std/syncio.nim
+lib/nim/std/sysatomics.nim
lib/nim/std/sysrand.nim
lib/nim/std/tasks.nim
lib/nim/std/tempfiles.nim
lib/nim/std/time_t.nim
+lib/nim/std/typedthreads.nim
lib/nim/std/varints.nim
lib/nim/std/vmutils.nim
+lib/nim/std/widestrs.nim
lib/nim/std/with.nim
lib/nim/std/wordwrap.nim
lib/nim/std/wrapnils.nim
@@ -273,11 +289,8 @@ lib/nim/system.nim
lib/nim/system/alloc.nim
lib/nim/system/ansi_c.nim
lib/nim/system/arc.nim
-lib/nim/system/arithm.nim
lib/nim/system/arithmetics.nim
-lib/nim/system/assertions.nim
lib/nim/system/assign.nim
-lib/nim/system/atomics.nim
lib/nim/system/avltree.nim
lib/nim/system/basic_types.nim
lib/nim/system/bitmasks.nim
@@ -288,12 +301,13 @@ lib/nim/system/cgprocs.nim
lib/nim/system/channels_builtin.nim
lib/nim/system/chcks.nim
lib/nim/system/comparisons.nim
+lib/nim/system/compilation.nim
lib/nim/system/coro_detection.nim
lib/nim/system/countbits_impl.nim
+lib/nim/system/ctypes.nim
lib/nim/system/cyclebreaker.nim
lib/nim/system/deepcopy.nim
lib/nim/system/dollars.nim
-lib/nim/system/dragonbox.nim
lib/nim/system/dyncalls.nim
lib/nim/system/embedded.nim
lib/nim/system/exceptions.nim
@@ -301,7 +315,6 @@ lib/nim/system/excpt.nim
lib/nim/system/fatal.nim
lib/nim/system/formatfloat.nim
lib/nim/system/gc.nim
-lib/nim/system/gc2.nim
lib/nim/system/gc_common.nim
lib/nim/system/gc_hooks.nim
lib/nim/system/gc_interface.nim
@@ -310,8 +323,8 @@ lib/nim/system/gc_regions.nim
lib/nim/system/hti.nim
lib/nim/system/inclrtl.nim
lib/nim/system/indexerrors.nim
+lib/nim/system/indices.nim
lib/nim/system/integerops.nim
-lib/nim/system/io.nim
lib/nim/system/iterators.nim
lib/nim/system/iterators_1.nim
lib/nim/system/jssys.nim
@@ -329,11 +342,12 @@ lib/nim/system/orc.nim
lib/nim/system/osalloc.nim
lib/nim/system/platforms.nim
lib/nim/system/profiler.nim
+lib/nim/system/ptrarith.nim
+lib/nim/system/rawquits.nim
lib/nim/system/repr.nim
lib/nim/system/repr_impl.nim
lib/nim/system/repr_v2.nim
lib/nim/system/reprjs.nim
-lib/nim/system/schubfach.nim
lib/nim/system/seqs_v2.nim
lib/nim/system/seqs_v2_reimpl.nim
lib/nim/system/setops.nim
@@ -341,13 +355,11 @@ lib/nim/system/sets.nim
lib/nim/system/stacktraces.nim
lib/nim/system/strmantle.nim
lib/nim/system/strs_v2.nim
-lib/nim/system/syslocks.nim
-lib/nim/system/sysspawn.nim
lib/nim/system/sysstr.nim
+lib/nim/system/threadids.nim
+lib/nim/system/threadimpl.nim
lib/nim/system/threadlocalstorage.nim
-lib/nim/system/threads.nim
lib/nim/system/timers.nim
-lib/nim/system/widestrs.nim
lib/nim/system_overview.rst
lib/nim/windows/
lib/nim/windows/registry.nim
@@ -359,12 +371,8 @@ lib/nim/wrappers/linenoise/README.markdown
lib/nim/wrappers/linenoise/linenoise.c
lib/nim/wrappers/linenoise/linenoise.h
lib/nim/wrappers/linenoise/linenoise.nim
-lib/nim/wrappers/mysql.nim
-lib/nim/wrappers/odbcsql.nim
lib/nim/wrappers/openssl.nim
lib/nim/wrappers/pcre.nim
-lib/nim/wrappers/postgres.nim
-lib/nim/wrappers/sqlite3.nim
lib/nim/wrappers/tinyc.nim
share/doc/nim/
share/doc/nim/advopt.txt
On Mon, Feb 02, 2026 at 07:04:44PM +0100, openbsd-ports@schlecht.dev wrote:
> On 12/18/25 3:16 AM, Alfred Morgan wrote:
> > nim 1.x is no longer supported.
> > ports updated to latest nim 2.2.6 patch attached
> >
> > -alfred
>
> Thanks, but unfortunately it doesn't build with PORTS_PRIVSEP
> enabled, since it's trying to fetch sources from github during
> the build.
> The problem I encountered was with atlas, here:
> https://github.com/nim-lang/Nim/blob/bfc27867187e28dd3b5f2a887450cfc2c465da98/koch.nim#L174
>
> However it's probable that the same goes for the other
> bundleSomethingExe() functions in koch.nim
>
> What will probably work is to add DIST_TUPLE entries for archives of
>
> NimbleStableCommit = "9207e8b2bbdf66b5a4d1020214cff44d2d30df92"
> AtlasStableCommit = "2aa62121b40d580aa2fb27920a37b938d36c5f57"
> ChecksumsStableCommit = "0b8e46379c5bc1bf73d8b3011908389c60fb9b98"
>
> etc., extract those in the correct directories during post-extract
> and patch out the git gymnastics in koch.nim
>
> If you're still interested in maintaining the port, I'll be happy to review.
>
> cheers,
> Volker
>
I'm not a nim user, but I got curious. Here's a draft with Volker's
suggestions. The post-extract is a bit gnarly, but does successfully
build with no network access. Beyond that, Alfred, does it work for you?
Thanks,
Lucas
No comments:
Post a Comment