Created attachment 241505 [details] invalid_doc_paths.patch By default, the file compiler/commands.nim contains a hard-coded path "../doc" to two documentation files, which are loaded during compilation into a code. While during compilation of Nim itself it isn't a problem, trying to use later the compiler source code in any project can cause issues as the documentation is in different place. The patch updates the paths in the compiler/commands.nim file to the new location "/usr/local/share/doc/nim" after build the package.
Comment on attachment 241505 [details] invalid_doc_paths.patch It doesn't seem to break anything, so let's go for it.
Committed with minor changes, Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=931d277e9f7db6872299f8b948b7c403d194c9c1 commit 931d277e9f7db6872299f8b948b7c403d194c9c1 Author: Neal Nelson <ports@nicandneal.net> AuthorDate: 2023-04-19 15:41:26 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2023-04-19 16:37:51 +0000 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.org lang/nim/Makefile | 2 ++ 1 file changed, 2 insertions(+)