Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170305 - =dev-java/gluegen-2.3.2: new ebuild
Summary: =dev-java/gluegen-2.3.2: new ebuild
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
URL: http://jogamp.org/gluegen/www/
Whiteboard:
Keywords: EBUILD, InOverlay
Depends on:
Blocks: 143019 202517 287267 300503 388033
  Show dependency tree
 
Reported: 2007-03-10 18:54 UTC by Alistair Bush (RETIRED)
Modified: 2019-05-14 21:37 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
This is a revision bump. (gluegen-20090618.ebuild,1.58 KB, text/plain)
2011-02-13 21:00 UTC, Richard
Details
new version dump (gluegen-20110226.ebuild,1.68 KB, text/plain)
2011-07-28 19:15 UTC, Karsten Merkle
Details
gluegen-2.3.1.ebuild (gluegen-2.3.1.ebuild,1.72 KB, text/plain)
2015-08-24 10:38 UTC, Karsten Merkle
Details
2.2.4-dont-copy-jars.patch (2.2.4-dont-copy-jars.patch,733 bytes, patch)
2015-08-28 17:01 UTC, Karsten Merkle
Details | Diff
2.2.4-dont-strip.patch (2.2.4-dont-strip.patch,1.06 KB, patch)
2015-08-28 17:03 UTC, Karsten Merkle
Details | Diff
2.2.4-dont-test-archive.patch (2.2.4-dont-test-archive.patch,677 bytes, patch)
2015-08-28 17:08 UTC, Karsten Merkle
Details | Diff
gluegen-2.3.2.ebuild (gluegen-2.3.2.ebuild,1.87 KB, text/plain)
2018-01-23 23:28 UTC, Fabio Rossi
Details
gluegen-2.3.2-dont-copy-jars.patch (gluegen-2.3.2-dont-copy-jars.patch,695 bytes, patch)
2018-01-23 23:29 UTC, Fabio Rossi
Details | Diff
gluegen-2.3.2-dont-strip.patch (gluegen-2.3.2-dont-strip.patch,1.02 KB, patch)
2018-01-23 23:29 UTC, Fabio Rossi
Details | Diff
gluegen-2.3.2-dont-test-archive.patch (gluegen-2.3.2-dont-test-archive.patch,639 bytes, patch)
2018-01-23 23:30 UTC, Fabio Rossi
Details | Diff
gluegen-2.3.2-no-static-libstdc++.patch (gluegen-2.3.2-no-static-libstdc++.patch,4.17 KB, patch)
2018-01-23 23:30 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair Bush (RETIRED) gentoo-dev 2007-03-10 18:54:44 UTC
GlueGen is a tool which automatically generates the Java and JNI code necessary to call C libraries. It reads as input ANSI C header files and separate configuration files which provide control over many aspects of the glue code generation. GlueGen uses a complete ANSI C parser and an internal representation (IR) capable of representing all C types to represent the APIs for which it generates interfaces.


GlueGen is currently used to generate the JOGL interface to the OpenGL 3D graphics API and the JOAL interface to the OpenAL audio library.

An initial ebuild for this is available in the migrated-java-experimental-overlay
Comment 1 justXi 2009-02-24 10:36:30 UTC
Works here for x86 too.
Comment 2 Ilyas LANDIKOV 2010-01-14 10:57:47 UTC
(In reply to comment #0)
> GlueGen is a tool which automatically generates the Java and JNI code necessary
> to call C libraries. It reads as input ANSI C header files and separate
> configuration files which provide control over many aspects of the glue code
> generation. GlueGen uses a complete ANSI C parser and an internal
> representation (IR) capable of representing all C types to represent the APIs
> for which it generates interfaces.
> 
> 
> GlueGen is currently used to generate the JOGL interface to the OpenGL 3D
> graphics API and the JOAL interface to the OpenAL audio library.
> 
> An initial ebuild for this is available in the
> migrated-java-experimental-overlay
> 

x86_64
works fine
Comment 3 Richard 2010-05-21 18:20:48 UTC
The following thread chronicles my attempt to get Java OpenGL Acceleration working in a Java Applet called Runescape:

http://forums.gentoo.org/viewtopic-t-827856-highlight-.html

After installing dev-java/gluegen and this dev-java/jogl from the java-overlay overlay and making some additions to Java's runtime parameters via the Java Control Panel, I was able to enable hardware acceleration. The specific parameters were:

-classpath "/usr/share/jogl/lib/jogl.jar:/usr/share/gluegen/lib/gluegen-rt.jar" -Djava.library.path="/usr/lib/gluegen/:/usr/lib/jogl/"

After doing this, my system works perfectly with this ebuild emerged.

I suggest that a minor changes be made to this ebuild such that it will add itself to the default class path and java library path for all users on a system upon installation and remove itself upon uninstallation. This is assuming that there are hooks for doing that in the jdk. If there are no such hooks, then the ebuild should be modified to append a warning with instructions to manually modify the Java Control Panel's runtime parameters field to append the appropriate jar file and directory to the class and library paths respectively.
Comment 4 Richard 2011-02-13 21:00:57 UTC
Created attachment 262387 [details]
This is a revision bump.

The gluegen package in Gentoo goes by date, but gluegen has its own version numbering scheme. The bundled version of gluegen is 1.0b6 to my knowledge. The java-overlay should probably be modified to use the upstream version numbering for the dev-java/gluegen package.

Anyway, a critical security vulnerability was discovered in JOGL 1.1.1 roughly two years ago. JOGL 1.1.1a was released to deal with the security vulnerability, but that version number made it into Gentoo. It depends a newer version of gluegen than JOGL 1.1.1, so it is necessary to do a revision bump on gluegen in order to update JOGL to 1.1.1a.

The version of gluegen used in JOGL 1.1.1a appears to be 1.0b6. Ignoring the upstream version numbering, it is possible to produce a new tarball for the needed revision bump from the JOGL 1.1.1a tarball. If you obtain the jogl-1.1.1a.ebuild from #143019 and install it in a local overlay, you can run the following commands as root to generate the tarball:

ebuild $(equery which =dev-java/jogl-1.1.1a) unpack
cd /var/tmp/portage/dev-java/jogl-1.1.1a/work/
mv gluegen/ gluegen-20090618
tar -cjf /usr/portage/distfiles/gluegen-20090618.tar.bz2 gluegen-20090618/
chown portage /usr/portage/distfiles/gluegen-20090618.tar.bz2
Comment 5 Karsten Merkle 2011-07-28 19:15:17 UTC
Created attachment 281323 [details]
new version dump

gluegen moved to git ...
this is the v2.0-rc2 tagged version
Comment 6 Karsten Merkle 2015-08-24 10:38:24 UTC
Created attachment 410030 [details]
gluegen-2.3.1.ebuild

version bump 2.3.1
added jsr305 and jcpp dependencies
Comment 7 Patrice Clement gentoo-dev 2015-08-25 20:00:56 UTC
Hi Karsten

Thanks for your contribution. I'm running into two errors with this ebuild:

1) 50     epatch "${FILESDIR}"/${PV}-*.patch

^^ this is indicating that some patches are applied during the src_prepare phase. Could you please attach them?

2) during the generate.java ant task execution, I got the following error:

generate.java:
    [antlr] ANTLR Parser Generator   Version 2.7.7 (20150518)   1989-2005
    [javac] Compiling 102 source files to /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/build/classes
    [javac] Since fork is false, ignoring memoryMaximumSize setting.
    [javac] Note: /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/src/java/com/jogamp/common/nio/AbstractBuffer.java us
es unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/build/classes
    [javac] Compiling 115 source files to /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/build/classes
    [javac] Since fork is false, ignoring memoryMaximumSize setting.
    [javac] Note: /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/src/java/com/jogamp/gluegen/ant/GlueGenTask.java uses
 or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/build
      [jar] Building jar: /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/build/gluegen.jar
     [copy] Copying 1 file to /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/build
     [copy] Copying 1 file to /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/build
      [jar] Building jar: /var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/build/gluegen-rt.jar

BUILD FAILED
/var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/make/build.xml:762: The following error occurred while executing this l
ine:
/var/tmp/portage/dev-java/gluegen-2.3.1/work/gluegen-2.3.1/make/build.xml:713: Warning: Could not find file /var/tmp/portage/dev-j
ava/gluegen-2.3.1/work/gluegen-2.3.1/make/lib/antlr.jar to copy.

Thanks for your help!
Comment 8 Karsten Merkle 2015-08-28 17:01:34 UTC
Created attachment 410534 [details, diff]
2.2.4-dont-copy-jars.patch

pardon me, files are the patches from science overlay
Comment 9 Karsten Merkle 2015-08-28 17:03:21 UTC
Created attachment 410536 [details, diff]
2.2.4-dont-strip.patch
Comment 10 Karsten Merkle 2015-08-28 17:08:05 UTC
Created attachment 410538 [details, diff]
2.2.4-dont-test-archive.patch
Comment 11 Fabio Rossi 2018-01-23 23:28:31 UTC
Created attachment 516284 [details]
gluegen-2.3.2.ebuild
Comment 12 Fabio Rossi 2018-01-23 23:29:34 UTC
Created attachment 516286 [details, diff]
gluegen-2.3.2-dont-copy-jars.patch
Comment 13 Fabio Rossi 2018-01-23 23:29:56 UTC
Created attachment 516288 [details, diff]
gluegen-2.3.2-dont-strip.patch
Comment 14 Fabio Rossi 2018-01-23 23:30:17 UTC
Created attachment 516290 [details, diff]
gluegen-2.3.2-dont-test-archive.patch
Comment 15 Fabio Rossi 2018-01-23 23:30:38 UTC
Created attachment 516292 [details, diff]
gluegen-2.3.2-no-static-libstdc++.patch