Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package nim for openSUSE:Factory checked in at 2022-05-28 22:16:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nim (Old) and /work/SRC/openSUSE:Factory/.nim.new.2254 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nim" Sat May 28 22:16:51 2022 rev:17 rq:979576 version:1.6.6 Changes: -------- --- /work/SRC/openSUSE:Factory/nim/nim.changes 2022-02-07 23:39:17.261952904 +0100 +++ /work/SRC/openSUSE:Factory/.nim.new.2254/nim.changes 2022-05-28 22:17:02.581016430 +0200 @@ -1,0 +2,46 @@ +Wed May 4 16:57:06 UTC 2022 - David Anes <david.a...@suse.com> + +- Reworked whole package. + +- Add patches: + * nim-fix-tests-certificate-key-too-small.patch + * nim-fix-tests-ip-protocol-missing.patch + * nim-nim-gdb_fix_interpreter.patch + +- Following nim tools now work as expected: + * nim_dbg is now installed. + * nim-gdb can be successfully launched as it finds and loads + nim-gdb.py correctly under gdb. + * nimble package manager stores package information per user. + * compiler package can be found and used, as it may be required + by other packages. + +- Update to 1.6.6 + * standard library use consistent styles for variable names so it + can be used in projects which force a consistent style with + --styleCheck:usages option. + * ARC/ORC are now considerably faster at method dispatching, + bringing its performance back on the level of the refc memory + management. + * Full changelog: + https://nim-lang.org/blog/2022/05/05/version-166-released.html + +- Previous updates and changelogs: + * 1.6.4: + https://nim-lang.org/blog/2022/02/08/version-164-released.html + * 1.6.2: + https://nim-lang.org/blog/2021/12/17/version-162-released.html + * 1.6.0: + https://nim-lang.org/blog/2021/10/19/version-160-released.html + * 1.4.8: + https://nim-lang.org/blog/2021/05/25/version-148-released.html + * 1.4.6: + https://nim-lang.org/blog/2021/04/15/versions-146-and-1212-released.html + * 1.4.4: + https://nim-lang.org/blog/2021/02/23/versions-144-and-1210-released.html + * 1.4.2: + https://nim-lang.org/blog/2020/12/01/version-142-released.html + * 1.4.0: + https://nim-lang.org/blog/2020/10/16/version-140-released.html + +------------------------------------------------------------------- Old: ---- nim-1.2.16.tar.xz New: ---- nim-1.6.6.tar.xz nim-fix-tests-certificate-key-too-small.patch nim-fix-tests-ip-protocol-missing.patch nim-nim-gdb_fix_interpreter.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nim.spec ++++++ --- /var/tmp/diff_new_pack.UtzeRX/_old 2022-05-28 22:17:03.229017231 +0200 +++ /var/tmp/diff_new_pack.UtzeRX/_new 2022-05-28 22:17:03.233017237 +0200 @@ -17,50 +17,88 @@ Name: nim -Version: 1.2.16 +Version: 1.6.6 Release: 0 -Summary: A statically typed, imperative programming language +Summary: A statically typed compiled systems programming language License: MIT Group: Development/Languages/Other URL: https://nim-lang.org/ Source0: https://nim-lang.org/download/nim-%{version}.tar.xz Source1: nim-rpmlintrc +Patch0: nim-nim-gdb_fix_interpreter.patch +# UPSTREAM FIX: https://github.com/nim-lang/Nim/commit/8c100a37b93607806acec51733fe5e2fda392d44.patch +Patch1: nim-fix-tests-certificate-key-too-small.patch +# UPSTREAM FIX: https://github.com/nim-lang/Nim/commit/2c73e84436a11cae1676c7da0228158ba1a885cc +Patch2: nim-fix-tests-ip-protocol-missing.patch + BuildRequires: binutils-devel + # required for the testsuite BuildRequires: gc-devel +BuildRequires: ca-certificates +BuildRequires: ca-certificates-mozilla +BuildRequires: git BuildRequires: libopenssl-devel +BuildRequires: netcfg BuildRequires: sqlite3-devel BuildRequires: timezone BuildRequires: valgrind -%if 0%{?is_opensuse} || 0%{?is_backports} -# node is not available on armv7l armv7hl -%ifnarch armv7l armv7hl -# Leap 42.3 node is too old, but SLE backports is ok -%if 0%{?suse_version} >= 1500 || 0%{?is_backports} -BuildRequires: nodejs -%endif + +# Nim needs support for both __builtin_saddll_overflow and +# -std=c++14, therefore gcc 6.2+ is required. +BuildRequires: gcc-c++ >= 6.2 + +# Needs node 12 for flag --unhandled-rejections=strict, but it's not +# strictly needed (it's used to test the Nim JS compiler, so we can +# skip it and run tests without this compiler target afterwards) +%if 0%{?suse_version} >= 150100 || 0%{?is_backports} +BuildRequires: nodejs >= 12 %endif + +%if 0%{?is_opensuse} || 0%{?is_backports} +# sfml2 is not avaialable in SLE BuildRequires: sfml2-devel %endif -%if 0%{?suse_version} >= 1500 -# -std=c++14 requires gcc 5.2, SLE and old Leap do not have it -BuildRequires: gcc-c++ >= 5.2 -%endif -# + Recommends: git ExclusiveArch: %{ix86} x86_64 armv7l armv7hl aarch64 ppc64le %description -Nim is a statically typed, imperative programming language. - -Beneath a infix/indentation-based syntax with a (AST-based) macro -system lies a semantic model that supports a soft realtime GC on -thread local heaps. Asynchronous message passing is used between -threads. An unsafe shared memory heap is also provided for the -increased efficiency that results from that model. +Nim is a statically typed compiled systems programming language. It +combines successful concepts from mature languages like Python, Ada +and Modula. + +Efficient: +* Nim generates native dependency-free executables, not dependent on + a virtual machine, which are small and allow easy redistribution. +* The Nim compiler and the generated executables support all major + platforms like Windows, Linux, BSD and macOS. +* Nim's memory management is deterministic and customizable with + destructors and move semantics, inspired by C++ and Rust. It is + well-suited for embedded, hard-realtime systems. +* Modern concepts like zero-overhead iterators and compile-time + evaluation of user-defined functions, in combination with the + preference of value-based datatypes allocated on the stack, lead + to extremely performant code. +* Support for various backends: it compiles to C, C++ or JavaScript + so that Nim can be used for all backend and frontend needs. + +Expressive: +* Nim is self-contained: the compiler and the standard library are + implemented in Nim. +* Nim has a powerful macro system which allows direct manipulation + of the AST, offering nearly unlimited opportunities. + +Elegant: +* Macros cannot change Nim's syntax because there is no need for it + ??? the syntax is flexible enough. +* Modern type system with local type inference, tuples, generics and + sum types. +* Statements are grouped by indentation but can span multiple lines. %prep %setup -q +%autopatch -p1 %build export CFLAGS="%{optflags}" @@ -68,101 +106,173 @@ export NIMFLAGS="$NIMFLAGS %{?jobs:--parallelBuild:%{jobs}}" ./build.sh +make %{?_smp_mflags} V=1 CFLAGS="%{optflags}" -make %{?_smp_mflags} V=1 \ - CFLAGS="%{optflags}" -./bin/nim c $NIMFLAGS koch - -./koch boot -d:release $NIMFLAGS \ - -d:useGnuReadline -./koch tools -d:release $NIMFLAGS +./bin/nim c $NIMFLAGS -d:release koch +./koch boot $NIMFLAGS -d:release +./koch tools $NIMFLAGS -d:release + +# TODO: build docs +# ./koch docs %check -#cat <<EOT >> skip -#tests/manyloc/keineschweine/keineschweine.nim -#tests/manyloc/keineschweine/server/sg_lobby.nim -#EOT - -cat <<EOT >> skip -# FIXME list of tests that need to be reviewed and that are not passing -# -# Error: unhandled exception: No SSL/TLS CA certificates found. [IOError] -tests/stdlib/thttpclient_ssl.nim -# -# code reloading test fails -tests/dll/nimhcr_integration.nim -# -# [ 2047s] Failure: reTimeout -tests/vm/tslow_tables.nim -EOT -%ifarch aarch64 armv7l armv7hl ppc64le -cat <<EOT >> skip -# fails because it includes immintrin.h -tests/misc/tsizeof4.nim -# other -tests/dll/nimhcr_unit.nim -tests/range/tcompiletime_range_checks.nim +cat << EOT >> tests_to_skip + # we don't care about testament itself + tests/testament/tjoinable.nim + tests/testament/tshould_not_work.nim + # cannot open file: zip/zipfiles + tests/manyloc/nake/nakefile.nim + # cannot open file: zip/zlib + tests/manyloc/keineschweine/keineschweine.nim + # Temporary failure in name resolution (tries to use netcode) + tests/stdlib/thttpclient.nim + tests/stdlib/tnetconnect.nim + # client: exception: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed + tests/stdlib/thttpclient_ssl.nim + # cannot open file: jester + tests/niminaction/Chapter7/Tweeter/src/tweeter.nim + tests/cpp/tasync_cpp.nim + # # only working with megatest enabled + # tests/misc/tjoinable.nim + # expects Nim to be in PATH... + tests/stdlib/tosproc.nim + # following tests are flaky + tests/stdlib/tio.nim + tests/arc/thard_alignment.nim + # this one needs NodeJS althought its not required by the build + tests/nimdoc/trunnableexamples.nim + # broken in Leap 15.3 + tests/exception/t13115.nim EOT -%endif -%if 0%{?sle_version} && 0%{?sle_version} < 150000 -cat <<EOT >> skip -# compiler too old? -tests/misc/tsizeof4.nim -tests/destructor/tnewruntime_misc.nim +%if 0%{?sle_version} && !0%{?is_opensuse} && !0%{?is_backports} +cat << EOT >> tests_to_skip + # no SFML in plain SLE + tests/niminaction/Chapter8/sfml/sfml_test.nim EOT %endif -%if 0%{?sle_version} && !0%{?is_opensuse} && !0%{?is_backports} -cat <<EOT >> skip -# no SFML in plain SLE -tests/niminaction/Chapter8/sfml/sfml_test.nim +%ifarch aarch64 armv7l armv7hl ppc64le +cat << EOT >> tests_to_skip + # fails because it includes immintrin.h + tests/misc/tsizeof4.nim + + # armv7l + tests/stdlib/tarithmetics.nim + tests/vm/tslow_tables.nim + tests/tuples/t12892.nim + tests/dll/nimhcr_unit.nim + tests/arc/tcaseobj.nim + tests/arc/tcaseobjcopy.nim + + #aarch64 and ppc64l + tests/range/tcompiletime_range_checks.nim + tests/dll/nimhcr_unit.nim EOT %endif -%ifarch i586 -cat <<EOT >> skip -# crashes on i586 -tests/destructor/tnewruntime_misc.nim +%if 0%{?suse_version} < 150100 +cat << EOT >> tests_to_skip + # deactivate all tests that require node, as node version in + # SLE and Leap 15.1 is either too old or not available at all + tests/misc/trunner.nim EOT %endif # Tests as many targets as possible -targets="c objc" -if rpm -q --whatprovides nodejs; then - targets="$targets js" -fi +NIM_COMPILER_TARGETS="c" if rpm -q --whatprovides c++_compiler; then - targets="$targets c++" + NIM_COMPILER_TARGETS="$NIM_COMPILER_TARGETS c++" +fi +if rpm -q --whatprovides nodejs; then + NIM_COMPILER_TARGETS="$NIM_COMPILER_TARGETS js" fi -./koch tests --nim:$PWD/bin/nim --failing --colors:off --skipFrom:skip --targets:"$targets" all - -%install -./koch install %{buildroot}%{_libdir} -find . -name testament -executable -type f -delete +./koch tests \ + --nim:$PWD/bin/nim \ + --failing \ + --colors:off \ + --megatest:on \ + --skipFrom:tests_to_skip \ + --targets:"$NIM_COMPILER_TARGETS" \ + all -mkdir -p %{buildroot}%{_bindir}/ %{buildroot}%{_sysconfdir}/nim \ - %{buildroot}%{_docdir}/nim/ +%install +# extract everything into a staging location, as Nim devels like to +# add/remove things in an unusual way and we want to find out what's +# been added/removed/modified on future versions to avoid errors +# during packaging it +TARGET="%{buildroot}/_pending" + +./koch install $TARGET + +# some binaries aren't installed at target location by koch +cp ./bin/* $TARGET/nim/bin/ + +# nim-gdb requires this script under "tools" folder at final location +mkdir -p $TARGET/nim/tools +cp ./tools/nim-gdb.py $TARGET/nim/tools/ + +mkdir -p \ + %{buildroot}%{_bindir}/ \ + %{buildroot}%{_libdir}/nim \ + %{buildroot}%{_sysconfdir}/nim \ + %{buildroot}%{_docdir}/nim + +# remove things that aren't needed +rm $TARGET/nim/lib/pure/unidecode/gen.py + +# fix endlines +sed -i 's/\r$//' $TARGET/nim/doc/nimdoc.css + +# move executables to final location (or delete what isn't needed) +rm $TARGET/nim/bin/atlas +rm $TARGET/nim/bin/testament +mv $TARGET/nim/bin %{buildroot}%{_libdir}/nim/ + +# strip all symbols from binaries +strip --strip-all %{buildroot}%{_libdir}/nim/bin/nim +strip --strip-all %{buildroot}%{_libdir}/nim/bin/nimble +strip --strip-all %{buildroot}%{_libdir}/nim/bin/nim_dbg +strip --strip-all %{buildroot}%{_libdir}/nim/bin/nimble +strip --strip-all %{buildroot}%{_libdir}/nim/bin/nimgrep +strip --strip-all %{buildroot}%{_libdir}/nim/bin/nimpretty +strip --strip-all %{buildroot}%{_libdir}/nim/bin/nimsuggest + +# nim requires symlinks to executables, as it looks for its +# standard library by resolving the link and then checking for +# parent paths, which is quite unusual... +ln -s %{_libdir}/nim/bin/nim %{buildroot}%{_bindir} +ln -s %{_libdir}/nim/bin/nim-gdb %{buildroot}%{_bindir} +ln -s %{_libdir}/nim/bin/nim_dbg %{buildroot}%{_bindir} +ln -s %{_libdir}/nim/bin/nimble %{buildroot}%{_bindir} +ln -s %{_libdir}/nim/bin/nimgrep %{buildroot}%{_bindir} +ln -s %{_libdir}/nim/bin/nimpretty %{buildroot}%{_bindir} +ln -s %{_libdir}/nim/bin/nimsuggest %{buildroot}%{_bindir} + +mv $TARGET/nim/compiler* %{buildroot}%{_libdir}/nim/ +mv $TARGET/nim/lib %{buildroot}%{_libdir}/nim/ +mv $TARGET/nim/doc %{buildroot}%{_docdir}/nim/ +mv $TARGET/nim/config/* %{buildroot}%{_sysconfdir}/nim/ +mv $TARGET/nim/tools %{buildroot}%{_libdir}/nim/ -ls ./bin | while read f; do - install -Dpm 0755 "./bin/$f" "%{buildroot}%{_libdir}/nim/bin/$f" - ln -s "%{_libdir}/nim/bin/$f" "%{buildroot}%{_bindir}/$f" -done +%files -mv -T %{buildroot}%{_libdir}/nim/config/ %{buildroot}%{_sysconfdir}/nim/ +%license copying.txt +%doc %{_docdir}/nim -mv -T %{buildroot}%{_libdir}/nim/doc/ %{buildroot}%{_docdir}/nim/ -ln -s %{_docdir}/nim/ %{buildroot}%{_libdir}/nim/doc +%{_bindir}/nim +%{_bindir}/nim-gdb +%{_bindir}/nim_dbg +%{_bindir}/nimble +%{_bindir}/nimgrep +%{_bindir}/nimpretty +%{_bindir}/nimsuggest -%files -%license copying.txt -%doc doc/advopt.txt doc/basicopt.txt -%doc %{_docdir}/nim/ %dir %{_sysconfdir}/nim -%config %{_sysconfdir}/nim/nim*.cfg -%{_bindir}/nim* +%config %{_sysconfdir}/nim/* + %{_libdir}/nim/ %changelog ++++++ nim-1.2.16.tar.xz -> nim-1.6.6.tar.xz ++++++ ++++ 28071418 lines of diff (skipped) ++++ retrying with extended exclude list ++++++ nim-fix-tests-certificate-key-too-small.patch ++++++ >From 8c100a37b93607806acec51733fe5e2fda392d44 Mon Sep 17 00:00:00 2001 From: kraptor <krap...@kraptor.com> Date: Sun, 8 May 2022 11:54:04 +0200 Subject: [PATCH] Add new self-signed 4096 bit certificate to testdata (#19758) The test tasyncssl may fail on modern linux versions as they require at least 2048 bit certificates. A new certificate and private key with default values has been added to meet this new requirement. --- tests/testdata/mycert.pem | 105 ++++++++++++++++++++++++++++---------- 1 file changed, 77 insertions(+), 28 deletions(-) diff --git a/tests/testdata/mycert.pem b/tests/testdata/mycert.pem index 69039fe04936..61dcb685c325 100644 --- a/tests/testdata/mycert.pem +++ b/tests/testdata/mycert.pem @@ -1,32 +1,81 @@ -----BEGIN PRIVATE KEY----- -MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAL9QXX/nuiFbizdI -Uhg1D9gG0GIANENvKwdWTlOlZAoOqvjXPFLGh+87yhvkq4f5FcICkSDao2SfeZcP -JsgD7T01owt8x48898+d91i7nIpr6IXGPyBxHOuaxAITY1D+MbbkhIGUVrEqKEOm -qfS9cqPZaDNkx8xVef0HPCmqEme9AgMBAAECgYBxqrQCvJFQJG3QiL2N+GjTdyj0 -MR7cOf6cu2CKPifz+ccHVgpXO/Gj6Cgq7nAjt5B/1rqXhI+zxzSc1bm6+OpIfakS -E0DLCFacECmL0v3c+XLxTtMhFZF5u7Yq0UMsuWmDSfRb4sbRjC+s+c51i5N0485k -b3un/MDI/i/jD/YZGQJBAPLtcuMIwEblUR1uw7NFezXdauXCRFkekoSlJNvpdM/Z -XDRcuWioek5yD8FvMpTz7H2e26Ev645JT5lIuN4Eti8CQQDJm+Qt9NYUohRsU279 -GYI3vXsXKKqmA22at4I3KRXPSeYV1vtQLYWWqGAXzgGkUEVBY0chmHyDcNwkUsNw -svHTAkEAwOTpD/vX6bOXOD7GqKgoULozcqNScE2FXExhuzliJtTakT17f+4fyABs -IFWynXIevBUTIqeRbJcr3HRRTwIAwwJBAJQ8XkL4IaxcG/4mPpY0ek13sZiumwKj -xKQcx869E78tS9LFFlW2kuHafYUjQIvLRZC1aWinUO3oPsUqYW9s82cCQFjoods5 -YsWEJB2RKCT5nhyAXEZLehxF+FXr+JjLMHkuEINKTnHHKjHJ7LbMcTCKUJAcKDTA -qZFEq5N1aT6DrAU= +MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDgpWhnNdNSUbwJ +39mKf+PA879K1wyT23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a86zBQ/clS7+OeDwkvaEpjov +2VQf3QouVLghfLZYWSxWdEKD9+IWHn8rV6qksEb/Ogu4ZtzDRGqJow4j0DeSSEu7 +ns1YeT2mVTFwHjGXCWS+0iE885NDVX/b5YptlwH5PW7aqeXyCS9Hrd1C1GnXoXGp +NHltYRTyNWm974xWg7eu2gbbB8Ng02chXysdkBq7l+7OyA0a2EfX3Cbz3/49+Mqn +viqwNO5toSHVCdfV9Jd0p0CcqryYgyt2YNpJB+2nUQpiW4jviAs49PZg2PpCVw/2 +0cqtaPeUh26Si8UzDOuT697PIuGkZ9Q9QVwccVXtCyA0UpJ13P0fMrA+yEMhtwSs +k1tRm0pUQa6t3v26/cAy+kMhviHBJFwi5dx+y3OMvqQqpQJrgfZawm/o2ZQHy1KP +8m4ngrJzb13evKf216qCwllmQo6Ts4yeI1Ddx8UpdX7RUWpD8Uw4zSi7Th4r -----END CERTIFICATE----- ++++++ nim-fix-tests-ip-protocol-missing.patch ++++++ >From 2c73e84436a11cae1676c7da0228158ba1a885cc Mon Sep 17 00:00:00 2001 From: kraptor <krap...@kraptor.com> Date: Sat, 7 May 2022 20:46:45 +0200 Subject: [PATCH] "ip" protocol as id 0 is long gone (#19760) IANA is using id 0 for "HOPOPT" instead of "ip" for some time now and those systems that still support the old mapping will stop doing so at some point in the future. Some BSDs and openSUSE are already following this change as per IANA list here: https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml As new unixes (and maybe Windows, who knows) start to adopt the updated IANA list, this will keep failing from time to time, so it's better to remove the "ip" check altogether. --- tests/stdlib/tgetprotobyname.nim | 4 ---- 1 file changed, 4 deletions(-) Index: nim-1.6.6/tests/stdlib/tgetprotobyname.nim =================================================================== --- nim-1.6.6.orig/tests/stdlib/tgetprotobyname.nim +++ nim-1.6.6/tests/stdlib/tgetprotobyname.nim @@ -1,14 +1,7 @@ import nativesockets -when not defined(netbsd): - # Ref: https://github.com/nim-lang/Nim/issues/15452 - NetBSD doesn't define an `ip` protocol - doAssert getProtoByName("ip") == 0 - -doAssert getProtoByName("ipv6") == 41 -doAssert getProtoByName("tcp") == 6 doAssert getProtoByName("udp") == 17 doAssert getProtoByName("icmp") == 1 -doAssert getProtoByName("ipv6-icmp") == 58 when defined(windows): doAssertRaises(OSError): Index: nim-1.6.6/lib/pure/nativesockets.nim =================================================================== --- nim-1.6.6.orig/lib/pure/nativesockets.nim +++ nim-1.6.6/lib/pure/nativesockets.nim @@ -214,7 +214,7 @@ proc getProtoByName*(name: string): int let protoent = posix.getprotobyname(name.cstring) if protoent == nil: - raise newException(OSError, "protocol not found") + raise newException(OSError, "protocol not found: " & name) result = protoent.p_proto.int ++++++ nim-nim-gdb_fix_interpreter.patch ++++++ Index: nim-1.6.6/bin/nim-gdb =================================================================== --- nim-1.6.6.orig/bin/nim-gdb +++ nim-1.6.6/bin/nim-gdb @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/bash # Exit if anything fails set -e