Bug 55139 - Ebuild for app-sci/glpk cannot merge new package, only update (crashes)
Bug#: 55139 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: robbat2@gentoo.org Reported By: zenith@mpi-magdeburg.mpg.de
Component: Ebuilds
URL: 
Summary: Ebuild for app-sci/glpk cannot merge new package, only update (crashes)
Keywords:  
Status Whiteboard: 
Opened: 2004-06-25 04:17 0000
Description:   Opened: 2004-06-25 04:17 0000
The ebuild (marked ~x86) for glpk cannot merge since it requires itself to be
already merged (er, quite unlikely if I'm installing it).
The problem is in the Java section. During compile, the Java sections require
the presence of a installed glpk library; specifically, see
contrib/jni/c/Makefile for a line ending in -lglpk.
This can in principle not be avoided: compiling the java components requires to
have an installation already.
The original author did not notice this, possibly because he first implemented
a simple ebuild, and later added the Java part, which did install because a
glpk library was then in place.

I propose therefore to take out the Java section; it is not meant to be
compiled with the rest of the package but later, as an add-on.

Reproducible: Always
Steps to Reproduce:
1. Start from a machine with no glpk installed
2. ACCEPT_KEYWORDS=~x86 emerge app-sci/glpk

Actual Results:  
Crash occurs in the Java section, since it does not find the glpk library (it
has been compiled, but is not yet merged!)

Expected Results:  
Installation of glpk libraries was expected.

Compiler:
gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)

------- Comment #1 From Federico Zenith 2004-06-25 04:34:59 0000 -------
Created an attachment (id=34123) [details]
Ebuild without Java support

This ebuild installs glpk also if no glpk is already installed in the system.
Java add-on support has been taken out.

------- Comment #2 From Stephan Bourduas 2004-11-12 20:42:30 0000 -------
if you don't need java support, you can get around it by remove java support
like so:

# USE="doc -java" ACCEPT_KEYWORDS="~x86" emerge -av app-sci/glpk

------- Comment #3 From Federico Zenith 2004-11-22 22:56:34 0000 -------
Hi Stephan,
what I'm worried is that users should not be forced to browse through 
the bugzilla when they install glpk. If it is installed as a dependency 
of e.g. Kst, it becomes just frustrating.

I think that it should be a priority that the ebuild be able to work
by itself without user intervention.

That said, if someone manages to implement Java-component compilation
without a glpk already merged, I'll be happy - but until then, between
missing Java component and crashing ebuild, I'd take the missing Java.

------- Comment #4 From Patrick Kursawe 2005-01-05 08:26:56 0000 -------
Maybe the maintainer would be happy to know about this bug. Re-assigning.

------- Comment #5 From Robin Johnson 2005-01-06 03:58:24 0000 -------
I'm going to take the route of just removing the 4.2 version, as I'm pushing
4.7 to stable x86 now.

This would have been the solved long since if I knew about the bug.