unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>,
	guix-devel <guix-devel@gnu.org>
Subject: Re: Testing the maven build system: Symlink error on duplicate inputs
Date: Sun, 20 Sep 2020 07:35:44 -0400	[thread overview]
Message-ID: <96845022-97FD-4F69-9C3B-39144BD68C7F@lepiller.eu> (raw)
In-Reply-To: <20200920105555.7a95f05f@alma-ubu>



Le 20 septembre 2020 04:55:55 GMT-04:00, "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de> a écrit :
>Hi Julien,
>Hi Guix,
>
>thanks for adding the maven-build-system to Guix! This week I found the
>time to look over it and tested it. It works great!
>
>First I head a problem with symlinks when I tried out your example from
>your git:
>
> […]
>
>Then I noticed that the configure phase has duplicate inputs and that
>lead to the failure. After removing all native-inputs from the example,
>I was able to successfully build this Hello-World example.

Yes, that package was made for a slightly different version of tge build systen than what I pushed, so it's not too surprising that it doesn't work as-is :)

>
>Would that maybe cause real problems when the same two inputs come from
>different dependencies in real-world examples?
>
>I quickly tried to find a real-world problem to play with like slf4j or
>Apache Commons, but all had either direct dependencies or
>plugin-dependencies.
>
>Does someone have plans to add real-world packages that make use of the
>maven-build-system? Next, an automated importer with
>dependency-resolution would be nice :-)

The issue with the importer is that maven doesn't record source information. We could have dependency resolution, but the resulting packages will lack any source (and for most packages also homepage and description).

One thing we have to decide on is what to do with maven build dependencies. Currently, things like test dependencies of dependencies are in the graph below maven, which means we have a lot of packages that cannot use the maven-build-system.

There are two possibilities: we can change the bootstrap path to maven to be minimal and only include runtime dependencies, and eventually rebuild maven with the maven-build-system. The other possibility is to keep it as is, and convert packages to install to lib/m2 as needed.

I tend to prefer the first solution, but that's also a lot of work. Our current maven package has bugs that are probably due to the way we build it (it doesn't honor user config, the build and test targets are mixed together, so are dependencies…). Building a proper maven with a minimal maven could help ensure it's built in the intended way, so these bugs could go away.

wdyt?

>
>Thanks Julien for working on this,
>
>Björn

Thanks for your interest :)


  reply	other threads:[~2020-09-20 11:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-20  8:55 Testing the maven build system: Symlink error on duplicate inputs Björn Höfling
2020-09-20 11:35 ` Julien Lepiller [this message]
2020-10-23 20:54   ` Björn Höfling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96845022-97FD-4F69-9C3B-39144BD68C7F@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=bjoern.hoefling@bjoernhoefling.de \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).