public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Generation of ebuilds with maven build system
@ 2016-08-30 23:09 Benda Xu
  2016-10-02 20:44 ` Harald Weiner
  0 siblings, 1 reply; 6+ messages in thread
From: Benda Xu @ 2016-08-30 23:09 UTC (permalink / raw
  To: gentoo-java

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


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

* Re: [gentoo-java] Generation of ebuilds with maven build system
  2016-08-30 23:09 [gentoo-java] Generation of ebuilds with maven build system Benda Xu
@ 2016-10-02 20:44 ` Harald Weiner
  2016-10-19  5:15   ` Austin English
  0 siblings, 1 reply; 6+ messages in thread
From: Harald Weiner @ 2016-10-02 20:44 UTC (permalink / raw
  To: heroxbd, gentoo-java


[-- Attachment #1.1: Type: text/plain, Size: 457 bytes --]

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.



[-- Attachment #1.2: HTML --]
[-- Type: text/html, Size: 785 bytes --]

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

* Re: [gentoo-java] Generation of ebuilds with maven build system
  2016-10-02 20:44 ` Harald Weiner
@ 2016-10-19  5:15   ` Austin English
  2016-10-21  1:24     ` Benda Xu
  0 siblings, 1 reply; 6+ messages in thread
From: Austin English @ 2016-10-19  5:15 UTC (permalink / raw
  To: gentoo-java, heroxbd


[-- Attachment #1.1: Type: text/plain, Size: 833 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 837 bytes --]

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

* Re: [gentoo-java] Generation of ebuilds with maven build system
  2016-10-19  5:15   ` Austin English
@ 2016-10-21  1:24     ` Benda Xu
  2016-10-28 16:29       ` Harald Weiner
  0 siblings, 1 reply; 6+ messages in thread
From: Benda Xu @ 2016-10-21  1:24 UTC (permalink / raw
  To: gentoo-java

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

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

Austin English <austinenglish@gmail.com> 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

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

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

* Re: [gentoo-java] Generation of ebuilds with maven build system
  2016-10-21  1:24     ` Benda Xu
@ 2016-10-28 16:29       ` Harald Weiner
  2016-10-29  8:52         ` Benda Xu
  0 siblings, 1 reply; 6+ messages in thread
From: Harald Weiner @ 2016-10-28 16:29 UTC (permalink / raw
  To: heroxbd, gentoo-java


[-- Attachment #1.1: Type: text/plain, Size: 249 bytes --]

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.




[-- Attachment #1.2: HTML --]
[-- Type: text/html, Size: 772 bytes --]

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

* Re: [gentoo-java] Generation of ebuilds with maven build system
  2016-10-28 16:29       ` Harald Weiner
@ 2016-10-29  8:52         ` Benda Xu
  0 siblings, 0 replies; 6+ messages in thread
From: Benda Xu @ 2016-10-29  8:52 UTC (permalink / raw
  To: gentoo-java

Hi Harald

"Harald Weiner" <Harald.Weiner@jku.at> 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


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

end of thread, other threads:[~2016-10-29  8:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-30 23:09 [gentoo-java] Generation of ebuilds with maven build system Benda Xu
2016-10-02 20:44 ` Harald Weiner
2016-10-19  5:15   ` Austin English
2016-10-21  1:24     ` Benda Xu
2016-10-28 16:29       ` Harald Weiner
2016-10-29  8:52         ` Benda Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox