libcommons-csv-java should depend on a headless runtime

Bug #598017 reported by Thierry Carrez
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Server papercuts
Fix Released
Medium
Thierry Carrez
commons-csv (Ubuntu)
Fix Released
Low
Thierry Carrez
Lucid
Fix Released
Low
Thierry Carrez

Bug Description

libcommons-csv-java depends on default-jre, which pulls a full JRE. It is used by solr, which is installed on server environments. Fixing this library to only depend on "default-jre-headless | java2-runtime-headless" would avoid installing X libraries when installing solr.

== SRU report ==

Impact:
Due to this bug, Apache Solr (enterprise search) cannot be installed via the repo packages on Ubuntu Server without installing a huge number of desktop dependencies, including a wide array of media codecs and other cruft.

Dev branch fix:
This was fixed in Maverick by depending on headless runtimes instead.

Minimal patch:
-Depends: openjdk-6-jre | java2-runtime
+Depends: openjdk-6-jre-headless | java2-runtime-headless

TEST CASE:
On a new Lucid server, try:
apt-get install libcommons-csv-java
On an affected setup, it tries to install 70+ packages, including "libpango1.0-0"
On a fixed setup, it should install less than 20 packages.

Regression potential;
This only affects reverse dependencies of libcommons-csv-java (i.e. solr-common) and does not affect already-installed setups, so the regression potential is very limited.

Thierry Carrez (ttx)
Changed in commons-csv (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Thierry Carrez (ttx)
Changed in server-papercuts:
importance: Undecided → Medium
milestone: none → maverick-alpha-3
status: New → Triaged
Thierry Carrez (ttx)
Changed in server-papercuts:
assignee: nobody → Thierry Carrez (ttx)
Thierry Carrez (ttx)
Changed in commons-csv (Ubuntu):
assignee: nobody → Thierry Carrez (ttx)
status: Triaged → In Progress
Changed in server-papercuts:
status: Triaged → In Progress
Revision history for this message
Thierry Carrez (ttx) wrote :

Fix uploaded and diff submitted to Debian

Changed in commons-csv (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package commons-csv - 0.1-SNAPSHOT+svn678580-1ubuntu1

---------------
commons-csv (0.1-SNAPSHOT+svn678580-1ubuntu1) maverick; urgency=low

  * debian/control: Depend on -headless runtimes (LP: #598017)
  * debian/rules, debian/control: Switch to default-jdk
 -- Thierry Carrez <email address hidden> Mon, 05 Jul 2010 15:56:50 +0200

Changed in commons-csv (Ubuntu):
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in server-papercuts:
status: In Progress → Fix Released
Revision history for this message
Tobias G. Pfeiffer (tgpfeiffer) wrote :

This also applies to lucid, please fix there as well.

Thierry Carrez (ttx)
Changed in commons-csv (Ubuntu Lucid):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
JasonPorter (jasonporter) wrote :

Due to this bug, Apache Solr (enterprise search) cannot be installed via the repo packages on Ubuntu Server without installing a huge number of desktop dependencies, including a wide array of media codecs and other cruft. This is actually an issue for us on a production Lucid server.

Please fix for Lucid as well, in backports at the very least! Many thanks...

Revision history for this message
Tobias G. Pfeiffer (tgpfeiffer) wrote :

JasonPorter: We had the same problem, now using the Sun JDK (from the partner repository) instead.

Thierry Carrez (ttx)
Changed in commons-csv (Ubuntu Lucid):
assignee: nobody → Thierry Carrez (ttx)
status: Triaged → In Progress
Revision history for this message
Thierry Carrez (ttx) wrote :

Fix uploaded to -proposed, pending SRU team review.

description: updated
Changed in commons-csv (Ubuntu Lucid):
status: In Progress → Confirmed
Revision history for this message
Tobias G. Pfeiffer (tgpfeiffer) wrote :

By the way, JasonPorter, this issue being resolved does not help you for your problem, because the JDK (that you need for solr) suffers from the same problem (cf. #257857) and there's no fix underway for that problem, as it seems.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted commons-csv into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in commons-csv (Ubuntu Lucid):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
Thierry Carrez (ttx) wrote :

Verification on a bare Lucid server install:

Without -proposed: "sudo apt-get install libcommons-csv-java" installs 72 new packages.
With -proposed: "sudo apt-get install libcommons-csv-java" installs 15 new packages.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package commons-csv - 0.1-SNAPSHOT+svn678580-1ubuntu0.1

---------------
commons-csv (0.1-SNAPSHOT+svn678580-1ubuntu0.1) lucid-proposed; urgency=low

  * Depend on -headless runtimes, to avoid pulling desktop libraries on
    SolR server installs (LP: #598017)
 -- Thierry Carrez (ttx) <email address hidden> Mon, 27 Jun 2011 16:13:35 +0200

Changed in commons-csv (Ubuntu Lucid):
status: Fix Committed → Fix Released
tags: added: testcase
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.