lang/nim: fix on powerpc64 countProcessors() reads the 4-byte hw.ncpu into an 8-byte int, which puts it in the high word on big-endian, so any nim c without --parallelBuild tried to size its build state for 2^38 CPUs and got OOM-killed. That is also why DOCS was turned off on powerpc64 in 2020, so enable it again. Also take the upstream fix for the shr constant folding on big-endian and apply it to the pre-generated bootstrap compiler too.943322cf87
Port details
lang/nim2.2.12_1
Nim programming language
- Maintainer
- ports@nicandneal.net
- Packages
- nim 2.2.12_1
- Upstream
- up to date
- CPE
nim-lang:nimfrom the port- WWW
- https://nim-lang.org/
- Links
- cgit · VuXML
Unaddressed (0) · The CVE record lists this version as affected, no VuXML entry names the CVE
None. There is no CVE without a VuXML entry for this version.
VuXML only (0) · listed, port not fixed yet
None.
pkg audit reports nothing for this version.Fixed (0)
No VuXML entries for this package.
Commits (72)
lang/nim: Update to 2.2.12 Changes: https://nim-lang.org/blog/2026/09/08/nim-2212.html PR: 298340faa402de5d
lang/nim: Update 2.2.8 => 2.2.10 Release Notes: https://nim-lang.org/blog/2026/04/24/nim-2210.html PR: 295192 Reported by: Neal Nelson <ports@nicandneal.net> (maintainer) Approved by: osa (mentor) MFH: 2026Q21861fd258a
lang/nim: Update 2.2.6 => 2.2.8 Release Notes: https://nim-lang.org/blog/2026/02/23/nim-228.html PR: 293487 MFH: 2026Q1c505631258
lang/nim: Update 2.2.4 => 2.2.6 Release Notes: https://nim-lang.org/blog/2025/10/31/nim-226.html While here reduce number of MKDIR, INSTALL_PROGRAM and INSTALL_SCRIPT. PR: 2907971f750229c1
lang/nim: Remove deprecation The test dependency is node instead of deprecated node18 so remove DEPRECATED. PR: 288078 Approved by: ports@nicandneal.net (maintainer)961717d096
all: expire (indirect) consumers of www/node18 on 2025-09-01fc88627e29
lang/nim: Upgrade to 2.2.4 PR: 286651 Reported by: Neal Nelson <ports@nicandneal.net>ffc1584531
lang/nim: update to 2.2.2 Changelog: https://nim-lang.org/blog/2025/02/05/nim-222.html PR: 28473987ee9f493e
lang/nim: update to 2.2.0 Changelog: https://nim-lang.org/blog/2024/10/02/nim-220-2010.html PR: 281855224e5262c5
lang/nim: Upgrade from 2.0.6 to 2.0.8
Major improvements in this release:
Nim’s allocator is now much more stable with --threads:on.
Better support for gcc14.
Optimized setLen(0) for uninitialized strings and seqs.
Optimized move when used with --mm:refc.
These reported issues were fixed:
Fixed “[Semi-regression] C code contains backtick`gensym” (#23711)
Fixed “setLen(0) allocates memory causing performance regression” (#23742)
Fixed “Sigsegv on std/tasks destructor” (#23725)
Fixed “genericAssign does not take care of the importC variables” (#9940)
Fixed “move(table) does not move the table” (#23759)
Fixed “Local variables can be prematurely moved to closure, causing use-after-move” (#23748)
Fixed “tvatiteropenarray test fails with c++” (#19977)
Taken from:
https://nim-lang.org/blog/2024/07/03/version-208-released.html
Full Changelog:
https://github.com/nim-lang/Nim/compare/v2.0.6...v2.0.8
PR: 280142
Approved by: Neal Nelson (maintainer)fa8e969908lang/nim: Update to 2.0.6 PR: 279832 Reported by: ports@nicandneal.net(maintainer)0015adf8aa
lang/nim: Update to 2.0.4 Changelog: https://nim-lang.org/blog/2024/04/16/versions-1620-204-released.html PR: 278410 Approved by: tcberner (mentor, implicit)0b1d2574e3
lang/nim: remove ELFv1 supportfa1853a310
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree - Remove all references to defunct ARCH arm - Remove all references to defunct ARCH sparc64 - Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64 ARCH - Remove sysutils/afbinit requires defunct sparc64 ARCH - Remove all references to bktr driver - Remove all references to defunct FreeBSD_12 - Remove all references to OSVERSION/OSREL corresponding to 12 - Remove conditionals in Mk/Uses/cabal.mk - Remove sparc reference from Mk/Uses/qt-dist.mk - Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64 - Remove BROKEN_FreeBSD_12* from: - Remove OpenSSL patches from: - Remove conditional flags for OSVERSION >= 1300000 to fixed flags. Also move conditional flags for non sparc64/arm ARCH to fixed flags. Reviewed by: brooks, jbeich, rene, salvadore Differential Revision: https://reviews.freebsd.org/D42068bbab7f59e9
lang/nim: Update version 2.0.0=>2.0.2 - Move pkg-message to SUB_FILES and replace hard coded PREFIX [1] - Convert pkg-mesage to UCL format [1] Changelog: https://nim-lang.org/blog/2023/12/19/versions-1618-202-released.html PR: 275942 Approved by: submitter is maintainer, portmgr(blanket) [1]40956162ac
lang/nim: fix plist - Fix problems with optional parts of the pkg-plist of lang/nim. - Install an extra set of libraries needed by devel/nimble in order to build. PR: 2734829fd4b39874
lang/nim: Upgrade to 2.0.0 ChangeLog: https://nim-lang.org/blog/2023/08/01/nim-v20-released.html PR: 273423 Reported by: ports@nicandneal.net (maintainer)3a22c2fedb
lang/nim: Upgrade to 1.6.14 https://nim-lang.org/blog/2023/06/27/version-1614-released.html PR: 272268a3f72bf4c5
lang/nim: Fix invalid path to documentation in compiler source code Use /usr/local/share/doc/nim instead of ../doc. PR: 270858 Reported by: thindil@laeran.pl.eu.org931d277e9f
lang/nim: Upgrade to 1.6.12 ChangeLog: https://nim-lang.org/blog/2023/03/10/version-1612-released.html PR: 270244 27008 Reported by: ports@nicandneal.net (maintainer)0809f75a32
lang/nim: Update to 1.6.10 ChangeLog: https://nim-lang.org/blog/2022/11/23/version-1610-released.html PR: 267984 MFH: 2022Q4 (bugfixes)415aa8df9d
lang/nim: Update to 1.6.8 ChangeLog: https://nim-lang.org/blog/2022/09/27/version-168-released.html PR: 26667297fa651b91
Remove WWW entries moved into port Makefiles Commit b7f05445c00f has added WWW entries to port Makefiles based on WWW: lines in pkg-descr files. This commit removes the WWW: lines of moved-over URLs from these pkg-descr files. Approved by: portmgr (tcberner)fb16dfecae
Add WWW entries to port Makefiles It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
lang: remove 'Created by' lines A big Thank You to the original contributors of these ports: * Aaron Dalton <aaron@FreeBSD.org> * Adam Weinberger <adamw@FreeBSD.org> * Akinori MUSHA aka knu <knu@idaemons.org> * Alex Dupre <ale@FreeBSD.org> * Alexey Dokuchaev <danfe@FreeBSD.org> * Alonso Cardenas Marquez <acm@FreeBSD.org> * Andreas Klemm <andreas@klemm.gtn.com> * Andrew Pantyukhin <infofarmer@FreeBSD.org> * Andrey Zakhvatov * Anton Berezin <tobez@FreeBSD.org> * Anton Berezin <tobez@tobez.org> * Anton Shterenlikht * Ashish SHUKLA <ashish@FreeBSD.org> * Bob Eager <bob@eager.cx> * Bruce M Simpson * Bruce M. Simpson * Christoph Mallon <christoph.mallon@gmx.de> * Christopher Elkins <chrise@scardini.com> * Christopher Key <cjk32@cam.ac.uk> * Chuck Robey <chuckr@FreeBSD.org> * Cyrille Lefevre <clefevre@citeweb.net> * Dan Rench <citric@cubicone.tmetic.com> * Danilo Egea Gondolfo <danilogondolfo@gmail.com> * Dario Freni <saturnero@gufi.org> * David Kalliecharan <dave@dal.ca> * David Naylor <dbn@FreeBSD.org> * David Naylor <dbn@dragon.local> * David O'Brien (obrien@NUXI.com) * David O'Brien (obrien@NUXI.org) * David O'Brien <obrien@NUXI.org> * David O'Brien <obrien@cs.ucdavis.edu> * Dereckson <dereckson@gmail.com> * Devon H. O'Dell <devon.odell@gmail.com> * Dmitry Sivachenko <demon@FreeBSD.org> * Don Croyle <croyle@gelemna.org> * Douglas Anestad <yotta@dougdidit.com> * Edwin Groothuis (edwin@mavetju.org) * Edwin Groothuis <edwin@mavetju.org> * Eugene Ossintsev * Frank Fischer * Frank Gruender <elwood@mc5sys.in-berlin.de> * Frederic Cambus * Gea-Suan Lin <gslin@gslin.org> * Gerald Pfeifer <gerald@FreeBSD.org> * Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> * GreenDog <fiziologus@gmail.com> * Gustau Perez i Querol <gustau.perez@gmail.com> * Guy Antony Halse <guy@rucus.ru.za.za> * Herve Quiroz <hq@FreeBSD.org> * Hye-Shik Chang * Hye-Shik Chang <perky@fallin.lv> * Hye-Shik Chang <perky@python.or.kr> * Iblis Lin <iblis@hs.ntnu.edu.tw> * James Bailie <jimmy@mammothcheese.ca> * James FitzGibbon <jfitz@FreeBSD.org> * Jean-Sébastien Pédron <dumbbell@FreeBSD.org> * Jean-Yves Lefort <jylefort@FreeBSD.org> * Jeff Brown <jabrown@caida.org> * Jeremy Norris <ishmael27@home.com> * Jing-Tang Keith Jang <keith@FreeBSD.org> * John Hein <jhein@symmetricom.com> * John Marino <marino@FreeBSD.org> * John Merryweather Cooper * John Merryweather Cooper <coop9211@uidaho.edu> * John Merryweather Cooper et al * Joseph Koshy <jkoshy@FreeBSD.org> * Josh Elsasser <jre@vineyard.net> * Josh Gilliam <josh@quick.net> * Julian H. Stacey <jhs@FreeBSD.org> * Julian Stecklina * Jyun-Yan You <jyyou@cs.nctu.edu.tw> * Katsuji ISHIKAWA <katsuji.ishikawa@gmail.com> * Kimura Fuyuki <fuyuki@hadaly.org> * Kimura Fuyuki <fuyuki@mj.0038.net> * Kimura Fuyuki <fuyuki@nigredo.org> * Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp> * Kubilay Kocak <koobs@FreeBSD.org> * Lars Thegler <lth@FreeBSD.org> * Lev Walkin <vlm@lionet.info> * Li-Wen Hsu <lwhsu@FreeBSD.org> * Mahdi Mokhtari <mokhi64@gmail.com> * Marcin Cieslak <saper@SYSTEM.PL> * Martin Matuska <mm@FreeBSD.org> * Matthew Hunt <mph@FreeBSD.org> * Michael Butschky <butsch@computi.erols.com> * Michael Johnson <ahze@FreeBSD.org> * Mitsuru YOSHIDA <mitsuru@riken.jp> * Muhammad Moinur Rahman <5u623l20@gmail.com> * Neal Nelson <ports@nicandneal.net> * Nicola Vitale <nivit@FreeBSD.org> * Nils M Holm <nmh@t3x.org> * Oliver Braun <obraun@informatik.unibw-muenchen.de> * Oliver Breuninger <ob@seicom.NET> * Patrick Li <pat@databits.net> * Pawel Worach <pawel.worach@gmail.com> * Pedro F. Giffuni <giffunip@asme.org> * Pedro Giffuni * Pedro Giffuni <giffunip@asme.org> * Pete French <pete@twisted.org.uk> * Peter Schuller <peter.schuller@infidyne.com> * Peter van Heusden <pvh@egenetics.com> * Phillip Neumann <pneumann@gmail.com> * Piotr Kubaj <pkubaj@anongoth.pl> * Po-Chuan Hsieh <sunpoet@FreeBSD.org> * Pontus Stenetorp <ninjin@kth.se> * Ralf S. Engelschall <rse@engelschall.com> * Rick van der Zwet <rick@wzoeterwoude.net> * Rob Zinkov * Roland Jesse <roland.jesse@gmx.net> * Romain Tartiere <romain@blogreen.org> * Ryan Steinmetz <zi@FreeBSD.org> * Sahil Tandon <sahil@tandon.net> * Sergei Kolobov <sergei@kolobov.com> * Sergey A. Osokin <osa@FreeBSD.org> * Sergey Skvortsov <skv@protey.ru> * Simon Marlow <simonmar@microsoft.com> * Simun Mikecin <numisemis@yahoo.com> * Stanislav Sedov <ssedov@mbsd.msk.ru> * Stephen Weeks <sweeks@sweeks.com> * Steven G. Kargl * Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> * Sylvio Cesar <sylvio@FreeBSD.org> * Thomas Gellekum <tg@FreeBSD.org> * Timothy Beyer <beyert@cs.ucr.edu> * Timothy Bourke <timbob@bigpond.com> * Tom Judge <tj@FreeBSD.org> * Veniamin Gvozdikov <vg@FreeBSD.org> * Vitaly Magerya <vmagerya@gmail.com> * Wen Heping <wenheping@gmail.com> * Wen Heping <wenhping@gmail.com> * Wes Peters <wes@softweyr.com> * Ying-Chieh Liao <ijliao@FreeBSD.org> * Yukihiro Nakai <Nakai@technologist.com> * Yukihiro Nakai <nakai@FreeBSD.org> * Zach Garner <zach@neurosoft.org> * aaron@FreeBSD.org * andrewb@cs.cmu.edu * arved * chinsan * chuckr * dd * erik@smluc.org * gahr * gahr@FreeBSD.org * gpalmer * hsu * ijliao * jasone * jkh * jkoshy * jmacd * jmacd@FreeBSD.org * jmz * js@jeannot.org * jseger@FreeBSD.org * kappa@FreeBSD.org.ua * kbyanc * msmith@gsoft.com.au * mutoh@openedu.org * netchild@FreeBSD.org * patrick * pst * rene@FreeBSD.org * ruslan@shevchenko.kiev.ua * stas * tobez With hat: portmgrf98ae56653
lang/nim: Update to 1.6.6 PR: 263796 Reported by: ports@nicandneal.net(maintainer)c503a902a7
lang/nim: Update to 1.6.4 Changelog: https://nim-lang.org/blog/2022/02/08/version-164-released.html PR: 261865fcf3010d75
lang/nim: Upgrade to 1.6.2 Release notes: https://nim-lang.org/blog/2021/12/17/version-162-released.html PR: 260610148623c445
lang/nim: fix build on powerpc build.sh was misdetecting powerpc for powerpc64.c62f15abad
lang/nim: Update to 1.6.0 * Switch to DISTVERSION * Pet portlint and portclippy * Reformat Makefile with portfmt PR: 259341a516093a0a
lang/nim: Add CPE information Approved by: portmgr (blanket)5c186bc000
lang/nim: update Nim programming language to version 1.4.8. PR: 256163 Submitted by: maintainer3aa0f5119b
lang/nim: Upgrade to 1.4.6 ChangeLog: https://nim-lang.org/blog/2021/04/15/versions-146-and-1212-released.html PR: 255120 Reported by: ports@nicandneal.net (maintainer)8908c85811
Remove # $FreeBSD$ from Makefiles.305f148f48
- Update to 1.4.4 PR: 253869 Submitted by: ports@nicandneal.net(maintainer)2db3c2ab68
lang/nim: disable DOCS for powerpc64 It resulted in infinite memory allocation.0109871be7
lang/nim: Upgrade to 1.4.2 ChangeLog: https://nim-lang.org/blog/2020/12/01/version-142-released.html PR: 251532 Submitted by: ports@nicandneal.net (maintainer)6f577a84f5
lang/nim: Update 1.4 for unexpected change in distfile and include nimble For some reason the distribution file of nim 1.4 has changed on the nim web site without a change in version. Two things have been added to the distribution and are no longer distributed from their own github repository: - fusion - nimble PR: 250881 Submitted by: Neal Nelson <ports@nicandneal.net> (maintainer)6b430afb93
lang/nim: Update to 1.4.0 - Update to 1.4.0 - Add a workaround to build doc in poudriere - Remove patch-compiler_docgen.nim (fixed upstream) - Add patch-koch.nim to disable Fusion build Release notes: - https://nim-lang.org/blog/2020/10/16/version-140-released.html PR: 250458 Submitted by: Neal Nelson (maintainer)4f3529bae7
Clean up some things Reported by: portscan77985eaf1c
lang/nim: fix build on powerpc64 elfv1 Now newer GCC is required.9ad316662e
lang/nim: Fix cssSource for nim doc
Nim doc expected to find nimdoc.css in ${PREFIX}/doc/nimdoc.css but our doc directory is ${PREFIX}/share/doc/nim/
PR: 248814
Approved by: Neal Nelson (maintainer)d757360537lang/nim: Update to 1.2.6 Changelog: - https://nim-lang.org/blog/2020/07/30/versions-126-and-108-released.html PR: 248390 Approved by: Neal Nelson (maintainer)662f316f94
lang/nim: Update to 1.2.4 PR: 247488, 247193 Approved by: Neal Nelson (maintainer), tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D25875a2311f88b7
lang/nim: Fix the build of lang/nim within poudriere: - Make sure we use specified build caches for all build commands (this was causing the poudriere testport to fail for the tools build). - Ensure that devel/nimble is not built as part of this port by using the koch toolsToNimble command instead of koch tools. If left to it's own devices the koch tools command will download nimble from git and build it itself. PR: 245789 Submitted by: Neal Nelson Reviewed by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D24585e648893bed
lang/nim: Update to 1.2.0
- Remove files/patch-koch.nim (This patch is not needed to build nim and tools)
- Update files/patch-install.sh and files/patch-config-nim.cfg
- Unbreak arm (fixed upstream) [1]
- Add all optional tools
- Order pkg-plist
- Move USES (pet portlint)
[1] https://github.com/nim-lang/Nim/pull/13822
Changelog:
- https://nim-lang.org/blog/2020/04/03/version-120-released.html
PR: 245328
Approved by: tcberner (mentor), Neal Nelson (maintainer)
Differential Revision: https://reviews.freebsd.org/D242944dba87e83clang/nim: Update to 1.0.6 - Update to 1.0.6 Changelog: - https://github.com/nim-lang/Nim/blob/version-1-0/changelogs/changelog_1_0_6.md PR: 243760 Submitted by: Neal Nelson (maintainer) Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D23770d5a6eaf08e
lang/nim: Update tp 1.0.4 PR: 242450 Submitted by: Neal Nelson <ports@nicandneal.net> (maintainer)d2ddb8e784
lang/nim: Remove BROKEN for powerpc64 Fix build on powerpc64 elfv1 and elfv2. PR: 241974 Submitted by: hamiltcl@verizon.net Approved by: ports@nicandneal.net (maintainer), tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D22568f3ea85ac57