public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Emerging Tomcat without Eclipse
@ 2016-02-20 17:43 Matthew Smith
  2016-02-20 18:02 ` James Le Cuirot
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Smith @ 2016-02-20 17:43 UTC (permalink / raw
  To: gentoo-java

Hi,

I am trying to install the Tomcat server (specifically
www-servers/tomcat-8.0.30:8::gentoo).
However, it depends on eclipse-ecj -- I am unsure of the reasoning
behind this, but it is quite annoying because emerging this would
bring in X and many other unwated packages.

Is there a way to install Tomcat 8 without Eclipse? I did not see a
USE flag for this.

Thanks


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

* Re: [gentoo-java] Emerging Tomcat without Eclipse
  2016-02-20 17:43 [gentoo-java] Emerging Tomcat without Eclipse Matthew Smith
@ 2016-02-20 18:02 ` James Le Cuirot
  2016-02-20 18:09   ` Matthew Smith
  0 siblings, 1 reply; 6+ messages in thread
From: James Le Cuirot @ 2016-02-20 18:02 UTC (permalink / raw
  To: Matthew Smith; +Cc: gentoo-java

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

On Sat, 20 Feb 2016 17:43:13 +0000
Matthew Smith <maaattss@gmail.com> wrote:

> I am trying to install the Tomcat server (specifically
> www-servers/tomcat-8.0.30:8::gentoo).
> However, it depends on eclipse-ecj -- I am unsure of the reasoning
> behind this, but it is quite annoying because emerging this would
> bring in X and many other unwated packages.

eclipse-ecj is not the whole of Eclipse but just the Java compiler it
uses internally. It has long been a requirement of Tomcat. It is very
small and carries no dependencies that you wouldn't already get from
Tomcat itself.

-- 
James Le Cuirot (chewi)
Gentoo Linux Developer

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

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

* Re: [gentoo-java] Emerging Tomcat without Eclipse
  2016-02-20 18:02 ` James Le Cuirot
@ 2016-02-20 18:09   ` Matthew Smith
  2016-02-20 19:14     ` Claudio Roberto França Pereira
  2016-02-20 19:22     ` James Le Cuirot
  0 siblings, 2 replies; 6+ messages in thread
From: Matthew Smith @ 2016-02-20 18:09 UTC (permalink / raw
  To: James Le Cuirot; +Cc: gentoo-java

I now understand that eclipse-ecj is a requirement of Tomcat, however
I do not understand why it requires X11.
After removing the alsa, cups and gtk use flags from icedtea-bin,
emerge still wants to pull in X11 and an assortment of packages
related to X11.
Do you have any ideas on how I can emerge tomcat without bringing in
X? I'd rather keep my server headless.

Thanks again.

On 20 February 2016 at 18:02, James Le Cuirot <chewi@gentoo.org> wrote:
> On Sat, 20 Feb 2016 17:43:13 +0000
> Matthew Smith <maaattss@gmail.com> wrote:
>
>> I am trying to install the Tomcat server (specifically
>> www-servers/tomcat-8.0.30:8::gentoo).
>> However, it depends on eclipse-ecj -- I am unsure of the reasoning
>> behind this, but it is quite annoying because emerging this would
>> bring in X and many other unwated packages.
>
> eclipse-ecj is not the whole of Eclipse but just the Java compiler it
> uses internally. It has long been a requirement of Tomcat. It is very
> small and carries no dependencies that you wouldn't already get from
> Tomcat itself.
>
> --
> James Le Cuirot (chewi)
> Gentoo Linux Developer


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

* Re: [gentoo-java] Emerging Tomcat without Eclipse
  2016-02-20 18:09   ` Matthew Smith
@ 2016-02-20 19:14     ` Claudio Roberto França Pereira
  2016-02-20 19:22     ` James Le Cuirot
  1 sibling, 0 replies; 6+ messages in thread
From: Claudio Roberto França Pereira @ 2016-02-20 19:14 UTC (permalink / raw
  To: gentoo-java; +Cc: James Le Cuirot

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

Use emerge with the -t option to show the tree of dependencies, and it will
help you understand what is pulling xorg into the list of packages to be
merged.
On Feb 20, 2016 4:10 PM, "Matthew Smith" <maaattss@gmail.com> wrote:

> I now understand that eclipse-ecj is a requirement of Tomcat, however
> I do not understand why it requires X11.
> After removing the alsa, cups and gtk use flags from icedtea-bin,
> emerge still wants to pull in X11 and an assortment of packages
> related to X11.
> Do you have any ideas on how I can emerge tomcat without bringing in
> X? I'd rather keep my server headless.
>
> Thanks again.
>
> On 20 February 2016 at 18:02, James Le Cuirot <chewi@gentoo.org> wrote:
> > On Sat, 20 Feb 2016 17:43:13 +0000
> > Matthew Smith <maaattss@gmail.com> wrote:
> >
> >> I am trying to install the Tomcat server (specifically
> >> www-servers/tomcat-8.0.30:8::gentoo).
> >> However, it depends on eclipse-ecj -- I am unsure of the reasoning
> >> behind this, but it is quite annoying because emerging this would
> >> bring in X and many other unwated packages.
> >
> > eclipse-ecj is not the whole of Eclipse but just the Java compiler it
> > uses internally. It has long been a requirement of Tomcat. It is very
> > small and carries no dependencies that you wouldn't already get from
> > Tomcat itself.
> >
> > --
> > James Le Cuirot (chewi)
> > Gentoo Linux Developer
>
>

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

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

* Re: [gentoo-java] Emerging Tomcat without Eclipse
  2016-02-20 18:09   ` Matthew Smith
  2016-02-20 19:14     ` Claudio Roberto França Pereira
@ 2016-02-20 19:22     ` James Le Cuirot
  2016-02-20 19:48       ` Matthew Smith
  1 sibling, 1 reply; 6+ messages in thread
From: James Le Cuirot @ 2016-02-20 19:22 UTC (permalink / raw
  To: gentoo-java

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

On Sat, 20 Feb 2016 18:09:47 +0000
Matthew Smith <maaattss@gmail.com> wrote:

> I now understand that eclipse-ecj is a requirement of Tomcat, however
> I do not understand why it requires X11.
> After removing the alsa, cups and gtk use flags from icedtea-bin,
> emerge still wants to pull in X11 and an assortment of packages
> related to X11.
> Do you have any ideas on how I can emerge tomcat without bringing in
> X? I'd rather keep my server headless.

Set the headless-awt USE flag against icedtea-bin. Note the description.

  Don't install the X backend for AWT, needed by some GUIs
  (used to be X flag)

Admittedly it is unusual to set a flag to *not* install something but
we couldn't really call the flag headful-awt or non-headless-awt. This
name was chosen with input from upstream.

We stopped using the X flag because in the case of oracle-jdk-bin, both
AWT and JavaFX require X11. We needed to be able to differentiate
between these and we wanted to keep the flags consistent across the
different JVM packages.

-- 
James Le Cuirot (chewi)
Gentoo Linux Developer

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

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

* Re: [gentoo-java] Emerging Tomcat without Eclipse
  2016-02-20 19:22     ` James Le Cuirot
@ 2016-02-20 19:48       ` Matthew Smith
  0 siblings, 0 replies; 6+ messages in thread
From: Matthew Smith @ 2016-02-20 19:48 UTC (permalink / raw
  To: gentoo-java

Setting the headless-awt USE flag on icedtea-bin worked fine.

Thank you again for the help.

On 20 February 2016 at 19:22, James Le Cuirot <chewi@gentoo.org> wrote:
> On Sat, 20 Feb 2016 18:09:47 +0000
> Matthew Smith <maaattss@gmail.com> wrote:
>
>> I now understand that eclipse-ecj is a requirement of Tomcat, however
>> I do not understand why it requires X11.
>> After removing the alsa, cups and gtk use flags from icedtea-bin,
>> emerge still wants to pull in X11 and an assortment of packages
>> related to X11.
>> Do you have any ideas on how I can emerge tomcat without bringing in
>> X? I'd rather keep my server headless.
>
> Set the headless-awt USE flag against icedtea-bin. Note the description.
>
>   Don't install the X backend for AWT, needed by some GUIs
>   (used to be X flag)
>
> Admittedly it is unusual to set a flag to *not* install something but
> we couldn't really call the flag headful-awt or non-headless-awt. This
> name was chosen with input from upstream.
>
> We stopped using the X flag because in the case of oracle-jdk-bin, both
> AWT and JavaFX require X11. We needed to be able to differentiate
> between these and we wanted to keep the flags consistent across the
> different JVM packages.
>
> --
> James Le Cuirot (chewi)
> Gentoo Linux Developer


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

end of thread, other threads:[~2016-02-20 19:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20 17:43 [gentoo-java] Emerging Tomcat without Eclipse Matthew Smith
2016-02-20 18:02 ` James Le Cuirot
2016-02-20 18:09   ` Matthew Smith
2016-02-20 19:14     ` Claudio Roberto França Pereira
2016-02-20 19:22     ` James Le Cuirot
2016-02-20 19:48       ` Matthew Smith

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