New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wip] dev-lang/nim: add 2.0.0 #32880
Conversation
Closes: https://bugs.gentoo.org/913623 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Pull Request assignmentSubmitter: @listout dev-lang/nim: @xgqt, @gentoo/nim Linked bugsBugs linked: 913623 In order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
Pull request CI reportReport generated at: 2023-09-17 13:55 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Experimental patches do not apply anymore ( Either way it fails to install for me: Hint: [Link]
Hint: mm: refc; threads: on; opt: speed; options: -d:release
113221 lines; 20.950s; 258.816MiB peakmem; proj: /var/tmp/portage/dev-lang/nim-2.0.0/work/nim-2.0.0/dist/nimble/src/nimble.nim; out: /var/tmp/portage/dev-lang/nim-2.0.0/work/nim-2.0.0/bin/nimble [SuccessX]
fatal: unable to access 'https://github.com/nim-lang/atlas.git/': Could not resolve host: github.com
failed command: 'git clone -q https://github.com/nim-lang/atlas.git /var/tmp/portage/dev-lang/nim-2.0.0/work/nim-2.0.0/dist/atlas', status: 128
fatal: unable to access 'https://github.com/nim-lang/atlas.git/': Could not resolve host: github.com
failed command: 'git clone -q https://github.com/nim-lang/atlas.git /var/tmp/portage/dev-lang/nim-2.0.0/work/nim-2.0.0/dist/atlas', status: 128
fatal: unable to access 'https://github.com/nim-lang/atlas.git/': Could not resolve host: github.com
failed command: 'git clone -q https://github.com/nim-lang/atlas.git /var/tmp/portage/dev-lang/nim-2.0.0/work/nim-2.0.0/dist/atlas', status: 128
fatal.nim(53) sysFatal
Error: unhandled exception: deps.nim(19, 3) `ok` git clone -q https://github.com/nim-lang/atlas.git /var/tmp/portage/dev-lang/nim-2.0.0/work/nim-2.0.0/dist/atlas [AssertionDefect]
* ERROR: dev-lang/nim-2.0.0::gentoo failed (compile phase):
* Failed to run command: ./koch tools
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 1372: Called edo './koch' 'tools'
* environment, line 678: Called die
* The specific snippet of code:
* "$@" || die -n "Failed to run command: $@"
* |
Those are the files in /var/tmp/portage/dev-lang/nim-2.0.0/work/nim-2.0.0/dist/
├── checksums/
│ ├── README.md
│ ├── checksums.nimble
│ ├── src/
│ └── tests/
└── nimble/
├── changelog.markdown
├── ci/
├── config.nims
├── dist/
├── license.txt
├── nimble.bash-completion
├── nimble.nimble
├── nimble.zsh-completion
├── readme.markdown
├── src/
├── tests/
└── todo.markdown |
Do you mean install or compile? Cause it compiles fine for me https://0x0.st/HW-t.log and the install error is most probably due to not using sudo.
Seems like mine is a bit different. https://0x0.st/HW-v.txt |
If you are adding info please add a comment do not edit the last one.
That is correct for Try turning off ALL network connectivity (net interfaces) on your machine for time of emerging nim and see if you can get same error. If you have no net, then git clone should fail. |
Aha ... got it to reproduce
|
Now you see this is not unique :) You will have to adjust your portage settings since this somehow passed via |
Just adding this here for better tracking nim-lang/Nim#22590 |
@xgqt did you see what the void devs did in void-linux/void-packages@40a8658. Perhaps we could do something similar? |
We do similar thing in few pkgs already - record git sha sums and then prevent the fetching. You can base off of https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-lang/clojure/clojure-1.11.1.ebuild in addition to Void's approach. |
It's safe to drop it. |
I think we can just patch out "cloneDependency" calls from koch.nim |
I just looked and "boot()" function from "koch.nim" is just a few calls that could be inlined in the ebuild. |
If not ebuild, a new "nim-build.eclass" could be created. |
Closes: https://bugs.gentoo.org/913623