Monday, February 28, 2022

Re: [UPDATE] lang/nim to 1.6.4

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/nim/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile 28 Feb 2022 13:16:10 -0000 1.12
+++ Makefile 28 Feb 2022 23:27:54 -0000
@@ -62,8 +62,19 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/config/*.cfg ${PREFIX}/share/examples/nim

do-test:
+ # Unmet Dependency on zip/zipfiles
+ rm -rf ${WRKSRC}/tests/manyloc/nake/
+ # Unmet Dependency on zip/ziplib
+ rm -rf ${WRKSRC}/tests/manyloc/keineschweine/
+ # Unmet Dependency on jester
+ rm -rf ${WRKSRC}/tests/cpp/tasync_cpp.nim
+ rm -rf ${WRKSRC}/tests/niminaction/Chapter7/Tweeter
+ # Unmet external dependency on SFML
+ rm -rf ${WRKSRC}/tests/niminaction/Chapter8/sfml
+ # _pbuild can't open outbound TCP connections
+ rm -rf ${WRKSRC}/tests/stdlib/tnetconnect.nim
cd ${WRKSRC} && ${SETENV} ${ALL_TEST_ENV} ./koch tests all -d:release \
- --parallelBuild:1 --listFullPaths --listCmd \
+ --parallelBuild:1
--nimcache:"${WRKSRC}/nimcache-port-test" \
--putenv:"PATH=${PATH}"

> I forgot about the tests thought, so here's another patch that makes
> `make test' run. Some tests fails, but the majority seems to be
> passing.

The attached patch reduces the noise in the test output a little:

* Removing --listFullPaths --listCmd makes the compiler output match the
expected output
* Some tests try to include libraries that aren't bundled, or try to
open outgoing connections

There's one remaining test failure that looks to my untrained eyes like
it could indicate a compiler bug: tests/stdlib/tsharedlist.nim

I'm not super happy about the ssl related tests that are either disabled
or failing, though.

No comments:

Post a Comment