- Update to version 2.0.2:
* Fixed “Undefined behavior when with hash(...) on non-aligned bytes due to murmurHash cast[ptr int32]” (#22387)
* Fixed “async/closure environment does not align local variables” (#22419)
* Fixed “Debugging/stepping is broken in 2.0.0 and 2.1.1” (#22366)
* Fixed “when picks wrong branch with static int” (#22474)
* Fixed “Regression from 1.6.14 to 2.0.0 - nimble test crashes with a core dump” (#22357)
* Fixed “Long-term arc-closure iterator problem” (#22619)
* Fixed “-d:useMalloc broken with --mm:none and threads on” (#22262)
* Fixed “Crash of compiler on array type check” (#5780)
* Fixed “Undefined behaviorwith set card() on non-aligned pointer from cardSetImpl/countBits64cast on ptr uint64” (#22481)
* Fixed “elementType from std/typetraits doesn’t work in generic procs” (#21532)
* Fixed “peg matchLen can raise an unlisted exception: Exception” (#22541)
* Fixed “Piece of code output c compiler error “ (#17197)
* Fixed “Missing type inference in loop + case + if + continue” (#22604)
* Fixed “Invalid type mismatch in generic” (#17509)
* Fixed “std/nativesockets getHostByAddr should support IPv6” (#22834)
* Fixed “std/nre leaks memory on every created Regex due to auto-translated finalizers behaving differently under ARC/ORC” (#22868)
* Fixed “Destructor not called for temp objects passed as arguments” (#22866)
* Fixed “nimsuggest inlay hints for types shown in the wrong place for exported vars and consts” (#23067)
* Fixed “[Regression] static integers in quote do” (#22947)
OBS-URL: https://build.opensuse.org/request/show/1134143
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/nim?expand=0&rev=55
<<Fix changelog typo>>
- Remove move of $TARGET/tools since it does not exist.
- Remove move of `nim-gdb.py` since it's in ./tools/debug/ now.
- Add atlas version 0.6.2 tarball. It will be extracted to dist/atlas directory from the
root of the project.
- Update to version 2.0.0:
* better tuple unpacking
* forbidden tags
* improved type inference
* new standard library modules:
- std/oserrors
- std/envvars
- std/dirs
- std/files
- std/symlinks
- std/appdirs
- std/cmdline
* overloadable enums
* default value for objects
* definite assignment analysis
* strict effects
* improved error message for type mismatch
* consistent underscore handling
* javascript codegen improvement
* docgen improvements
* c++ interop enhancements
* ARC/ORC refinements
* using an unnamed break in a block is deprecated
* new strict funcs definition
* several standard library modules are now moved to nimble packagse
- std/punycode => punycode
- std/asyncftpclient => asyncftpclient
- std/smtp => smtp
- std/db_common => db_connector/db_common
- std/db_sqlite => db_connector/db_sqlite
- std/db_mysql => db_connector/db_mysql
- std/db_postgres => db_connector/db_postgres
- std/db_odbc => db_connector/db_odbc
- std/md5 => checksums/md5
- std/sha1 => checksums/sha1
- std/sums => sums
- remove nim-fix-tests-ip-protocol-missing.patch
OBS-URL: https://build.opensuse.org/request/show/1102470
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/nim?expand=0&rev=53
- Update to version 1.6.12:
* Fixed “sizeof object containing a set is wrong”
* Fixed “Missing bounds check for len(toOpenArray..)”
* Fixed “Add warning for bare except: clause”
* Fixed “Little Copyright notice inconsistency”
* Fixed “std/deques: wrong result after calling shrink”
* Fixed “io.readLine adds ‘\00’ char to the end”
* Fixed “New JS mdoe issue: return + ref ints.”
* Fixed “Bad codegen for passed var seq to proc returning array[] converted to seq with @”
* Fixed “Templates allowed to use ambiguous identifier”
* Fixed “Mutating a var parameter through a mutable view triggers SIGSEGV”
* Fixed “gcc error when constructing an object that has the same name in the same file name in 2 different directories”
- fixed building issues on i586 and ppc64le
OBS-URL: https://build.opensuse.org/request/show/1072079
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/nim?expand=0&rev=47
- Update to version 1.6.10:
* Fixed “–styleCheck:off does not work (and –styleCheck:hint is
now the default?)”
* Fixed “dereferencing pointer to incomplete type error with gcc
9.4 with statics/cast”
* Fixed “strutils.find uses cstring optimization that stops after
\0”
* Fixed “Nimpretty mangles numeric literal procs”
* Fixed “Regression in proc symbol resolution; Error: attempting
to call routine “
* Fixed “of operator doesn’t consider generics under orc/arc”
* Fixed ““incompatible type” when mixing float32 and cfloat in
generics”
* Fixed “cannot generate code for: mSlice with toOpenArray”
* Fixed “-mm flag is ignored on latest Nim 1.7.1 be4bd8”
* Full list of changes:
https://github.com/nim-lang/Nim/compare/v1.6.8...v1.6.10
OBS-URL: https://build.opensuse.org/request/show/1037780
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/nim?expand=0&rev=45
- Remove patch nim-fix-gcc-major-version-detection.patch as it is
already included upstream.
- Add PCRE dependency as recommended, but required while building.
- Disable broken tests
* tasyncssl.nim [i586, armv7l]
- Update to version 1.6.8:
* Fixed “Add –gc:arc (or –mm:arc) induce different behavior when
using converter”
* Fixed “Converting unsigned integer to float fails in VM"
* Fixed “regression(0.20.0 => devel): var params assignment gives
silently wrong results in VM”
* Fixed “genDepend broken for duplicate module names in separate
folders”
* Fixed “Orc booting compiler doesn’t work with newSeq operations”
* Fixed “hasCustomPragma and getCustomPragmaVal don’t work on
fields with backticks”
* Fixed “Cant use uint64 in case”
* Fixed “nim jsondoc output is broken”
* Fixed “Underscores are unnecessarily escaped in db_mysql”
* Fixed “Invalid codegen when block ends with lent”
* Fixed “locals doesn’t work with ORC”
* Fixed “reset does not work on set”
* Fixed “selectRead and selectWrite are dangerous to use sockets
with FD numbers bigger than FD_SETSIZE (1024) on *nixes”
* Fixed “use-after-free bugs in object variants”
* Fixed “[ARC] C compiler error when using the result of a
template in the subscript operator”
* Fixed “Calling nullary templates without () doesn’t work inside
calls inside other templates”
* Fixed “[Regression] Incorrect captures of pegs \ident macro in
OBS-URL: https://build.opensuse.org/request/show/1006723
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/nim?expand=0&rev=43
- Disable some tests for some platforms:
* SFML tests/buildrequires are removed to simplify having the same
version in all repositories (SLE, backports, etc.).
* Disable test "tests/arc/tasyncorc.nim", which is failing in
ppc64le (backports).
- Require/recommend NodeJS 12 only where it is provided, so the
package is buildable on more codestreams.
- Includes upstream fixes for:
* (bsc#1175333, CVE-2020-15693) httpClient is vulnerable to a
CR-LF injection
* (bsc#1175334, CVE-2020-15692) mishandle of argument to
browsers.openDefaultBrowser
* (bsc#1175332, CVE-2020-15694) httpClient.get().contentLength()
fails to properly validate the server response
* (bsc#1192712, CVE-2021-41259) null byte accepted in getContent
function, leading to URI validation bypass
* (bsc#1185948, CVE-2021-29495) stdlib httpClient does not
validate peer certificates by default
* (bsc#1185085, CVE-2021-21374) Improper verification of the
SSL/TLS certificate
* (bsc#1185084, CVE-2021-21373) "nimble refresh" falls back to a
non-TLS URL in case of error
* (bsc#1185083, CVE-2021-21372) doCmd can be leveraged to execute
arbitrary commands
* (bsc#1181705, CVE-2020-15690) Standard library asyncftpclient
lacks a check for newline character
OBS-URL: https://build.opensuse.org/request/show/994303
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/nim?expand=0&rev=41
- Update to version 1.2.12
* Fixed GC crash resulting from inlining of the memory
allocation procs
* Fixed “incorrect raises effect for $(NimNode)” (#17454)
- from version 1.2.10
* Fixed “JS backend doesn’t handle float->int type conversion “ (#8404)
* Fixed “The “try except” not work when the “OSError:
Too many open files” error occurs!” (#15925)
* Fixed “Nim emits #line 0 C preprocessor directives with
–debugger:native, with ICE in gcc-10” (#15942)
* Fixed “tfuturevar fails when activated” (#9695)
* Fixed “nre.escapeRe is not gcsafe” (#16103)
* Fixed ““Error: internal error: genRecordFieldAux” - in
the “version-1-4” branch” (#16069)
* Fixed “-d:fulldebug switch does not compile with gc:arc” (#16214)
* Fixed “osLastError may randomly raise defect and crash” (#16359)
* Fixed “generic importc proc’s don’t work (breaking lots
of vmops procs for js)” (#16428)
* Fixed “Concept: codegen ignores parameter passing” (#16897)
* Fixed “{.push exportc.} interacts with anonymous functions” (#16967)
* Fixed “memory allocation during {.global.} init breaks GC” (#17085)
* Fixed "Nimble arbitrary code execution for specially crafted package metadata"
+ https://github.com/nim-lang/security/security/advisories/GHSA-rg9f-w24h-962p
+ (bsc#1185083, CVE-2021-21372)
* Fixed "Nimble falls back to insecure http url when fetching packages"
+ https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8
+ (bsc#1185084, CVE-2021-21373)
* Fixed "Nimble fails to validate certificates due to insecure httpClient defaults"
+ https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx
+ (bsc#1185085, CVE-2021-21374) (forwarded request 887387 from glaubitz)
OBS-URL: https://build.opensuse.org/request/show/887450
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nim?expand=0&rev=15
- Update to version 1.2.12
* Fixed GC crash resulting from inlining of the memory
allocation procs
* Fixed “incorrect raises effect for $(NimNode)” (#17454)
- from version 1.2.10
* Fixed “JS backend doesn’t handle float->int type conversion “ (#8404)
* Fixed “The “try except” not work when the “OSError:
Too many open files” error occurs!” (#15925)
* Fixed “Nim emits #line 0 C preprocessor directives with
–debugger:native, with ICE in gcc-10” (#15942)
* Fixed “tfuturevar fails when activated” (#9695)
* Fixed “nre.escapeRe is not gcsafe” (#16103)
* Fixed ““Error: internal error: genRecordFieldAux” - in
the “version-1-4” branch” (#16069)
* Fixed “-d:fulldebug switch does not compile with gc:arc” (#16214)
* Fixed “osLastError may randomly raise defect and crash” (#16359)
* Fixed “generic importc proc’s don’t work (breaking lots
of vmops procs for js)” (#16428)
* Fixed “Concept: codegen ignores parameter passing” (#16897)
* Fixed “{.push exportc.} interacts with anonymous functions” (#16967)
* Fixed “memory allocation during {.global.} init breaks GC” (#17085)
* Fixed "Nimble arbitrary code execution for specially crafted package metadata"
+ https://github.com/nim-lang/security/security/advisories/GHSA-rg9f-w24h-962p
+ (bsc#1185083, CVE-2021-21372)
* Fixed "Nimble falls back to insecure http url when fetching packages"
+ https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8
+ (bsc#1185084, CVE-2021-21373)
* Fixed "Nimble fails to validate certificates due to insecure httpClient defaults"
+ https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx
+ (bsc#1185085, CVE-2021-21374)
OBS-URL: https://build.opensuse.org/request/show/887387
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/nim?expand=0&rev=33