From nobody Tue Aug 08 05:30:15 2023 X-Original-To: ports-bugs@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 4RKhbX1lpxz4qD9y for ; Tue, 8 Aug 2023 05:30:16 +0000 (UTC) (envelope-from bugzilla-noreply@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 4RKhbW67xgz3XCY for ; Tue, 8 Aug 2023 05:30:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691472615; 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=JUV7N4rZG738zpFZT0eEZt+D9KzXY8rOSNEJFJlek8Y=; b=QyGMpI5VdJ+1Q6w6kNBTCnxoFxOYp+s0z1AM87F29O/Gsqdkbzk1+Wc2r9op/SStv83Nr1 5X1MFOg5cZdB0xw/hr0TVH2Y8rEdxPiT30TI9ODu9r+EfjMaEZIsRN0B4E0LFiLRD6csnb +l7nx1bHw8O4ATkxM9VFS3UT//YBjGvRPOpoH1Xv4TJoGS/2NqPo8DmCFBGUgcl+0pZBTq 0C3rWaWvw6Q+6hvQxcmHOOIEzcFwJKCOurrVJNLjMeeKRClM7cxYk9OmXyg4nsh7dRQNZj P/cfSM35wH23gUlG1HRCtEZmgeNNN+5hTInVJFIs0sEG/d0XuRMqm7GuL8gV6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691472615; a=rsa-sha256; cv=none; b=mBLnnn/rF0B3wEFzJ3rxrqpEgzMbU/zW8XdVpnctQuETF+D6eEZdVARQBztTUA6RVHQPif bVq0wjKbDyySglY1MUaPJI3DzYUsl7er5+pD0zyDIUSHciYzaXjwnF5TU/Ybl7mMwvs9LI 2nyB2SKpe3ubGROXYWbPOZK56CK5e5+6BBv3+8bMkRN1xaKwWGvwf93MbMhzRnOf3wuEYP xZRHWI96CQ7vwmKSSl7Lke9mt/HITK3C/XfkoJSNYLQTs3EtGVFsCtfSQ912XSUreSb4Hf njM0/2tLWLMxv7yM7meKeEYRdvqs5b6Q1IS/Beb6pssrMQSJqBqljcIljbPX4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4RKhbW5C7mz6bT for ; Tue, 8 Aug 2023 05:30:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3785UFOh094238 for ; Tue, 8 Aug 2023 05:30:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3785UFnn094237 for ports-bugs@FreeBSD.org; Tue, 8 Aug 2023 05:30:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 273008] lang/nim Upgrade to 2.0.0 Date: Tue, 08 Aug 2023 05:30:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: thindil@laeran.pl.eu.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273008 Bug ID: 273008 Summary: lang/nim Upgrade to 2.0.0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: thindil@laeran.pl.eu.org CC: ports@nicandneal.net Flags: maintainer-feedback?(ports@nicandneal.net) CC: ports@nicandneal.net Created attachment 243951 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243951&action= =3Dedit Nim 2.0 This is a proposition to upgrade Nim to version 2.0. Same as with the version of the language, the patch contains breaking changes. That's why the post is so long. ;) 1. I've removed most of the old patches. They are now in upstream and no lo= nger needed. Additionally, some of them were blocking build Nim. Instead, I've a= dded a patch for handling configuration's files. I need to look closer at the is= sue, and I will try later send a better patch upstream. 2. Nim itself changed, in a breaking way, how its files are stored. I've tr= ied to follow the language guide about packaging, with some typical for FreeBSD exceptions: - Configuration files are still in /usr/local/etc/nim directory - Documentation files are still in /usr/local/share/doc/nim 3. The structure of files in /usr/local/lib/nim directory was changed as suggested by the language's packaging guide. All these files are needed for compiler to work, even if they only CSS files. The new structure is complet= ely different from previous one. Thus, I think it would be good to find a way to force reinstall the package instead of just upgrading. Especially that ther= e is one more problem. 4. Nimble tool is now the part of the Nim package, previously was a separat= ed package in FreeBSD. The reason are breaking changes in Nim language librari= es. Nimble now has external dependencies and trying to build it as a separated package ends in recursion: Nimble needs Nimble. ;) It can be build only with the compiler source code, as it contains needed libraries. That's the reason why I added Nimble as an installation conflict for this version of Nim. Aft= er some time we can mark Nimble package as deprecated and remove completely. 5. Related to the previous point. I removed the option to enable or disable= to build tools. Now they always build. As mentioned above, that's the only way= to build Nimble, which is needed to build practically almost every program wri= tten in Nim. Also, many external tools assume that these tools are installed and require them to work. Good example: Nim support for almost every editor or = IDE. 6. New dependencies for the port, gmake is required to build. Git, on 99% t= oo, I think, the port now also requires network during build. Didn't test witho= ut them. 7. I think I fixed the problem when someone couldn't generate a Nim package documentation if the Nim documentation wasn't installed. Now all needed fil= es are copied to /usr/local/lib/nim directory no matter do doc option is selec= ted or not. Generally, please test the port and check if everything works. It works for= me, but I'm not everyone. :) --=20 You are receiving this mail because: You are the assignee for the bug.=