<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>55139</bug_id>
          
          <creation_ts>2004-06-25 04:17 0000</creation_ts>
          <short_desc>Ebuild for app-sci/glpk cannot merge new package, only update (crashes)</short_desc>
          <delta_ts>2005-01-06 03:58:24 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>zenith@mpi-magdeburg.mpg.de</reporter>
          <assigned_to>robbat2@gentoo.org</assigned_to>
          <cc>sci@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>zenith@mpi-magdeburg.mpg.de</who>
            <bug_when>2004-06-25 04:17:08 0000</bug_when>
            <thetext>The ebuild (marked ~x86) for glpk cannot merge since it requires itself to be already merged (er, quite unlikely if I&apos;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)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zenith@mpi-magdeburg.mpg.de</who>
            <bug_when>2004-06-25 04:34:59 0000</bug_when>
            <thetext>Created an attachment (id=34123)
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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stephan.bourduas@gmail.com</who>
            <bug_when>2004-11-12 20:42:30 0000</bug_when>
            <thetext>if you don&apos;t need java support, you can get around it by remove java support like so:

# USE=&quot;doc -java&quot; ACCEPT_KEYWORDS=&quot;~x86&quot; emerge -av app-sci/glpk</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zenith@mpi-magdeburg.mpg.de</who>
            <bug_when>2004-11-22 22:56:34 0000</bug_when>
            <thetext>Hi Stephan,
what I&apos;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&apos;ll be happy - but until then, between
missing Java component and crashing ebuild, I&apos;d take the missing Java.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2005-01-05 08:26:56 0000</bug_when>
            <thetext>Maybe the maintainer would be happy to know about this bug. Re-assigning.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2005-01-06 03:58:24 0000</bug_when>
            <thetext>I&apos;m going to take the route of just removing the 4.2 version, as I&apos;m pushing 4.7 to stable x86 now.

This would have been the solved long since if I knew about the bug.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>34123</attachid>
            <date>2004-06-25 04:34 0000</date>
            <desc>Ebuild without Java support</desc>
            <filename>glpk-4.2.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBUZWNobm9sb2dpZXMsIEluYy4KIyBEaXN0cmli
dXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIHYy
CiMgJEhlYWRlcjogJAoKREVTQ1JJUFRJT049IkdOVSBMaW5lYXIgUHJvZ3JhbW1pbmcgS2l0IgpT
UkNfVVJJPSJtaXJyb3I6Ly9nbnUvJHtQTn0vJHtQfS50YXIuZ3oiCkhPTUVQQUdFPSJodHRwOi8v
d3d3LmdudS5vcmcvc29mdHdhcmUvJHtQTn0vIgoKU0xPVD0iMCIKTElDRU5TRT0iR1BMLTIiCktF
WVdPUkRTPSJ+eDg2IgpJVVNFPSJkb2MiCgpSREVQRU5EPSJzeXMtbGlicy9nbGliYyIKREVQRU5E
PSI+PXN5cy1kZXZlbC9nY2MtMy4yKiAke1JERVBFTkR9CgkJIGRvYz8gKCB2aXJ0dWFsL2dob3N0
c2NyaXB0ICkiCgpzcmNfY29tcGlsZSgpIHsKCSMgVGhlcmUgaXMgYSBtaXNzaW5nIC1sbSBpbiBl
eGFtcGxlL01ha2VmaWxlLCBmaXhpbmcgaXQgaGVyZQoJTElCUz0iJHtMSUJTfSAtbG0iIGVjb25m
IC0tZW5hYmxlLXNoYXJlZCB8fCBkaWUKCWVtYWtlIHx8IGRpZSAiZW1ha2UgZmFpbGVkIgp9Cgpz
cmNfaW5zdGFsbCgpIHsKCW1ha2UgREVTVERJUj0ke0R9IGluc3RhbGwgfHwgZGllICJtYWtlIGlu
c3RhbGwgZmFpbGVkIgoJIyBiYXNlIGRvY3MKCWRvZG9jIEFVVEhPUlMgQ09QWUlORyBDaGFuZ2VM
b2cgSU5TVEFMTCBORVdTIFJFQURNRQoJI2V4YW1wbGVzCglkb2NpbnRvIGV4YW1wbGVzCgoJZG9k
b2MgJHtTfS9leGFtcGxlcy8qCgkjZG9jcwoJaWYgdXNlIGRvYzsgdGhlbgoJCWNkICR7U30vZG9j
CgkJZm9yIGkgaW4gKi5wczsgZG8KCQkJcHMycGRmMTQgJHtpfQoJCWRvbmUKCWZpCglkb2RvYyAk
e1N9L2RvYy8qCn0K
</data>        

          </attachment>
    </bug>

</bugzilla>