Generation of ebuilds with maven build system

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Generation of ebuilds with maven build system

Benda Xu
Hi,

I am interested in packaging spark (bug 523412).  By default maven tries
to download 2.5GiB dependencies into my $HOME.  Spark is large and has a
lot of dependencies.  I bet converting the maven build system of spark
into a manual one[1] will be too complex.

In the mean time, I stepped upon java-ebuilder[2] for creating ebuilds
by parsing pom.xml.  I am maintaining the R overlay[3], which generates
10000+ ebuilds from R package repositories such as CRAN, BIOC, etc.
Similarly, g-sorcery[6] can be used to generate pypi (for python), elpa
(for emacs) ebuilds and overlays.  This is a good packaging model to
deal with large language-specific repositories and ecosystems.

What is the status of java-ebuilder, and is there an example for how to
use it?

maven has 153861 artifacts[4], making manually packaging for Gentoo
impossible.  How about using java-ebuilder to generate ebuilds from the
maven repository and expose them with java overlay[5]?  What do you say?

Cheers,
Benda

1. https://wiki.gentoo.org/wiki/Gentoo_Java_Packing_Policy#Maven
2. https://gitweb.gentoo.org/proj/java-ebuilder.git
3. layman -i R_Overlay
4. http://search.maven.org/#stats
5. layman -i java
6. https://github.com/jauhien/g-sorcery

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Generation of ebuilds with maven build system

Harald Alfred Weiner
Dear Benda,

although I am not a Gentoo developer myself,
I would be interested in joining effort to get Maven packages
working in Gentoo. It is obvious that some kind of automation
would be beneficial for Gentoo - to get more recent up-to-date
package versions somehow available in the Gentoo tree.

Maybe the page in the Debian Wiki [1] might also be interesting.

[1] https://wiki.debian.org/Java/MavenBuilder

Best wishes,

Harald.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Generation of ebuilds with maven build system

Austin English
On 10/02/2016 03:44 PM, Harald Weiner wrote:

> Dear Benda,
>
> although I am not a Gentoo developer myself,
> I would be interested in joining effort to get Maven packages
> working in Gentoo. It is obvious that some kind of automation
> would be beneficial for Gentoo - to get more recent up-to-date
> package versions somehow available in the Gentoo tree.
>
> Maybe the page in the Debian Wiki [1] might also be interesting.
>
> [1] https://wiki.debian.org/Java/MavenBuilder
>
> Best wishes,
>
> Harald.
>
>
>
That debian code, if we could port/use some of it, could be extremely
helpful.

Source is here, fyi:
https://anonscm.debian.org/git/pkg-java/maven-debian-helper.git/

appears to mostly be bash, some perl. I didn't investigate very deeply.

--
-Austin
GPG: 14FB D7EA A041 937B


signature.asc (853 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Generation of ebuilds with maven build system

Benda Xu
Thanks Harald and Austin for pointing out the maven-debian-helper.

Austin English <[hidden email]> writes:

> That debian code, if we could port/use some of it, could be extremely
> helpful.
>
> Source is here, fyi:
> https://anonscm.debian.org/git/pkg-java/maven-debian-helper.git/
>
> appears to mostly be bash, some perl. I didn't investigate very deeply.

That looks interesting.  I will look into it.


In the mean time, I have updated the java-ebuilder.  You can try it out

  # emerge app-portage/java-ebuilder

A preliminary overlay generated from the dependency tree of
org.apache.spark:spark-core is at

  https://github.com/heroxbd/maven-overlay

Cheers,
Benda

signature.asc (834 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Generation of ebuilds with maven build system

Harald Alfred Weiner
Dear Benda,

I have tried emerging java-ebuilder but found some bugs in the
ebuild which I reported at https://bugs.gentoo.org/show_bug.cgi?id=597992
together with a proposed fix.

Can you please take a look?

Best wishes,

Harald.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Generation of ebuilds with maven build system

Benda Xu
Hi Harald

"Harald Weiner" <[hidden email]> writes:

> I have tried emerging java-ebuilder but found some bugs in the ebuild
> which I reported at

> https://bugs.gentoo.org/show_bug.cgi?id=597992

> together with a proposed fix.
>
> Can you please take a look?

Fixed it in tree.

Thanks a lot,
Benda

Loading...