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
dev-lang/clojure: bumping to new version #19991
Conversation
Pull Request assignmentSubmitter: @scardracs dev-lang/clojure: @gentoo/proxy-maint (maintainer needed) Linked bugsNo bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment. 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: 2021-03-18 18:04 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Pull request CI reportReport generated at: 2021-03-18 21:54 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Pull request CI reportReport generated at: 2021-03-19 06:28 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Pull request CI reportReport generated at: 2021-03-19 07:09 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are adding a new version, let the commit summary reflect that too.
Fixed slot for 1.10.3 in order to prevent the overshadow over 1.10.0 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Marco Scardovi <marco@scardovi.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have fixed all the requested changes
Pull request CI reportReport generated at: 2021-03-21 12:23 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests don't work. I also get an error when trying to run clojure, but as I don't do java, it might be related to my setup.
# clojure-1.10
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at clojure.lang.RT.classForName(RT.java:2212)
at clojure.lang.RT.classForName(RT.java:2221)
at clojure.lang.RT.loadClassForName(RT.java:2240)
at clojure.lang.RT.load(RT.java:449)
at clojure.lang.RT.load(RT.java:424)
at clojure.core$load$fn__8365.invoke(core.clj:6115)
at clojure.core$load.invokeStatic(core.clj:6114)
at clojure.core$load.doInvoke(core.clj:6098)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5897)
at clojure.core$load_one.invoke(core.clj:5892)
at clojure.core$load_lib$fn__8305.invoke(core.clj:5937)
at clojure.core$load_lib.invokeStatic(core.clj:5936)
at clojure.core$load_lib.doInvoke(core.clj:5917)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:669)
at clojure.core$load_libs.invokeStatic(core.clj:5974)
at clojure.core$load_libs.doInvoke(core.clj:5958)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:669)
at clojure.core$require.invokeStatic(core.clj:5996)
at clojure.core.server$loading__8246__auto____10374.invoke(server.clj:9)
at clojure.core.server__init.load(Unknown Source)
at clojure.core.server__init.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at clojure.lang.RT.classForName(RT.java:2212)
at clojure.lang.RT.classForName(RT.java:2221)
at clojure.lang.RT.loadClassForName(RT.java:2240)
at clojure.lang.RT.load(RT.java:449)
at clojure.lang.RT.load(RT.java:424)
at clojure.core$load$fn__8365.invoke(core.clj:6115)
at clojure.core$load.invokeStatic(core.clj:6114)
at clojure.core$load.doInvoke(core.clj:6098)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5897)
at clojure.core$load_one.invoke(core.clj:5892)
at clojure.core$load_lib$fn__8305.invoke(core.clj:5937)
at clojure.core$load_lib.invokeStatic(core.clj:5936)
at clojure.core$load_lib.doInvoke(core.clj:5917)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:669)
at clojure.core$load_libs.invokeStatic(core.clj:5974)
at clojure.core$load_libs.doInvoke(core.clj:5958)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:669)
at clojure.core$require.invokeStatic(core.clj:5996)
at clojure.core$require.doInvoke(core.clj:5996)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:384)
at clojure.lang.RT.doInit(RT.java:491)
at clojure.lang.RT.init(RT.java:467)
at clojure.main.main(main.java:38)
Caused by: Syntax error macroexpanding clojure.core/defn at (clojure/spec/alpha.clj:78:1).
at clojure.lang.Compiler.checkSpecs(Compiler.java:6976)
at clojure.lang.Compiler.macroexpand1(Compiler.java:6992)
at clojure.lang.Compiler.macroexpand(Compiler.java:7079)
at clojure.lang.Compiler.eval(Compiler.java:7165)
at clojure.lang.Compiler.load(Compiler.java:7640)
at clojure.lang.RT.loadResourceScript(RT.java:381)
at clojure.lang.RT.loadResourceScript(RT.java:372)
at clojure.lang.RT.load(RT.java:459)
at clojure.lang.RT.load(RT.java:424)
at clojure.core$load$fn__8365.invoke(core.clj:6115)
at clojure.core$load.invokeStatic(core.clj:6114)
at clojure.core$load.doInvoke(core.clj:6098)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5897)
at clojure.core$load_one.invoke(core.clj:5892)
at clojure.core$load_lib$fn__8305.invoke(core.clj:5937)
at clojure.core$load_lib.invokeStatic(core.clj:5936)
at clojure.core$load_lib.doInvoke(core.clj:5917)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:669)
at clojure.core$load_libs.invokeStatic(core.clj:5974)
at clojure.core$load_libs.doInvoke(core.clj:5958)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:669)
at clojure.core$require.invokeStatic(core.clj:5996)
at clojure.main$loading__8246__auto____10507.invoke(main.clj:11)
at clojure.main__init.load(Unknown Source)
at clojure.main__init.<clinit>(Unknown Source)
... 55 more
Caused by: java.lang.Exception: #object[clojure.spec.alpha$and_spec_impl$reify__1048 0x30af7377 "clojure.spec.alpha$and_spec_impl$reify__1048@30af7377"] is not a fn, expected predicate fn
at clojure.spec.alpha$dt.invokeStatic(alpha.clj:762)
at clojure.spec.alpha$dt.invoke(alpha.clj:752)
at clojure.spec.alpha$dt.invokeStatic(alpha.clj:753)
at clojure.spec.alpha$dt.invoke(alpha.clj:752)
at clojure.spec.alpha$deriv.invokeStatic(alpha.clj:1527)
at clojure.spec.alpha$deriv.invoke(alpha.clj:1521)
at clojure.spec.alpha$deriv.invokeStatic(alpha.clj:1535)
at clojure.spec.alpha$deriv.invoke(alpha.clj:1521)
at clojure.spec.alpha$deriv$fn__1290.invoke(alpha.clj:1537)
at clojure.core$map$fn__7393.invoke(core.clj:2759)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:51)
at clojure.lang.RT.seq(RT.java:535)
at clojure.core$seq__6928.invokeStatic(core.clj:139)
at clojure.core$map$fn__7400.invoke(core.clj:2767)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:51)
at clojure.lang.RT.seq(RT.java:535)
at clojure.core$seq__6928.invokeStatic(core.clj:139)
at clojure.core$filter$fn__7420.invoke(core.clj:2813)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:51)
at clojure.lang.RT.seq(RT.java:535)
at clojure.core$seq__6928.invokeStatic(core.clj:139)
at clojure.core$map$fn__7393.invoke(core.clj:2750)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:51)
at clojure.lang.RT.seq(RT.java:535)
at clojure.core$seq__6928.invokeStatic(core.clj:139)
at clojure.core$seq__6928.invoke(core.clj:139)
at clojure.spec.alpha$filter_alt.invokeStatic(alpha.clj:1424)
at clojure.spec.alpha$filter_alt.invoke(alpha.clj:1418)
at clojure.spec.alpha$alt_STAR_.invokeStatic(alpha.clj:1428)
at clojure.spec.alpha$alt_STAR_.invoke(alpha.clj:1427)
at clojure.spec.alpha$deriv.invokeStatic(alpha.clj:1537)
at clojure.spec.alpha$deriv.invoke(alpha.clj:1521)
at clojure.spec.alpha$deriv.invokeStatic(alpha.clj:1535)
at clojure.spec.alpha$deriv.invoke(alpha.clj:1521)
at clojure.spec.alpha$deriv.invokeStatic(alpha.clj:1536)
at clojure.spec.alpha$deriv.invoke(alpha.clj:1521)
at clojure.spec.alpha$deriv.invokeStatic(alpha.clj:1536)
at clojure.spec.alpha$deriv.invoke(alpha.clj:1521)
at clojure.spec.alpha$re_conform.invokeStatic(alpha.clj:1662)
at clojure.spec.alpha$re_conform.invoke(alpha.clj:1653)
at clojure.spec.alpha$regex_spec_impl$reify__1374.conform_STAR_(alpha.clj:1703)
at clojure.spec.alpha$conform.invokeStatic(alpha.clj:164)
at clojure.spec.alpha$conform.invoke(alpha.clj:160)
at clojure.spec.alpha$macroexpand_check.invokeStatic(alpha.clj:701)
at clojure.spec.alpha$macroexpand_check.invoke(alpha.clj:697)
at clojure.lang.AFn.applyToHelper(AFn.java:156)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.lang.Var.applyTo(Var.java:705)
at clojure.lang.Compiler.checkSpecs(Compiler.java:6974)
... 82 more
@juippis I have tested it and actually works so I don't know what happened. I will do further tests |
Unfortunately, starting a clojure repl doesn't work on my machine either. I investigated this a little while ago but never got to around to making the PR Since clojure-1.10.1 (specifically since CLJ-2484), spec-alpha can no longer be a source-only-JAR. Upstream does not run into this issue, because their builds use prebuilt maven packages for spec-alpha, so their JARs contain bytecode. Our Interestingly though, while clojure requires a precompiled spec-alpha to run interactively/start a repl, it does not require it to just compile clj files (it only requires sources). I think the way forward will be a simple bootstrapping process
|
The thing I don't understand is why it works on my PC without issues and not in others |
How did you build |
Can you check if your spec-alpha jar has |
dac5816 I've reverted the bump to 1.10.3. This also took you out as a maintainer from metadata.xml, as it was paired with a version bump commit. A good lesson why you should modify metadata.xml becoming a maintainer in a separate commit ;) I do expect you to figure this out, and become the commit again in a working version bump. Hence I didn't re-assign the bugs to maintainer-needed. Please let me know if you have no intention of working on this package, and I'll assign the bugs properly. Sorry for the mess, I should get more familiar with java :I |
I think that @toshokan has the assessment of the situation. When I did this originally I specifically hunted down versions that didn't have the bootstrapping problems caused by dependence on maven. Going forward this means that if we want to be able to bootstrap clojure we will likely have to find intermediate versions that can be built using an earlier slot. |
At the end I managed to check it and no, no .class file on it |
@tgbugs @toshokan I have tried to take a look on it but I don't know java so well so I will not able to make it fixed. Also there is a problem on test with 1.10.0 (test is ATM restriced so it is a problem only when run ebuild clojure-1.10.0.ebuild clean test). More info here: https://bugs.gentoo.org/737064 |
In that case I'd like to take a look at it. |
@toshokan thanks :) I have requested a stabilization for 1.10.0 before notice the bug on test, so please take a look on it https://bugs.gentoo.org/777264 |
IIRC there is no effective way to run the tests for this.
There was not an easy way forward to fix that when I worked on it. |
@tgbugs so I have to drop stabilization request as test is a common part on it |
@juippis what you think? |
I would keep it masked because despite the fact that it does install a working clojure repl, there are some caveats, such as the fact that you can't just follow most of the instructions for how to get started with clojure because we don't use the uberjar that has all sorts of stuff bundled. I dug into this a while back, but essentially clojure as a whole has gone the way of maven, so anyone who wants to run these stripped down versions of clojure needs to know what they are doing. |
It's up to you. I'm drop it as said before because I haven't the knowledge to fix nor I'm able to ask properly upstream what they could do to fix it. I'm sorry if I messed up this so much |
A few months ago I found a way to bootstrap a clojure-1.10.1 build without maven and also build the clj cli tools, so hopefully the situation isn't so dire. |
@toshokan if we can get the clj cli tools in tree that might be the most concrete way forward, pull me in on any bugs/prs related to that if you want. |
This is the initial import of the broken ebuild from gentoo/gentoo#19991 (with minor modifications).
Care to share what you found? I am also Interessent in a bootstraping solution for clojure (latest version in my case, but I assume it is applicable). |
Bumping to clojure-1.10.3
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Marco Scardovi marco@scardovi.com