NetBSD Problem Report #57036

From www@netbsd.org  Thu Sep 29 19:18:32 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 856371A923C
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 29 Sep 2022 19:18:32 +0000 (UTC)
Message-Id: <20220929191830.94BD51A923D@mollari.NetBSD.org>
Date: Thu, 29 Sep 2022 19:18:30 +0000 (UTC)
From: ci4ic4@gmail.com
Reply-To: ci4ic4@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Minor upgrade to lang/nim
X-Send-Pr-Version: www-1.0

>Number:         57036
>Category:       pkg
>Synopsis:       Minor upgrade to lang/nim
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    charlotte
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 29 19:20:00 +0000 2022
>Closed-Date:    Thu Oct 13 22:16:10 +0000 2022
>Last-Modified:  Thu Oct 13 22:16:10 +0000 2022
>Originator:     Chavdar Ivanov
>Release:        pkgsrc -current as of 29/09/2022
>Organization:
CI4 Consulting Ltd
>Environment:
uname -a
NetBSD ymir 9.99.100 NetBSD 9.99.100 (GENERIC) #1: Wed Sep 28 16:13:35 BST 2022  sysbuild@ymir:/home/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Nim 1.6.8 has been released; brief list of updates is as follows:
---
Fixed “Add –gc:arc (or –mm:arc) induce different behavior when using converter” (#19862)
Fixed “Converting unsigned integer to float fails in VM” (#19199)
Fixed “regression(0.20.0 => devel): var params assignment gives silently wrong results in VM” (#15974)
Fixed “genDepend broken for duplicate module names in separate folders” (#18735)
Fixed “Orc booting compiler doesn’t work with newSeq operations” (#19404)
Fixed “hasCustomPragma and getCustomPragmaVal don’t work on fields with backticks” (#20067)
Fixed “Cant use uint64 in case” (#20031)
Fixed “nim jsondoc output is broken” (#20132)
Fixed “Underscores are unnecessarily escaped in db_mysql” (#20153)
Fixed “Invalid codegen when block ends with lent” (#20107)
Fixed “locals doesn’t work with ORC” (#20162)
Fixed “reset does not work on set” (#19967)
Fixed “selectRead and selectWrite are dangerous to use sockets with FD numbers bigger than FD_SETSIZE (1024) on *nixes” (#19973)
Fixed “use-after-free bugs in object variants” (#20305)
Fixed “[ARC] C compiler error when using the result of a template in the subscript operator” (#20303)
Fixed “Calling nullary templates without () doesn’t work inside calls inside other templates” (#13515)
Fixed “[Regression] Incorrect captures of pegs \ident macro in nim 1.6” (#19104)
Fixed “Windows gcc shipped with choosenim 1.6.4 with TLS emulation turned off : The application was unable to start correctly (0xc000007b).” (#19713)
---

Attached is a trivial patch to switch to nim 1.6.8, tested under -current amd64 and latest Ubuntu aarch64.

Perhaps an addition to the list to include the files from the nimsuggested directory is also useful.
>How-To-Repeat:
n/a
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/nim/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile	19 May 2022 01:50:25 -0000	1.27
+++ Makefile	29 Sep 2022 17:18:46 -0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2022/05/19 01:50:25 charlotte Exp $
+# $NetBSD: Makefile,v 1.27 2022/09/99 14:47:25 ci4ic4 Exp $

-DISTNAME=	nim-1.6.6
+DISTNAME=	nim-1.6.8
 CATEGORIES=	lang
 MASTER_SITES=	http://nim-lang.org/download/
 EXTRACT_SUFX=	.tar.xz
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/lang/nim/PLIST,v
retrieving revision 1.14
diff -u -r1.14 PLIST
--- PLIST	21 Nov 2021 16:40:02 -0000	1.14
+++ PLIST	29 Sep 2022 17:18:46 -0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2021/11/21 16:40:02 ryoon Exp $
+@comment $NetBSD$
 bin/nim
 bin/nim-gdb
 bin/nim-gdb.bash
@@ -105,6 +105,7 @@
 nim/compiler/optimizer.nim
 nim/compiler/options.nim
 nim/compiler/packagehandling.nim
+nim/compiler/packages.nim
 nim/compiler/parampatterns.nim
 nim/compiler/parser.nim
 nim/compiler/passaux.nim
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/nim/distinfo,v
retrieving revision 1.23
diff -u -r1.23 distinfo
--- distinfo	19 May 2022 01:50:25 -0000	1.23
+++ distinfo	29 Sep 2022 17:18:46 -0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.23 2022/05/19 01:50:25 charlotte Exp $
+$NetBSD: distinfo,v 1.24 2022/09/29 14:48:25 ci4ic4 Exp $

-BLAKE2s (nim-1.6.6.tar.xz) = 661c60cb971f909d9546b92bfdc7bec425137b50db6fc398e1c5273558e93f4a
-SHA512 (nim-1.6.6.tar.xz) = 6ea8d3f61adae48184dd0e3ac393296fd3bd5ead818e7dee949f43eccbd0b6229ebfc474353ddd63cc734f82c3247998fbfe88362061983f978ad8d0ab7fa677
-Size (nim-1.6.6.tar.xz) = 5149956 bytes
+BLAKE2s (nim-1.6.8.tar.xz) = fb28347e9d7db6227ace68ad676695fd6085d1e545319d4f4935468de0064b8d
+SHA512 (nim-1.6.8.tar.xz) = dd046dd393136fdcb78f463e267756bdb990b08e80e3a8be7fec1995b47a930447468e12bb9a59db6ec5546117f62ff4ccd032959879ef2d1d06a7bc5c438f83
+Size (nim-1.6.8.tar.xz) = 5219880 bytes
 SHA1 (patch-bin_nim-gdb) = 0d4e9ae4cc8687ca7821891b63808fa1d175069c

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->charlotte
Responsible-Changed-By: charlotte@NetBSD.org
Responsible-Changed-When: Thu, 29 Sep 2022 21:10:00 +0000
Responsible-Changed-Why:
I am the current package MAINTAINER


State-Changed-From-To: open->analyzed
State-Changed-By: charlotte@NetBSD.org
State-Changed-When: Thu, 29 Sep 2022 21:10:00 +0000
State-Changed-Why:
The suggested patch LGTM, we just need to apply it


State-Changed-From-To: analyzed->feedback
State-Changed-By: charlotte@NetBSD.org
State-Changed-When: Thu, 29 Sep 2022 22:08:39 +0000
State-Changed-Why:
The changes have been tested on NetBSD/amd64 9.99.99


State-Changed-From-To: feedback->closed
State-Changed-By: charlotte@NetBSD.org
State-Changed-When: Thu, 13 Oct 2022 22:16:10 +0000
State-Changed-Why:
The actual update to Nim has been applied


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.