all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#73432: clojure package is broken
@ 2024-09-23  2:21 Andreas Bauer
  2024-09-26 13:50 ` Kristiyan Kanchev
  2024-10-15  7:35 ` bug#73432: [PATCH 0/3] Fix clojure-tools-deps: wrong resolution of deps Kristiyan Kanchev
  0 siblings, 2 replies; 14+ messages in thread
From: Andreas Bauer @ 2024-09-23  2:21 UTC (permalink / raw)
  To: 73432

[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

Hi!

Something broke the clojure package. It was working some time ago, and now
it is not.
What no longer works is using JAR files from maven/clojars that contain
CLASS FILES.
The content of class files is no longer being loaded. This bug affects a
lot of libraries that
I use.

I have made a repo to reproduce the bug:
https://github.com/awb99/clojure-guix-broken

In this repo one can run clojur-X:curl on todays version of guix, and one
will
get this error: Execution error (ClassNotFoundException) at
java.net.URLClassLoader/findClass (REPL:-1). io.netty.channel.epoll.Epoll


Now it can be fixed with time machine:

guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
shell --pure --development --check clojure-tools openjdk coreutils

Then in time-machine run again clojure-X:curl and the demo will work.

The demo can be tried out on  virtually any operating system and it will
work, just on guix it is currently broken.

Thanks.

[-- Attachment #2: Type: text/html, Size: 4707 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-09-23  2:21 bug#73432: clojure package is broken Andreas Bauer
@ 2024-09-26 13:50 ` Kristiyan Kanchev
  2024-10-03 14:00   ` Ludovic Courtès
  2024-10-15  7:35 ` bug#73432: [PATCH 0/3] Fix clojure-tools-deps: wrong resolution of deps Kristiyan Kanchev
  1 sibling, 1 reply; 14+ messages in thread
From: Kristiyan Kanchev @ 2024-09-26 13:50 UTC (permalink / raw)
  To: 73432

[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]

Hello,
I was about to open another issue with the same observation.

I'm seeing issues with the project Metabase: 
https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:|
Execution error (ClassNotFoundException) at 
java.net.URLClassLoader/findClass (URLClassLoader.java:476).
jakarta.servlet.AsyncContext|

|
|

The problem seems to be that Clojure CLI (`clojure-tools` guix package) 
doesn't construct proper class path including all transitive 
dependencies of the project. I've tried to figure out what might be 
causing the issue and I suspect `maven-resolver-*` packages. Clojure CLI 
depends on `tools.deps` clojure lib, which itself depends on 
`maven-resolver-*`. There is a mention in the `tools.deps` changelog of 
reverting `maven-resolver-*` libs in version 0.18.1374 with comment 
"Revert update of Maven resolver libs - seeing resolution differences".
Here is the relevant commit:
https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce

Up until this date, `tools.deps` lists the older versions of 
maven-resolver-* libs in its deps.end file. Since Guix uses the latest 
versions of maven-resolver-* libs, I think this is causing the issue.

[-- Attachment #2: Type: text/html, Size: 1777 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-09-26 13:50 ` Kristiyan Kanchev
@ 2024-10-03 14:00   ` Ludovic Courtès
  2024-10-03 14:41     ` Roman Scherer
  0 siblings, 1 reply; 14+ messages in thread
From: Ludovic Courtès @ 2024-10-03 14:00 UTC (permalink / raw)
  To: Kristiyan Kanchev, Andreas Bauer; +Cc: Roman Scherer, 73432, Rostislav Svoboda

Hi Andreas and Kristiyan,

Cc’ing Roman and Rostislav who are among the recent committers for this
file.

Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:

> Now it can be fixed with time machine:
> 
> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
> shell --pure --development --check clojure-tools openjdk coreutils
> 
> Then in time-machine run again clojure-X:curl and the demo will work.

Kristiyan Kanchev <skrechy@gmail.com> skribis:

> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476). 
> jakarta.servlet.AsyncContext
>
> The problem seems to be that Clojure CLI (`clojure-tools` guix package) doesn't construct proper class path including all transitive
> dependencies of the project. I've tried to figure out what might be causing the issue and I suspect `maven-resolver-*` packages. Clojure
> CLI depends on `tools.deps` clojure lib, which itself depends on `maven-resolver-*`. There is a mention in the `tools.deps` changelog of
> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
> differences".
> Here is the relevant commit:
> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>
> Up until this date, `tools.deps` lists the older versions of maven-resolver-* libs in its deps.end file. Since Guix uses the latest versions of
> maven-resolver-* libs, I think this is causing the issue.

Roman, Rostislav: does that ring a bell?

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-10-03 14:00   ` Ludovic Courtès
@ 2024-10-03 14:41     ` Roman Scherer
  2024-10-03 14:48       ` Roman Scherer
  0 siblings, 1 reply; 14+ messages in thread
From: Roman Scherer @ 2024-10-03 14:41 UTC (permalink / raw)
  To: Ludovic Courtès
  Cc: Kristiyan Kanchev, Rostislav Svoboda, 73432, Andreas Bauer

[-- Attachment #1: Type: text/plain, Size: 2641 bytes --]


Hi,

I just tried this and got the same error. I'm not using the Clojure
package from Guix because the AWS S3 support has been ripped out. I use
the package from Nix.

My guess is, this error is also because of the lacking S3 support, or if
not it will break later. The deps.edn file of Metabase contains:

```
{"athena"   {:url "https://s3.amazonaws.com/maven-athena"}
  "redshift" {:url "https://s3.amazonaws.com/redshift-maven-repository/release"}
  ;; for metabase/saml20-clj
  "opensaml" {:url "https://build.shibboleth.net/nexus/content/repositories/releases/"}}
```

So it's using S3 to resolve Maven dependencies. There is an open issue
for this https://issues.guix.gnu.org/53765 and I opened a duplicate of
this a while ago (which I can't find right now). Unfortunaltly this went
nowhwere.

Roman

Ludovic Courtès <ludo@gnu.org> writes:

> Hi Andreas and Kristiyan,
>
> Cc’ing Roman and Rostislav who are among the recent committers for this
> file.
>
> Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:
>
>> Now it can be fixed with time machine:
>> 
>> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
>> shell --pure --development --check clojure-tools openjdk coreutils
>> 
>> Then in time-machine run again clojure-X:curl and the demo will work.
>
> Kristiyan Kanchev <skrechy@gmail.com> skribis:
>
>> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
>> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476). 
>> jakarta.servlet.AsyncContext
>>
>> The problem seems to be that Clojure CLI (`clojure-tools` guix package) doesn't construct proper class path including all transitive
>> dependencies of the project. I've tried to figure out what might be causing the issue and I suspect `maven-resolver-*` packages. Clojure
>> CLI depends on `tools.deps` clojure lib, which itself depends on `maven-resolver-*`. There is a mention in the `tools.deps` changelog of
>> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
>> differences".
>> Here is the relevant commit:
>> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>>
>> Up until this date, `tools.deps` lists the older versions of maven-resolver-* libs in its deps.end file. Since Guix uses the latest versions of
>> maven-resolver-* libs, I think this is causing the issue.
>
> Roman, Rostislav: does that ring a bell?
>
> Thanks,
> Ludo’.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-10-03 14:41     ` Roman Scherer
@ 2024-10-03 14:48       ` Roman Scherer
  2024-10-04  8:33         ` Kristiyan Kanchev
  0 siblings, 1 reply; 14+ messages in thread
From: Roman Scherer @ 2024-10-03 14:48 UTC (permalink / raw)
  To: Ludovic Courtès
  Cc: Kristiyan Kanchev, Rostislav Svoboda, 73432, Andreas Bauer

[-- Attachment #1: Type: text/plain, Size: 3346 bytes --]


Ludo recently merged some of my patches that I have re-submitted
recently. There are 4 patches missing, that I haven't submitted
again. They contain the S3 support.

But it's not clear if they can be included inn Guix, because some of the
artifacts are Clojure EDN files generated from AWS API docs. The code to
generate them has not been published by the Clojure team. That was a
blocker back in the day according to Maxim Devos.

The patches are here:

https://github.com/r0man/guix/commits/clojure-s3-transport/

I really should find that thread ...

Roman Scherer <roman.scherer@burningswell.com> writes:

> Hi,
>
> I just tried this and got the same error. I'm not using the Clojure
> package from Guix because the AWS S3 support has been ripped out. I use
> the package from Nix.
>
> My guess is, this error is also because of the lacking S3 support, or if
> not it will break later. The deps.edn file of Metabase contains:
>
> ```
> {"athena"   {:url "https://s3.amazonaws.com/maven-athena"}
>   "redshift" {:url "https://s3.amazonaws.com/redshift-maven-repository/release"}
>   ;; for metabase/saml20-clj
>   "opensaml" {:url "https://build.shibboleth.net/nexus/content/repositories/releases/"}}
> ```
>
> So it's using S3 to resolve Maven dependencies. There is an open issue
> for this https://issues.guix.gnu.org/53765 and I opened a duplicate of
> this a while ago (which I can't find right now). Unfortunaltly this went
> nowhwere.
>
> Roman
>
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Hi Andreas and Kristiyan,
>>
>> Cc’ing Roman and Rostislav who are among the recent committers for this
>> file.
>>
>> Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:
>>
>>> Now it can be fixed with time machine:
>>> 
>>> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
>>> shell --pure --development --check clojure-tools openjdk coreutils
>>> 
>>> Then in time-machine run again clojure-X:curl and the demo will work.
>>
>> Kristiyan Kanchev <skrechy@gmail.com> skribis:
>>
>>> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
>>> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476). 
>>> jakarta.servlet.AsyncContext
>>>
>>> The problem seems to be that Clojure CLI (`clojure-tools` guix package) doesn't construct proper class path including all transitive
>>> dependencies of the project. I've tried to figure out what might be causing the issue and I suspect `maven-resolver-*` packages. Clojure
>>> CLI depends on `tools.deps` clojure lib, which itself depends on `maven-resolver-*`. There is a mention in the `tools.deps` changelog of
>>> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
>>> differences".
>>> Here is the relevant commit:
>>> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>>>
>>> Up until this date, `tools.deps` lists the older versions of maven-resolver-* libs in its deps.end file. Since Guix uses the latest versions of
>>> maven-resolver-* libs, I think this is causing the issue.
>>
>> Roman, Rostislav: does that ring a bell?
>>
>> Thanks,
>> Ludo’.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-10-03 14:48       ` Roman Scherer
@ 2024-10-04  8:33         ` Kristiyan Kanchev
  2024-10-04 10:51           ` Roman Scherer
  0 siblings, 1 reply; 14+ messages in thread
From: Kristiyan Kanchev @ 2024-10-04  8:33 UTC (permalink / raw)
  To: Roman Scherer, Ludovic Courtès
  Cc: Rostislav Svoboda, 73432, Andreas Bauer

Hello Roman,

What do you mean that you're getting the same error? Getting the same 
error with Guix Clojure or with Nix Clojure? Metabase or the test 
project by Andreas?

I'm fairly confident that the problem is not caused by the S3 transport 
because alot of transitive dependencies are missing from the class-path 
that are not related to these libraries you cited. I was investigating 
the reported class-path from within Clojure with 
https://github.com/clojure/java.classpath, which is also dependency for 
Metabase, so you could try it in a nREPL session.

I'm currently trying to  maven-resolver-provider from 3.9 to 3.8 and 
will report results, hopefully soon -- I'm new to Guix and need some 
more time. If it works out, I'll try to push patches.

Thanks,
Kriss

On 10/3/24 17:48, Roman Scherer wrote:
> Ludo recently merged some of my patches that I have re-submitted
> recently. There are 4 patches missing, that I haven't submitted
> again. They contain the S3 support.
>
> But it's not clear if they can be included inn Guix, because some of the
> artifacts are Clojure EDN files generated from AWS API docs. The code to
> generate them has not been published by the Clojure team. That was a
> blocker back in the day according to Maxim Devos.
>
> The patches are here:
>
> https://github.com/r0man/guix/commits/clojure-s3-transport/
>
> I really should find that thread ...
>
> Roman Scherer <roman.scherer@burningswell.com> writes:
>
>> Hi,
>>
>> I just tried this and got the same error. I'm not using the Clojure
>> package from Guix because the AWS S3 support has been ripped out. I use
>> the package from Nix.
>>
>> My guess is, this error is also because of the lacking S3 support, or if
>> not it will break later. The deps.edn file of Metabase contains:
>>
>> ```
>> {"athena"   {:url "https://s3.amazonaws.com/maven-athena"}
>>    "redshift" {:url "https://s3.amazonaws.com/redshift-maven-repository/release"}
>>    ;; for metabase/saml20-clj
>>    "opensaml" {:url "https://build.shibboleth.net/nexus/content/repositories/releases/"}}
>> ```
>>
>> So it's using S3 to resolve Maven dependencies. There is an open issue
>> for this https://issues.guix.gnu.org/53765 and I opened a duplicate of
>> this a while ago (which I can't find right now). Unfortunaltly this went
>> nowhwere.
>>
>> Roman
>>
>> Ludovic Courtès <ludo@gnu.org> writes:
>>
>>> Hi Andreas and Kristiyan,
>>>
>>> Cc’ing Roman and Rostislav who are among the recent committers for this
>>> file.
>>>
>>> Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:
>>>
>>>> Now it can be fixed with time machine:
>>>>
>>>> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
>>>> shell --pure --development --check clojure-tools openjdk coreutils
>>>>
>>>> Then in time-machine run again clojure-X:curl and the demo will work.
>>> Kristiyan Kanchev <skrechy@gmail.com> skribis:
>>>
>>>> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
>>>> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476).
>>>> jakarta.servlet.AsyncContext
>>>>
>>>> The problem seems to be that Clojure CLI (`clojure-tools` guix package) doesn't construct proper class path including all transitive
>>>> dependencies of the project. I've tried to figure out what might be causing the issue and I suspect `maven-resolver-*` packages. Clojure
>>>> CLI depends on `tools.deps` clojure lib, which itself depends on `maven-resolver-*`. There is a mention in the `tools.deps` changelog of
>>>> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
>>>> differences".
>>>> Here is the relevant commit:
>>>> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>>>>
>>>> Up until this date, `tools.deps` lists the older versions of maven-resolver-* libs in its deps.end file. Since Guix uses the latest versions of
>>>> maven-resolver-* libs, I think this is causing the issue.
>>> Roman, Rostislav: does that ring a bell?
>>>
>>> Thanks,
>>> Ludo’.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-10-04  8:33         ` Kristiyan Kanchev
@ 2024-10-04 10:51           ` Roman Scherer
  2024-10-06 12:57             ` Rostislav Svoboda
  0 siblings, 1 reply; 14+ messages in thread
From: Roman Scherer @ 2024-10-04 10:51 UTC (permalink / raw)
  To: Kristiyan Kanchev
  Cc: Ludovic Courtès, Rostislav Svoboda, 73432, Andreas Bauer

[-- Attachment #1: Type: text/plain, Size: 5018 bytes --]


Hi Kristiyan,

sorry for not being clear. I tried the metabase repository with the Guix
and the Nix package. The Nix package works, but the one from Guix not.

I also just tried the clojure-guix-broken repo now (I haven't seen this
yesterday) with the Guix package, and it didn't find the
class. Unfortunatly, I have no idea why the class files are not being
found.

After seeing all those:

Warning: failed to load the S3TransporterFactory class

I thought it might be related. But maybe not.

I hope you find the issue.

Roman

Kristiyan Kanchev <skrechy@gmail.com> writes:

> Hello Roman,
>
> What do you mean that you're getting the same error? Getting the same
> error with Guix Clojure or with Nix Clojure? Metabase or the test
> project by Andreas?
>
> I'm fairly confident that the problem is not caused by the S3
> transport because alot of transitive dependencies are missing from the
> class-path that are not related to these libraries you cited. I was
> investigating the reported class-path from within Clojure with
> https://github.com/clojure/java.classpath, which is also dependency
> for Metabase, so you could try it in a nREPL session.
>
> I'm currently trying to  maven-resolver-provider from 3.9 to 3.8 and
> will report results, hopefully soon -- I'm new to Guix and need some
> more time. If it works out, I'll try to push patches.
>
> Thanks,
> Kriss
>
> On 10/3/24 17:48, Roman Scherer wrote:
>> Ludo recently merged some of my patches that I have re-submitted
>> recently. There are 4 patches missing, that I haven't submitted
>> again. They contain the S3 support.
>>
>> But it's not clear if they can be included inn Guix, because some of the
>> artifacts are Clojure EDN files generated from AWS API docs. The code to
>> generate them has not been published by the Clojure team. That was a
>> blocker back in the day according to Maxim Devos.
>>
>> The patches are here:
>>
>> https://github.com/r0man/guix/commits/clojure-s3-transport/
>>
>> I really should find that thread ...
>>
>> Roman Scherer <roman.scherer@burningswell.com> writes:
>>
>>> Hi,
>>>
>>> I just tried this and got the same error. I'm not using the Clojure
>>> package from Guix because the AWS S3 support has been ripped out. I use
>>> the package from Nix.
>>>
>>> My guess is, this error is also because of the lacking S3 support, or if
>>> not it will break later. The deps.edn file of Metabase contains:
>>>
>>> ```
>>> {"athena"   {:url "https://s3.amazonaws.com/maven-athena"}
>>>    "redshift" {:url "https://s3.amazonaws.com/redshift-maven-repository/release"}
>>>    ;; for metabase/saml20-clj
>>>    "opensaml" {:url "https://build.shibboleth.net/nexus/content/repositories/releases/"}}
>>> ```
>>>
>>> So it's using S3 to resolve Maven dependencies. There is an open issue
>>> for this https://issues.guix.gnu.org/53765 and I opened a duplicate of
>>> this a while ago (which I can't find right now). Unfortunaltly this went
>>> nowhwere.
>>>
>>> Roman
>>>
>>> Ludovic Courtès <ludo@gnu.org> writes:
>>>
>>>> Hi Andreas and Kristiyan,
>>>>
>>>> Cc’ing Roman and Rostislav who are among the recent committers for this
>>>> file.
>>>>
>>>> Andreas Bauer <andreas.wolfgang.bauer@gmail.com> wrote:
>>>>
>>>>> Now it can be fixed with time machine:
>>>>>
>>>>> guix time-machine --commit=98e4bfe96f2c99daa0b66b65c1d379bb385301a8 -- guix
>>>>> shell --pure --development --check clojure-tools openjdk coreutils
>>>>>
>>>>> Then in time-machine run again clojure-X:curl and the demo will work.
>>>> Kristiyan Kanchev <skrechy@gmail.com> skribis:
>>>>
>>>>> I'm seeing issues with the project Metabase: https://github.com/metabase/metabase. When `clojure -M:run`, it fails with:
>>>>> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476).
>>>>> jakarta.servlet.AsyncContext
>>>>>
>>>>> The problem seems to be that Clojure CLI (`clojure-tools` guix
>>>>> package) doesn't construct proper class path including all
>>>>> transitive
>>>>> dependencies of the project. I've tried to figure out what might
>>>>> be causing the issue and I suspect `maven-resolver-*`
>>>>> packages. Clojure
>>>>> CLI depends on `tools.deps` clojure lib, which itself depends on
>>>>> `maven-resolver-*`. There is a mention in the `tools.deps`
>>>>> changelog of
>>>>> reverting `maven-resolver-*` libs in version 0.18.1374 with comment "Revert update of Maven resolver libs - seeing resolution
>>>>> differences".
>>>>> Here is the relevant commit:
>>>>> https://github.com/clojure/tools.deps/commit/04539cd060d41a528794c04b50a6aa2293b672ce
>>>>>
>>>>> Up until this date, `tools.deps` lists the older versions of
>>>>> maven-resolver-* libs in its deps.end file. Since Guix uses the
>>>>> latest versions of
>>>>> maven-resolver-* libs, I think this is causing the issue.
>>>> Roman, Rostislav: does that ring a bell?
>>>>
>>>> Thanks,
>>>> Ludo’.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-10-04 10:51           ` Roman Scherer
@ 2024-10-06 12:57             ` Rostislav Svoboda
  2024-10-09 12:15               ` Kristiyan Kanchev
  0 siblings, 1 reply; 14+ messages in thread
From: Rostislav Svoboda @ 2024-10-06 12:57 UTC (permalink / raw)
  To: Roman Scherer, Kristiyan Kanchev, Ludovic Courtès, 73432,
	Andreas Bauer, Julien Lepiller

Hi. The bug can be tested with a one liner from within the guix shell
of your guix-repo checkout directory. Then it's just a git bisect
grind resulting in:

bad commit:    6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to
3.9.0. Julien Lepiller
compile error: 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
compile error: 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
compile error: 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update
to 1.9.4. Julien Lepiller
good commit:   597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37.
Julien Lepiller

I think we should take a closer look at the changes introduced by
maven 3.9.0, and involve Julien in the discussion.

Cheers Bost


bost@ecke ~/dev/guix$ guix shell --development guix gnupg direnv
help2man git glibc-locales glibc less --pure

bost@ecke ~/dev/guix [env]$ git log --pretty=format:'%h %ad%d %s %an'
--date=short -n 5
6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to 3.9.0. Julien Lepiller
7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update to 1.9.4. Julien Lepiller
597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37. Julien Lepiller

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Execution error (ClassNotFoundException) at
java.net.URLClassLoader/findClass (REPL:-1).
io.netty.channel.epoll.Epoll

Full report at:
/tmp/clojure-10071694626922869296.edn

bost@ecke ~/dev/guix [env]$ git checkout 7634bfca4a
Previous HEAD position was 6a763d916e gnu: maven: Update to 3.9.0.
HEAD is now at 7634bfca4a gnu: Add java-asm-tree-9.

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
substitute: updating substitutes from
'https://substitutes.nonguix.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
  /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
  /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
  /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
  /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
  /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
  /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv

building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
- 'build' phasebuilder for
`/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
failed with exit code 1
build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
failed
View build log at
'/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
cannot build derivation
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
1 dependencies couldn't be built
guix shell: error: build of
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
failed

bost@ecke ~/dev/guix [env]$ git checkout 4ba0614677
Previous HEAD position was 7634bfca4a gnu: Add java-asm-tree-9.
HEAD is now at 4ba0614677 gnu: Add java-asm-9.

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
The following derivations will be built:
  /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
  /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
  /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
  /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
  /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
  /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv

building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
/ 'build' phasebuilder for
`/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
failed with exit code 1
build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
failed
View build log at
'/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
cannot build derivation
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
1 dependencies couldn't be built
guix shell: error: build of
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
failed

bost@ecke ~/dev/guix [env]$ git checkout 65e18f3f44
Previous HEAD position was 4ba0614677 gnu: Add java-asm-9.
HEAD is now at 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
The following derivations will be built:
  /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
  /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
  /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
  /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
  /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
  /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv

building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
/ 'build' phasebuilder for
`/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
failed with exit code 1
build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
failed
View build log at
'/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
cannot build derivation
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
1 dependencies couldn't be built
guix shell: error: build of
`/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
failed

bost@ecke ~/dev/guix [env]$ git checkout 597f7db28a
Previous HEAD position was 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
HEAD is now at 597f7db28a gnu: Add maven-parent-pom-37.

bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
openjdk coreutils --container --network
--share=$HOME/.bash_history=$HOME/.bash_history
--share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
{:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
-J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
:as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
:connection-timeout 9000})'
;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
Warning: failed to load the S3TransporterFactory class
{:request-time 82, :aleph/keep-alive? true, :headers {"accept-ch"
"Sec-CH-Prefers-Color-Scheme", "server" "gws",
"content-security-policy-report-only" "object-src 'none';base-uri
'self';script-src 'nonce-L_bpFSKBfV6ePPQ5XX89mw' 'strict-dynamic'
'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri
https://csp.withgoogle.com/csp/gws/other-hp", "content-type"
"text/html; charset=ISO-8859-1", "alt-svc" "h3=\":443\";
ma=2592000,h3-29=\":443\"; ma=2592000", "x-frame-options"
"SAMEORIGIN", "transfer-encoding" "chunked", "accept-ranges" "none",
"expires" "-1", "set-cookie"
"AEC=AVYB7cr3cvmbAV1LWXyhpEQMmhRJqAKagWpJsT3WkFdcueWBlDBtYcB0u1o;
expires=Fri, 04-Apr-2025 12:35:58 GMT; path=/; domain=.google.com;
Secure; HttpOnly;
SameSite=lax,__Secure-ENID=22.SE=hKFI58OY5TimxtoBmlZoSVjiTnTyUvcKPQ5h8n0JoYzy2J-9FSnumjnPyK208TYChMrSFA1issl1W8d36dbIH4w8EqdsKZpAx9VOHYif7-4hpDuzzJc63EQN5B9P9Ie5EOByy0HTBVwFwqRx6Kzpq9KiLMC5p98cyf6gTrU9aUgM-ec-gXy-yZh5WlL6cD2hXw3g5WkRcCk;
expires=Thu, 06-Nov-2025 04:54:16 GMT; path=/; domain=.google.com;
Secure; HttpOnly; SameSite=lax", "p3p" "CP=\"This is not a P3P policy!
See g.co/p3phelp for more info.\"", "date" "Sun, 06 Oct 2024 12:35:58
GMT", "vary" "Accept-Encoding", "x-xss-protection" "0",
"cache-control" "private, max-age=0"}, :status 200, :connection-time
336, :body #object[clj_commons.byte_streams.InputStream 0x7ba907cf
"clj_commons.byte_streams.InputStream@7ba907cf"]}

bost@ecke ~/dev/guix [env]$




^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-10-06 12:57             ` Rostislav Svoboda
@ 2024-10-09 12:15               ` Kristiyan Kanchev
  2024-10-09 12:18                 ` Roman Scherer
  0 siblings, 1 reply; 14+ messages in thread
From: Kristiyan Kanchev @ 2024-10-09 12:15 UTC (permalink / raw)
  To: Rostislav Svoboda, Roman Scherer, Ludovic Courtès, 73432,
	Andreas Bauer, Julien Lepiller

Hello all,

I've just managed to start Metabase with clojure-tools build from Guix. 
The problem was indeed what I suspected --> maven-core 3.8.8 was needed. 
maven-core 3.9.* is incompatible with clojure-tools (I want to note that 
the clojure/tools.deps lib is not working correctly with maven 3.9, not 
that Guix packaging is wrong).

Unfortunately, most of maven projects are handled as "bundles" of 
dependencies, so I had to "port" 20 packages to their older version. I'm 
currently improving/beautifying the code, then I'll push patches for review.

Regards,
Kriss

On 10/6/24 15:57, Rostislav Svoboda wrote:
> Hi. The bug can be tested with a one liner from within the guix shell
> of your guix-repo checkout directory. Then it's just a git bisect
> grind resulting in:
>
> bad commit:    6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to
> 3.9.0. Julien Lepiller
> compile error: 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
> compile error: 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
> compile error: 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update
> to 1.9.4. Julien Lepiller
> good commit:   597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37.
> Julien Lepiller
>
> I think we should take a closer look at the changes introduced by
> maven 3.9.0, and involve Julien in the discussion.
>
> Cheers Bost
>
>
> bost@ecke ~/dev/guix$ guix shell --development guix gnupg direnv
> help2man git glibc-locales glibc less --pure
>
> bost@ecke ~/dev/guix [env]$ git log --pretty=format:'%h %ad%d %s %an'
> --date=short -n 5
> 6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to 3.9.0. Julien Lepiller
> 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
> 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
> 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update to 1.9.4. Julien Lepiller
> 597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37. Julien Lepiller
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further details.
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Execution error (ClassNotFoundException) at
> java.net.URLClassLoader/findClass (REPL:-1).
> io.netty.channel.epoll.Epoll
>
> Full report at:
> /tmp/clojure-10071694626922869296.edn
>
> bost@ecke ~/dev/guix [env]$ git checkout 7634bfca4a
> Previous HEAD position was 6a763d916e gnu: maven: Update to 3.9.0.
> HEAD is now at 7634bfca4a gnu: Add java-asm-tree-9.
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> substitute: updating substitutes from
> 'https://substitutes.nonguix.org'... 100.0%
> substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> The following derivations will be built:
>    /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>    /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>    /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>    /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>    /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>    /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>
> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
> - 'build' phasebuilder for
> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
> failed with exit code 1
> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> failed
> View build log at
> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
> cannot build derivation
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
> 1 dependencies couldn't be built
> guix shell: error: build of
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
> failed
>
> bost@ecke ~/dev/guix [env]$ git checkout 4ba0614677
> Previous HEAD position was 7634bfca4a gnu: Add java-asm-tree-9.
> HEAD is now at 4ba0614677 gnu: Add java-asm-9.
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> The following derivations will be built:
>    /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>    /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>    /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>    /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>    /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>    /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>
> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
> / 'build' phasebuilder for
> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
> failed with exit code 1
> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> failed
> View build log at
> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
> cannot build derivation
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
> 1 dependencies couldn't be built
> guix shell: error: build of
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
> failed
>
> bost@ecke ~/dev/guix [env]$ git checkout 65e18f3f44
> Previous HEAD position was 4ba0614677 gnu: Add java-asm-9.
> HEAD is now at 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> The following derivations will be built:
>    /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>    /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>    /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>    /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>    /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>    /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>
> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
> / 'build' phasebuilder for
> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
> failed with exit code 1
> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
> failed
> View build log at
> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
> cannot build derivation
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
> 1 dependencies couldn't be built
> guix shell: error: build of
> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
> failed
>
> bost@ecke ~/dev/guix [env]$ git checkout 597f7db28a
> Previous HEAD position was 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
> HEAD is now at 597f7db28a gnu: Add maven-parent-pom-37.
>
> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
> openjdk coreutils --container --network
> --share=$HOME/.bash_history=$HOME/.bash_history
> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
> :connection-timeout 9000})'
> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further details.
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> Warning: failed to load the S3TransporterFactory class
> {:request-time 82, :aleph/keep-alive? true, :headers {"accept-ch"
> "Sec-CH-Prefers-Color-Scheme", "server" "gws",
> "content-security-policy-report-only" "object-src 'none';base-uri
> 'self';script-src 'nonce-L_bpFSKBfV6ePPQ5XX89mw' 'strict-dynamic'
> 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri
> https://csp.withgoogle.com/csp/gws/other-hp", "content-type"
> "text/html; charset=ISO-8859-1", "alt-svc" "h3=\":443\";
> ma=2592000,h3-29=\":443\"; ma=2592000", "x-frame-options"
> "SAMEORIGIN", "transfer-encoding" "chunked", "accept-ranges" "none",
> "expires" "-1", "set-cookie"
> "AEC=AVYB7cr3cvmbAV1LWXyhpEQMmhRJqAKagWpJsT3WkFdcueWBlDBtYcB0u1o;
> expires=Fri, 04-Apr-2025 12:35:58 GMT; path=/; domain=.google.com;
> Secure; HttpOnly;
> SameSite=lax,__Secure-ENID=22.SE=hKFI58OY5TimxtoBmlZoSVjiTnTyUvcKPQ5h8n0JoYzy2J-9FSnumjnPyK208TYChMrSFA1issl1W8d36dbIH4w8EqdsKZpAx9VOHYif7-4hpDuzzJc63EQN5B9P9Ie5EOByy0HTBVwFwqRx6Kzpq9KiLMC5p98cyf6gTrU9aUgM-ec-gXy-yZh5WlL6cD2hXw3g5WkRcCk;
> expires=Thu, 06-Nov-2025 04:54:16 GMT; path=/; domain=.google.com;
> Secure; HttpOnly; SameSite=lax", "p3p" "CP=\"This is not a P3P policy!
> See g.co/p3phelp for more info.\"", "date" "Sun, 06 Oct 2024 12:35:58
> GMT", "vary" "Accept-Encoding", "x-xss-protection" "0",
> "cache-control" "private, max-age=0"}, :status 200, :connection-time
> 336, :body #object[clj_commons.byte_streams.InputStream 0x7ba907cf
> "clj_commons.byte_streams.InputStream@7ba907cf"]}
>
> bost@ecke ~/dev/guix [env]$




^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: clojure package is broken
  2024-10-09 12:15               ` Kristiyan Kanchev
@ 2024-10-09 12:18                 ` Roman Scherer
  0 siblings, 0 replies; 14+ messages in thread
From: Roman Scherer @ 2024-10-09 12:18 UTC (permalink / raw)
  To: Kristiyan Kanchev
  Cc: Julien Lepiller, Ludovic Courtès, Rostislav Svoboda, 73432,
	Andreas Bauer

[-- Attachment #1: Type: text/plain, Size: 15460 bytes --]


Nice Kristiyan, thanks for your work on this!

Kristiyan Kanchev <skrechy@gmail.com> writes:

> Hello all,
>
> I've just managed to start Metabase with clojure-tools build from
> Guix. The problem was indeed what I suspected --> maven-core 3.8.8 was
> needed. maven-core 3.9.* is incompatible with clojure-tools (I want to
> note that the clojure/tools.deps lib is not working correctly with
> maven 3.9, not that Guix packaging is wrong).
>
> Unfortunately, most of maven projects are handled as "bundles" of
> dependencies, so I had to "port" 20 packages to their older
> version. I'm currently improving/beautifying the code, then I'll push
> patches for review.
>
> Regards,
> Kriss
>
> On 10/6/24 15:57, Rostislav Svoboda wrote:
>> Hi. The bug can be tested with a one liner from within the guix shell
>> of your guix-repo checkout directory. Then it's just a git bisect
>> grind resulting in:
>>
>> bad commit:    6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to
>> 3.9.0. Julien Lepiller
>> compile error: 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
>> compile error: 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
>> compile error: 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update
>> to 1.9.4. Julien Lepiller
>> good commit:   597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37.
>> Julien Lepiller
>>
>> I think we should take a closer look at the changes introduced by
>> maven 3.9.0, and involve Julien in the discussion.
>>
>> Cheers Bost
>>
>>
>> bost@ecke ~/dev/guix$ guix shell --development guix gnupg direnv
>> help2man git glibc-locales glibc less --pure
>>
>> bost@ecke ~/dev/guix [env]$ git log --pretty=format:'%h %ad%d %s %an'
>> --date=short -n 5
>> 6a763d916e 2023-02-25 (HEAD) gnu: maven: Update to 3.9.0. Julien Lepiller
>> 7634bfca4a 2023-02-25 gnu: Add java-asm-tree-9. Julien Lepiller
>> 4ba0614677 2023-02-25 gnu: Add java-asm-9. Julien Lepiller
>> 65e18f3f44 2023-02-25 gnu: maven-resolver-api: Update to 1.9.4. Julien Lepiller
>> 597f7db28a 2023-02-25 gnu: Add maven-parent-pom-37. Julien Lepiller
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>> further details.
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Execution error (ClassNotFoundException) at
>> java.net.URLClassLoader/findClass (REPL:-1).
>> io.netty.channel.epoll.Epoll
>>
>> Full report at:
>> /tmp/clojure-10071694626922869296.edn
>>
>> bost@ecke ~/dev/guix [env]$ git checkout 7634bfca4a
>> Previous HEAD position was 6a763d916e gnu: maven: Update to 3.9.0.
>> HEAD is now at 7634bfca4a gnu: Add java-asm-tree-9.
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> substitute: updating substitutes from
>> 'https://substitutes.nonguix.org'... 100.0%
>> substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> The following derivations will be built:
>>    /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>>    /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>>    /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>>    /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>>    /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>>    /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>>
>> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
>> - 'build' phasebuilder for
>> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
>> failed with exit code 1
>> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> failed
>> View build log at
>> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
>> cannot build derivation
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
>> 1 dependencies couldn't be built
>> guix shell: error: build of
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
>> failed
>>
>> bost@ecke ~/dev/guix [env]$ git checkout 4ba0614677
>> Previous HEAD position was 7634bfca4a gnu: Add java-asm-tree-9.
>> HEAD is now at 4ba0614677 gnu: Add java-asm-9.
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> The following derivations will be built:
>>    /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>>    /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>>    /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>>    /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>>    /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>>    /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>>
>> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
>> / 'build' phasebuilder for
>> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
>> failed with exit code 1
>> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> failed
>> View build log at
>> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
>> cannot build derivation
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
>> 1 dependencies couldn't be built
>> guix shell: error: build of
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
>> failed
>>
>> bost@ecke ~/dev/guix [env]$ git checkout 65e18f3f44
>> Previous HEAD position was 4ba0614677 gnu: Add java-asm-9.
>> HEAD is now at 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> The following derivations will be built:
>>    /gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv
>>    /gnu/store/4acifkvki90v5njl9ji3phhmiigbm13k-maven-core-3.8.6.drv
>>    /gnu/store/cn0v03z9ps68n2k1iz1j48w53irwd69n-java-plexus-component-metadata-1.7.1.drv
>>    /gnu/store/fshmx260frcym0r3r7s3v5523cmswfhk-maven-core-3.8.6.drv
>>    /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>>    /gnu/store/y5kfn1j2m33h22d6aci5y7czypx7xdy9-clojure-tools-deps-0.18.1354.drv
>>
>> building /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv...
>> / 'build' phasebuilder for
>> `/gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv'
>> failed with exit code 1
>> build of /gnu/store/l8p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv
>> failed
>> View build log at
>> '/var/log/guix/drvs/l8/p4srp198shgmmrn6v5gdcimdn68fbx-maven-resolver-provider-3.8.6.drv.gz'.
>> cannot build derivation
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv':
>> 1 dependencies couldn't be built
>> guix shell: error: build of
>> `/gnu/store/083biczjv0j6r80nrjvzcl5n8rk8qzr9-clojure-tools-1.11.1.1413.drv'
>> failed
>>
>> bost@ecke ~/dev/guix [env]$ git checkout 597f7db28a
>> Previous HEAD position was 65e18f3f44 gnu: maven-resolver-api: Update to 1.9.4.
>> HEAD is now at 597f7db28a gnu: Add maven-parent-pom-37.
>>
>> bost@ecke ~/dev/guix [env]$ ./pre-inst-env guix shell clojure-tools
>> openjdk coreutils --container --network
>> --share=$HOME/.bash_history=$HOME/.bash_history
>> --share=$HOME/.m2=$HOME/.m2 -- clojure -Sdeps '{:deps {aleph/aleph
>> {:mvn/version "0.8.1"}}}' -J-Dmaven.wagon.rto=90000
>> -J-Dio.netty.transport.noNative=true -M -e '(require '\''[aleph.http
>> :as h]) @(h/get "https://www.google.com" {:socket-timeout 9000
>> :connection-timeout 9000})'
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/java.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/java.go
>> ;;; note: source file /home/bost/dev/guix/gnu/packages/maven.scm
>> ;;;       newer than compiled /home/bost/dev/guix/gnu/packages/maven.go
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>> further details.
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> Warning: failed to load the S3TransporterFactory class
>> {:request-time 82, :aleph/keep-alive? true, :headers {"accept-ch"
>> "Sec-CH-Prefers-Color-Scheme", "server" "gws",
>> "content-security-policy-report-only" "object-src 'none';base-uri
>> 'self';script-src 'nonce-L_bpFSKBfV6ePPQ5XX89mw' 'strict-dynamic'
>> 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri
>> https://csp.withgoogle.com/csp/gws/other-hp", "content-type"
>> "text/html; charset=ISO-8859-1", "alt-svc" "h3=\":443\";
>> ma=2592000,h3-29=\":443\"; ma=2592000", "x-frame-options"
>> "SAMEORIGIN", "transfer-encoding" "chunked", "accept-ranges" "none",
>> "expires" "-1", "set-cookie"
>> "AEC=AVYB7cr3cvmbAV1LWXyhpEQMmhRJqAKagWpJsT3WkFdcueWBlDBtYcB0u1o;
>> expires=Fri, 04-Apr-2025 12:35:58 GMT; path=/; domain=.google.com;
>> Secure; HttpOnly;
>> SameSite=lax,__Secure-ENID=22.SE=hKFI58OY5TimxtoBmlZoSVjiTnTyUvcKPQ5h8n0JoYzy2J-9FSnumjnPyK208TYChMrSFA1issl1W8d36dbIH4w8EqdsKZpAx9VOHYif7-4hpDuzzJc63EQN5B9P9Ie5EOByy0HTBVwFwqRx6Kzpq9KiLMC5p98cyf6gTrU9aUgM-ec-gXy-yZh5WlL6cD2hXw3g5WkRcCk;
>> expires=Thu, 06-Nov-2025 04:54:16 GMT; path=/; domain=.google.com;
>> Secure; HttpOnly; SameSite=lax", "p3p" "CP=\"This is not a P3P policy!
>> See g.co/p3phelp for more info.\"", "date" "Sun, 06 Oct 2024 12:35:58
>> GMT", "vary" "Accept-Encoding", "x-xss-protection" "0",
>> "cache-control" "private, max-age=0"}, :status 200, :connection-time
>> 336, :body #object[clj_commons.byte_streams.InputStream 0x7ba907cf
>> "clj_commons.byte_streams.InputStream@7ba907cf"]}
>>
>> bost@ecke ~/dev/guix [env]$

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: [PATCH 0/3] Fix clojure-tools-deps: wrong resolution of deps
  2024-09-23  2:21 bug#73432: clojure package is broken Andreas Bauer
  2024-09-26 13:50 ` Kristiyan Kanchev
@ 2024-10-15  7:35 ` Kristiyan Kanchev
  2024-10-15  7:43   ` bug#73432: [PATCH 1/3] gnu: Add maven-resolver-1.6 Kristiyan Kanchev
                     ` (2 more replies)
  1 sibling, 3 replies; 14+ messages in thread
From: Kristiyan Kanchev @ 2024-10-15  7:35 UTC (permalink / raw)
  To: 73432; +Cc: Kristiyan Kanchev

Clojure CLI (guix package `clojure-tools`) dependes on clojure-tools-deps
library, which in turn dependes on Maven Core. However, Clojure CLI doesn't
work correctly with Maven Core 3.9 (calculates wrong classpaths), so these
patches "port" Maven Core and its deps to version 3.8 (and Maven Resolver to
1.6) and make `clojure-tools-deps` to use them as deps.

Kristiyan Kanchev (3):
  gnu: Add maven-resolver-1.6
  gnu: Add maven-3.8-core
  gnu: clojure-tools-deps: Fix wrong resolution of clojure deps

 gnu/packages/clojure.scm |  13 +-
 gnu/packages/maven.scm   | 308 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 312 insertions(+), 9 deletions(-)


base-commit: e6a771c7baf9662b4c9832045ad86c8b92b46bb3
--
2.43.0




^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73432: [PATCH 1/3] gnu: Add maven-resolver-1.6
  2024-10-15  7:35 ` bug#73432: [PATCH 0/3] Fix clojure-tools-deps: wrong resolution of deps Kristiyan Kanchev
@ 2024-10-15  7:43   ` Kristiyan Kanchev
  2024-10-15  7:43   ` bug#73432: [PATCH 2/3] gnu: Add maven-3.8-core Kristiyan Kanchev
  2024-10-15  7:43   ` bug#73432: [PATCH 3/3] gnu: clojure-tools-deps: Fix wrong resolution of clojure deps Kristiyan Kanchev
  2 siblings, 0 replies; 14+ messages in thread
From: Kristiyan Kanchev @ 2024-10-15  7:43 UTC (permalink / raw)
  To: 73432; +Cc: Kristiyan Kanchev, Julien Lepiller

* gnu/packages/maven.scm (maven-resolver-1.6-parent-pom,
maven-resolver-1.6-api, maven-resolver-1.6-spi, maven-resolver-1.6-test-util,
maven-resolver-1.6-util, maven-resolver-1.6-connector-basic,
maven-resolver-1.6-impl, maven-resolver-1.6-transport-file,
maven-resolver-1.6-transport-http): New variables

Change-Id: I293fdee8f4124c01c7260f6d10ba6c2ee56fe355
---
 gnu/packages/maven.scm | 176 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 176 insertions(+)

diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 67b95a5f7b..564a49fced 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2277,6 +2277,182 @@ (define-public maven
 can be extended by plugins to utilise a number of other development tools for
 reporting or the build process.")))
 
+(define maven-resolver-1.6-parent-pom
+  (package
+    (inherit maven-resolver-parent-pom)
+    (version "1.6.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/apache/maven-resolver")
+                    (commit (string-append "maven-resolver-" version))))
+              (file-name (git-file-name "maven-resolver" version))
+              (sha256
+               (base32
+                "0hbbbxj14qyq8pccyab96pjqq90jnjmid1pml9kx55c5smfpjn37"))))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-resolver-parent-pom)
+       (replace "maven-parent-pom" maven-parent-pom-34)))))
+
+(define-public maven-resolver-1.6-api
+  (package
+    (inherit maven-resolver-api)
+    (version (package-version maven-resolver-1.6-parent-pom))
+    (source (package-source maven-resolver-1.6-parent-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-resolver-api)
+       (replace "maven-resolver-parent-pom" maven-resolver-1.6-parent-pom)))))
+
+(define-public maven-resolver-1.6-spi
+  (package
+    (inherit maven-resolver-spi)
+    (version (package-version maven-resolver-1.6-parent-pom))
+    (source (package-source maven-resolver-1.6-parent-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-resolver-spi)
+       (replace "maven-resolver-api" maven-resolver-1.6-api)))))
+
+(define-public maven-resolver-1.6-test-util
+  (package
+    (inherit maven-resolver-test-util)
+    (version (package-version maven-resolver-1.6-parent-pom))
+    (source (package-source maven-resolver-1.6-parent-pom))
+    (inputs
+     (modify-inputs (package-inputs maven-resolver-test-util)
+       (replace "maven-resolver-api" maven-resolver-1.6-api)
+       (replace "maven-resolver-spi" maven-resolver-1.6-spi)))))
+
+(define-public maven-resolver-1.6-util
+  (package
+    (inherit maven-resolver-util)
+    (version (package-version maven-resolver-1.6-parent-pom))
+    (source (package-source maven-resolver-1.6-parent-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-resolver-util)
+       (replace "maven-resolver-api" maven-resolver-1.6-api)))
+    (native-inputs
+     (modify-inputs (package-native-inputs maven-resolver-util)
+       (replace "java-hamcrest-all" java-hamcrest-core)
+       (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
+(define-public maven-resolver-1.6-connector-basic
+  (package
+    (inherit maven-resolver-connector-basic)
+    (version (package-version maven-resolver-1.6-parent-pom))
+    (source (package-source maven-resolver-1.6-parent-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-resolver-connector-basic)
+       (replace "maven-resolver-api" maven-resolver-1.6-api)
+       (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+       (replace "maven-resolver-util" maven-resolver-1.6-util)))
+    (native-inputs
+     (modify-inputs (package-native-inputs maven-resolver-connector-basic)
+       (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
+(define-public maven-resolver-1.6-impl
+  (package
+    (inherit maven-resolver-impl)
+    (version (package-version maven-resolver-1.6-parent-pom))
+    (source (package-source maven-resolver-1.6-parent-pom))
+    (arguments
+     `(#:jar-name "maven-resolver-impl.jar"
+       #:source-dir "maven-resolver-impl/src/main/java"
+       #:test-dir "maven-resolver-impl/src/test"
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'generate-sisu
+           (lambda _
+             (mkdir-p "build/classes/META-INF/sisu")
+             (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
+               (lambda _
+                 (display
+                  (string-append
+                   ;; Build this list by looking for files containing "@Named"
+                   "org.eclipse.aether.internal.impl.DefaultArtifactResolver\n"
+                   "org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector\n"
+                   "org.eclipse.aether.internal.impl.DefaultChecksumPolicyProvider\n"
+                   "org.eclipse.aether.internal.impl.DefaultDeployer\n"
+                   "org.eclipse.aether.internal.impl.DefaultFileProcessor\n"
+                   "org.eclipse.aether.internal.impl.DefaultInstaller\n"
+                   "org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider\n"
+                   "org.eclipse.aether.internal.impl.DefaultMetadataResolver\n"
+                   "org.eclipse.aether.internal.impl.DefaultOfflineController\n"
+                   "org.eclipse.aether.internal.impl.DefaultRemoteRepositoryManager\n"
+                   "org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider\n"
+                   "org.eclipse.aether.internal.impl.DefaultRepositoryEventDispatcher\n"
+                   "org.eclipse.aether.internal.impl.DefaultRepositoryLayoutProvider\n"
+                   "org.eclipse.aether.internal.impl.DefaultRepositorySystem\n"
+                   "org.eclipse.aether.internal.impl.DefaultSyncContextFactory\n"
+                   "org.eclipse.aether.internal.impl.DefaultTransporterProvider\n"
+                   "org.eclipse.aether.internal.impl.DefaultUpdateCheckManager\n"
+                   "org.eclipse.aether.internal.impl.DefaultUpdatePolicyAnalyzer\n"
+                   "org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManagerFactory\n"
+                   "org.eclipse.aether.internal.impl.LoggerFactoryProvider\n"
+                   "org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory\n"
+                   "org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory\n"
+                   "org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory"))))
+             #t))
+         (replace 'install
+           (install-from-pom "maven-resolver-impl/pom.xml")))))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-resolver-impl)
+       (delete "maven-resolver-named-locks")
+       (replace "maven-resolver-api" maven-resolver-1.6-api)
+       (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+       (replace "maven-resolver-util" maven-resolver-1.6-util)
+       (replace "maven-resolver-parent-pom" maven-resolver-1.6-parent-pom)))
+    (native-inputs
+     (modify-inputs (package-native-inputs maven-resolver-impl)
+       (delete "java-hamcrest-all")
+       (delete "java-mockito-1")
+       (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
+(define-public maven-resolver-1.6-transport-file
+  (package
+    (inherit maven-resolver-transport-file)
+    (version (package-version maven-resolver-1.6-parent-pom))
+    (source (package-source maven-resolver-1.6-parent-pom))
+    (inputs
+     (modify-inputs (package-inputs maven-resolver-transport-file)
+       (delete "maven-wagon-provider-api")
+       (replace "maven-resolver-api" maven-resolver-1.6-api)
+       (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+       (replace "maven-resolver-util" maven-resolver-1.6-util)))
+    (native-inputs
+     (modify-inputs (package-native-inputs maven-resolver-transport-file)
+       (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
+(define-public maven-resolver-1.6-transport-http
+  (package
+    (inherit maven-resolver-transport-http)
+    (version (package-version maven-resolver-1.6-parent-pom))
+    (source (package-source maven-resolver-1.6-parent-pom))
+    (arguments
+     `(#:jar-name "maven-resolver-transport-http.jar"
+       #:source-dir "maven-resolver-transport-http/src/main/java"
+       #:test-dir "maven-resolver-transport-http/src/test"
+       #:jdk ,icedtea-8
+       ;; Tests all fail because
+       ;; org.eclipse.aether.transport.http.SslSocketFactory is not available.
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'generate-sisu
+           (lambda _
+             (mkdir-p "build/classes/META-INF/sisu")
+             (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
+               (lambda _
+                 (display "org.eclipse.aether.transport.http.HttpTransporterFactory\n"))))))))
+    (inputs
+     (modify-inputs (package-inputs maven-resolver-transport-http)
+       (delete "maven-wagon-provider-api")
+       (replace "maven-resolver-api" maven-resolver-1.6-api)
+       (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+       (replace "maven-resolver-util" maven-resolver-1.6-util)))
+    (native-inputs
+     (modify-inputs (package-native-inputs maven-resolver-transport-http)
+       (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
+
 ;; Many plugins require maven 3.0 as a dependency.
 (define maven-3.0-pom
   (package
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 14+ messages in thread

* bug#73432: [PATCH 2/3] gnu: Add maven-3.8-core
  2024-10-15  7:35 ` bug#73432: [PATCH 0/3] Fix clojure-tools-deps: wrong resolution of deps Kristiyan Kanchev
  2024-10-15  7:43   ` bug#73432: [PATCH 1/3] gnu: Add maven-resolver-1.6 Kristiyan Kanchev
@ 2024-10-15  7:43   ` Kristiyan Kanchev
  2024-10-15  7:43   ` bug#73432: [PATCH 3/3] gnu: clojure-tools-deps: Fix wrong resolution of clojure deps Kristiyan Kanchev
  2 siblings, 0 replies; 14+ messages in thread
From: Kristiyan Kanchev @ 2024-10-15  7:43 UTC (permalink / raw)
  To: 73432; +Cc: Kristiyan Kanchev, Julien Lepiller

* gnu/packages/maven.scm (maven-3.8-pom, maven-3.8-artifact, maven-3.8-model,
maven-3.8-builder-support, maven-3.8-settings, maven-3.8-settings-builder,
maven-3.8-model-builder, maven-3.8-repository-metadata,
maven-3.8-resolver-provider, maven-3.8-plugin-api, maven-3.8-core): New variables

Change-Id: Ie9e1b595532b8b7ded73b8d648ff04e13d0a55c7
---
 gnu/packages/maven.scm | 132 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 132 insertions(+)

diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 564a49fced..5c3cc5c708 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2277,6 +2277,9 @@ (define-public maven
 can be extended by plugins to utilise a number of other development tools for
 reporting or the build process.")))
 
+;; maven-core 3.8.* and its dependencies -- needed by some packages (at the time of
+;; writing, this is clojure-tools-deps 0.18)
+
 (define maven-resolver-1.6-parent-pom
   (package
     (inherit maven-resolver-parent-pom)
@@ -2453,6 +2456,135 @@ (define-public maven-resolver-1.6-transport-http
      (modify-inputs (package-native-inputs maven-resolver-transport-http)
        (replace "maven-resolver-test-util" maven-resolver-1.6-test-util)))))
 
+(define maven-3.8-pom
+  (package
+    (inherit maven-pom)
+    (version "3.8.8")
+    (source (origin
+              (inherit (package-source maven-pom))
+              (uri (string-append "mirror://apache/maven/"
+                                  "maven-3/" version "/source/"
+                                  "apache-maven-" version "-src.tar.gz"))
+              (sha256 (base32 "01q2g8sklxsys46i4dxqr89klcxfzz40f2kz4lxbdl1phyibqk92"))))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-pom)
+       (replace "maven-parent-pom" maven-parent-pom-35)))))
+
+(define-public maven-3.8-artifact
+  (package
+    (inherit maven-artifact)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-artifact)
+       (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-model
+  (package
+    (inherit maven-model)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-model)
+       (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-builder-support
+  (package
+    (inherit maven-builder-support)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-builder-support)
+       (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-settings
+  (package
+    (inherit maven-settings)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-settings)
+       (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-settings-builder
+  (package
+    (inherit maven-settings-builder)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-settings-builder)
+       (replace "maven-builder-support" maven-3.8-builder-support)
+       (replace "maven-settings" maven-3.8-settings)
+       (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-model-builder
+  (package
+    (inherit maven-model-builder)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-model-builder)
+       (replace "maven-artifact" maven-3.8-artifact)
+       (replace "maven-builder-support" maven-3.8-builder-support)
+       (replace "maven-model" maven-3.8-model)
+       (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-repository-metadata
+  (package
+    (inherit maven-repository-metadata)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-repository-metadata)
+       (replace "maven-pom" maven-3.8-pom)))))
+
+(define-public maven-3.8-resolver-provider
+  (package
+    (inherit maven-resolver-provider)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-resolver-provider)
+       (replace "maven-model" maven-3.8-model)
+       (replace "maven-model-builder" maven-3.8-model-builder)
+       (replace "maven-builder-support" maven-3.8-builder-support)
+       (replace "maven-repository-metadata" maven-3.8-repository-metadata)
+       (replace "maven-resolver-api" maven-resolver-1.6-api)
+       (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+       (replace "maven-resolver-impl" maven-resolver-1.6-impl)
+       (replace "maven-resolver-util" maven-resolver-1.6-util)))))
+
+(define-public maven-3.8-plugin-api
+  (package
+    (inherit maven-plugin-api)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-plugin-api)
+       (replace "maven-artifact" maven-3.8-artifact)
+       (replace "maven-model" maven-3.8-model)))))
+
+(define-public maven-3.8-core
+  (package
+    (inherit maven-core)
+    (version (package-version maven-3.8-pom))
+    (source (package-source maven-3.8-pom))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs maven-core)
+       (replace "maven-artifact" maven-3.8-artifact)
+       (replace "maven-resolver-provider" maven-3.8-resolver-provider)
+       (replace "maven-model" maven-3.8-model)
+       (replace "maven-model-builder" maven-3.8-model-builder)
+       (replace "maven-builder-support" maven-3.8-builder-support)
+       (replace "maven-settings" maven-3.8-settings)
+       (replace "maven-settings-builder" maven-3.8-settings-builder)
+       (replace "maven-plugin-api" maven-3.8-plugin-api)
+       (replace "maven-repository-metadata" maven-3.8-repository-metadata)
+       (replace "maven-resolver-api" maven-resolver-1.6-api)
+       (replace "maven-resolver-spi" maven-resolver-1.6-spi)
+       (replace "maven-resolver-impl" maven-resolver-1.6-impl)
+       (replace "maven-resolver-util" maven-resolver-1.6-util)))))
+
 ;; Many plugins require maven 3.0 as a dependency.
 (define maven-3.0-pom
   (package
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 14+ messages in thread

* bug#73432: [PATCH 3/3] gnu: clojure-tools-deps: Fix wrong resolution of clojure deps
  2024-10-15  7:35 ` bug#73432: [PATCH 0/3] Fix clojure-tools-deps: wrong resolution of deps Kristiyan Kanchev
  2024-10-15  7:43   ` bug#73432: [PATCH 1/3] gnu: Add maven-resolver-1.6 Kristiyan Kanchev
  2024-10-15  7:43   ` bug#73432: [PATCH 2/3] gnu: Add maven-3.8-core Kristiyan Kanchev
@ 2024-10-15  7:43   ` Kristiyan Kanchev
  2 siblings, 0 replies; 14+ messages in thread
From: Kristiyan Kanchev @ 2024-10-15  7:43 UTC (permalink / raw)
  To: 73432; +Cc: Kristiyan Kanchev

* gnu/packages/clojure.scm (clojure-tools-deps)[propagated-inputs]: Switched
to maven-core 3.8 and maven-resolver 1.6

Change-Id: Ibf43bdf7a060914a74717d5fe8e8e2c292d87ac7
---
 gnu/packages/clojure.scm | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm
index 09674f541e..baa49ba50a 100644
--- a/gnu/packages/clojure.scm
+++ b/gnu/packages/clojure.scm
@@ -814,15 +814,10 @@ (define-public clojure-tools-deps
                "src/main/clojure/clojure/tools/deps/util/maven.clj"
                (("clojure.tools.deps.util.s3-transporter")
                 "")))))))
-    (propagated-inputs (list maven-resolver-api
-                             maven-resolver-spi
-                             maven-resolver-impl
-                             maven-resolver-util
-                             maven-resolver-connector-basic
-                             maven-resolver-provider
-                             maven-core
-                             maven-resolver-transport-http
-                             maven-resolver-transport-file
+    (propagated-inputs (list maven-3.8-core
+                             maven-resolver-1.6-connector-basic
+                             maven-resolver-1.6-transport-http
+                             maven-resolver-1.6-transport-file
                              clojure-tools-gitlibs
                              clojure-tools-cli
                              clojure-data-xml))
-- 
2.43.0





^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-10-15  8:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23  2:21 bug#73432: clojure package is broken Andreas Bauer
2024-09-26 13:50 ` Kristiyan Kanchev
2024-10-03 14:00   ` Ludovic Courtès
2024-10-03 14:41     ` Roman Scherer
2024-10-03 14:48       ` Roman Scherer
2024-10-04  8:33         ` Kristiyan Kanchev
2024-10-04 10:51           ` Roman Scherer
2024-10-06 12:57             ` Rostislav Svoboda
2024-10-09 12:15               ` Kristiyan Kanchev
2024-10-09 12:18                 ` Roman Scherer
2024-10-15  7:35 ` bug#73432: [PATCH 0/3] Fix clojure-tools-deps: wrong resolution of deps Kristiyan Kanchev
2024-10-15  7:43   ` bug#73432: [PATCH 1/3] gnu: Add maven-resolver-1.6 Kristiyan Kanchev
2024-10-15  7:43   ` bug#73432: [PATCH 2/3] gnu: Add maven-3.8-core Kristiyan Kanchev
2024-10-15  7:43   ` bug#73432: [PATCH 3/3] gnu: clojure-tools-deps: Fix wrong resolution of clojure deps Kristiyan Kanchev

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.