From nobody Wed Jun 19 05:34:29 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W3skY4tH1z5NyFS; Wed, 19 Jun 2024 05:34:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W3skY31ssz54Vp; Wed, 19 Jun 2024 05:34:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718775269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CMk9YUQveTjnOA31ttVZmPGWV4+D/X7JdAWXmaOMl4U=; b=ceKSrbxHM6PMNqg4XeHudmVw9LI3iNty2uzulv6dTTgWBxVxxr4QcazL40jDEbKPPcLC+G zgGdTyDCgp5wNG4U2WT7+iAKwFILwfA9CH5exGt68LcFkOT1VDDRNLC65Wg3Lsf9cV/iTg VbXj2A6wXHKe1wdb0rJKFr8f+2rRROuqh6CgIK+2Do7IqExL8FSqLfHphUWDeVcphA7jK3 buejO5HCZIg6eYe7vhLV+jO31rm63yVWxO1wO7je+0Y/ZXiA/hcIu+bAbYYhBhZJBRhIUI 4KQle2N9JR8i+DCpW3XHQ/DcZH/7pzm4GVQvuw4gf+X92d15rseTbewXN26mzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718775269; a=rsa-sha256; cv=none; b=aCRUg4/Spb8emQ+2T7FVEYBIFf3/KwP0lj/CjXHDvfrBKkD9cscGXexlMAnh2TswiIiHt0 LnRE5/oiCB5ufNWQgk539xeQxnTNLWpDhuNuq8bTtuy7HJDZ06RElTVsPtk8jnv98yIaE8 jP61PzIQEYtpOL2sII7xbhx/i/eXWEt8NVPfrRes1sUCrWXqSThtzm6/zV83id0xcvcrWM pqNGmMXnIj+3G/XImcq9kFHnGUdM8ro1uEDv+69y4Al/ly3CtJoh+VaAvMwcpExvjahu3k d/ONzZJ60PP9zGIzK4RIZcwOdJue5T+av/RNsoPvd3tKVRtWENaiV70Gf07uDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718775269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CMk9YUQveTjnOA31ttVZmPGWV4+D/X7JdAWXmaOMl4U=; b=VwZnzFZndODlu8iAoavM4QBXacbJ6DGINo3VnLmry1uzL4w9A+dugMRLzkj86UP491Z+2T 0XL8I2s6aTsbi2UEYcXi0lH+ik8uOhw1b2r3ZtSTMkSJLZ4IGqhrpTZe4NKwx9POSGxMoS 4/krFjUCEC9P7oGfOchsnRRexsm076FK2Zlpk778f8sXilJQKYSHOsMoeoCMTl7QMU7bCn BX2Nol88wdwOuIs+ZH3R5Xv6TZtRexwphvPiiAop3KWyLhjy5YzlRIWXyygiolYWx4JQ9+ WZ75RcMJeA/TktURyOnrOW0EcFT4Cs8d1gb1/4YUl3nb2Rbf+hOEhZJ95eZgcQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W3skY2MNgzVdc; Wed, 19 Jun 2024 05:34:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45J5YTSa074046; Wed, 19 Jun 2024 05:34:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45J5YTnv074043; Wed, 19 Jun 2024 05:34:29 GMT (envelope-from git) Date: Wed, 19 Jun 2024 05:34:29 GMT Message-Id: <202406190534.45J5YTnv074043@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Wen Heping Subject: git: 0015adf8aaf2 - main - lang/nim: Update to 2.0.6 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0015adf8aaf20e090dcf8cba8c66288d1932c384 Auto-Submitted: auto-generated The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=0015adf8aaf20e090dcf8cba8c66288d1932c384 commit 0015adf8aaf20e090dcf8cba8c66288d1932c384 Author: Wen Heping AuthorDate: 2024-06-19 02:31:53 +0000 Commit: Wen Heping CommitDate: 2024-06-19 05:34:06 +0000 lang/nim: Update to 2.0.6 PR: 279832 Reported by: ports@nicandneal.net(maintainer) --- lang/nim/Makefile | 2 +- lang/nim/distinfo | 6 +++--- lang/nim/files/patch-koch.nim | 42 +++++++++++++++++++++++++----------------- 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/lang/nim/Makefile b/lang/nim/Makefile index 3dc392565732..1fe4a63d97ee 100644 --- a/lang/nim/Makefile +++ b/lang/nim/Makefile @@ -1,5 +1,5 @@ PORTNAME= nim -DISTVERSION= 2.0.4 +DISTVERSION= 2.0.6 CATEGORIES= lang MASTER_SITES= https://nim-lang.org/download/ diff --git a/lang/nim/distinfo b/lang/nim/distinfo index a140b9864a9e..3db7bb31f01d 100644 --- a/lang/nim/distinfo +++ b/lang/nim/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1713362683 -SHA256 (nim-2.0.4.tar.xz) = 71526bd07439dc8e378fa1a6eb407eda1298f1f3d4df4476dca0e3ca3cbe3f09 -SIZE (nim-2.0.4.tar.xz) = 7620508 +TIMESTAMP = 1718761713 +SHA256 (nim-2.0.6.tar.xz) = fbcd5d731743adec2b3bb9bcf6f5fd993ed11b250f957166bebf328f307cba6a +SIZE (nim-2.0.6.tar.xz) = 7668088 diff --git a/lang/nim/files/patch-koch.nim b/lang/nim/files/patch-koch.nim index 87fb31e33dfb..bf06daa94b6d 100644 --- a/lang/nim/files/patch-koch.nim +++ b/lang/nim/files/patch-koch.nim @@ -1,6 +1,6 @@ ---- koch.nim.orig 2023-08-01 01:01:01 UTC +--- koch.nim.orig 2024-06-18 13:26:19 UTC +++ koch.nim -@@ -145,28 +145,28 @@ proc csource(args: string) = +@@ -146,30 +146,30 @@ proc csource(args: string) = "--main:compiler/nim.nim compiler/installer.ini $1") % [args, VersionAsString, compileNimInst]) @@ -19,18 +19,22 @@ - commit = commit, allowBundled = true) - cloneDependency(distDir / "nimble" / distDir, "https://github.com/nim-lang/checksums.git", - commit = ChecksumsStableCommit, allowBundled = true) # or copy it from dist? +- cloneDependency(distDir / "nimble" / distDir, "https://github.com/nim-lang/sat.git", +- commit = SatStableCommit, allowBundled = true) - # installer.ini expects it under $nim/bin - nimCompile("dist/nimble/src/nimble.nim", -- options = "-d:release --mm:refc --noNimblePath " & args) +- options = "-d:release -d:nimNimbleBootstrap --mm:refc --noNimblePath " & 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) +# cloneDependency(distDir / "nimble" / distDir, "https://github.com/nim-lang/checksums.git", +# commit = ChecksumsStableCommit, allowBundled = true) # or copy it from dist? ++# cloneDependency(distDir / "nimble" / distDir, "https://github.com/nim-lang/sat.git", ++# commit = SatStableCommit, allowBundled = true) +# # installer.ini expects it under $nim/bin +# nimCompile("dist/nimble/src/nimble.nim", -+# options = "-d:release --mm:refc --noNimblePath " & args) ++# options = "-d:release -d:nimNimbleBootstrap --mm:refc --noNimblePath " & args) -proc bundleAtlasExe(latest: bool, args: string) = - let commit = if latest: "HEAD" else: AtlasStableCommit @@ -49,7 +53,7 @@ proc bundleNimsuggest(args: string) = nimCompileFold("Compile nimsuggest", "nimsuggest/nimsuggest.nim", -@@ -203,8 +203,8 @@ proc bundleChecksums(latest: bool) = +@@ -206,8 +206,8 @@ proc zip(latest: bool; args: string) = proc zip(latest: bool; args: string) = bundleChecksums(latest) @@ -60,7 +64,7 @@ bundleNimsuggest(args) bundleNimpretty(args) bundleWinTools(args) -@@ -213,15 +213,15 @@ proc zip(latest: bool; args: string) = +@@ -216,15 +216,15 @@ proc zip(latest: bool; args: string) = exec("$# --var:version=$# --var:mingw=none --main:compiler/nim.nim zip compiler/installer.ini" % ["tools/niminst/niminst".exe, VersionAsString]) @@ -83,7 +87,7 @@ nimexec("cc -r $2 --var:version=$1 --var:mingw=none --main:compiler/nim.nim scripts compiler/installer.ini" % [VersionAsString, compileNimInst]) exec("$# --var:version=$# --var:mingw=none --main:compiler/nim.nim xz compiler/installer.ini" % -@@ -257,8 +257,8 @@ proc testTools(args: string = "") = +@@ -260,8 +260,8 @@ proc nsis(latest: bool; args: string) = proc nsis(latest: bool; args: string) = bundleChecksums(latest) @@ -94,7 +98,7 @@ bundleNimsuggest(args) bundleWinTools(args) # make sure we have generated the niminst executables: -@@ -521,42 +521,42 @@ proc icTest(args: string) = +@@ -524,43 +524,43 @@ proc icTest(args: string) = exec(cmd) inc i @@ -147,25 +151,29 @@ [hostOS, hostCPU, $int.sizeof, $float.sizeof, $cpuEndian, getCurrentDir()] -proc installDeps(dep: string, commit = "") = -+#proc installDeps(dep: string, commit = "") = - # the hashes/urls are version controlled here, so can be changed seamlessly - # and tied to a nim release (mimicking git submodules) +- # the hashes/urls are version controlled here, so can be changed seamlessly +- # and tied to a nim release (mimicking git submodules) - var commit = commit - case dep - of "tinyc": - if commit.len == 0: commit = "916cc2f94818a8a382dd8d4b8420978816c1dfb3" - cloneDependency(distDir, "https://github.com/timotheecour/nim-tinyc-archive", commit) - else: doAssert false, "unsupported: " & dep +- # xxx: also add linenoise, niminst etc, refs https://github.com/nim-lang/RFCs/issues/206 ++#proc installDeps(dep: string, commit = "") = ++# # the hashes/urls are version controlled here, so can be changed seamlessly ++# # and tied to a nim release (mimicking git submodules) +# var commit = commit +# case dep -+ #of "tinyc": -+ # if commit.len == 0: commit = "916cc2f94818a8a382dd8d4b8420978816c1dfb3" -+ # cloneDependency(distDir, "https://github.com/timotheecour/nim-tinyc-archive", commit) ++# of "tinyc": ++# if commit.len == 0: commit = "916cc2f94818a8a382dd8d4b8420978816c1dfb3" ++# cloneDependency(distDir, "https://github.com/timotheecour/nim-tinyc-archive", commit) +# else: doAssert false, "unsupported: " & dep - # xxx: also add linenoise, niminst etc, refs https://github.com/nim-lang/RFCs/issues/206 ++# # xxx: also add linenoise, niminst etc, refs https://github.com/nim-lang/RFCs/issues/206 proc runCI(cmd: string) = -@@ -679,18 +679,18 @@ proc showHelp(success: bool) = + doAssert cmd.len == 0, cmd # avoid silently ignoring +@@ -682,18 +682,18 @@ proc showHelp(success: bool) = quit(HelpText % [VersionAsString & spaces(44-len(VersionAsString)), CompileDate, CompileTime], if success: QuitSuccess else: QuitFailure) @@ -191,7 +199,7 @@ localDocsOut = "" skipIntegrityCheck = false while true: -@@ -726,34 +726,34 @@ when isMainModule: +@@ -729,34 +729,34 @@ when isMainModule: of "distrohelper": geninstall() of "install": install(op.cmdLineRest) of "testinstall": testUnixInstall(op.cmdLineRest)