Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 80767

Summary: ebuild to provide Java Kernel Support
Product: Gentoo Linux Reporter: Joël <world.root>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: java
Priority: High Keywords: EBUILD, InOverlay
Version: 2004.0   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /usr/local/portage/dev-java/java-kernel-support/java-kernel-support-1.01.ebuild
Create a files/ subdirectory, and unpack this .tar.bz2 into it.
New version of the tarball - improved jar support with manifest detection
New ebuild version (note: I also added unzip dependency)

Description Joël 2005-02-04 12:17:55 UTC
Here's an ebuild for native java execution support.

You can run jar and class files directly, after doing a simple chmod +x.

The code is taken from http://www.linuxhq.com/java.html.

A patch from myself is applied upon emerging, which provides improved JAR execution, and fixes handling of pathnames that include spaces.

For this ebuild to be useful, you should add the following to /etc/conf.d/local.start:

echo ':Java:M::\xca\xfe\xba\xbe::/usr/bin/javawrapper:' >/proc/sys/fs/binfmt_misc/register
echo ':ExecutableJAR:E::jar::/usr/bin/jarwrapper:' >/proc/sys/fs/binfmt_misc/register

Have fun, and don't forget to post your improvements here !
Comment 1 Joël 2005-02-04 12:18:59 UTC
Created attachment 50375 [details]
/usr/local/portage/dev-java/java-kernel-support/java-kernel-support-1.01.ebuild
Comment 2 Joël 2005-02-04 12:22:32 UTC
Created attachment 50377 [details]
Create a files/ subdirectory, and unpack this .tar.bz2 into it.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-04-24 02:45:54 UTC
This ebuild needs major work before it can be added to the tree. I will be looking into it at this seems quite fun.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2005-04-24 04:00:57 UTC
I will be working on the ebuild in the experimental tree:
https://gentooexperimental.org/svn/java/gentoo-java-experimental/dev-java/java-kernel-support/

The files probably need to be distributed as a separate tarball and it's better to write an init script than telling people to put stuff in local.start.  
Comment 5 Joël 2005-04-24 07:13:59 UTC
Hi Petteri,

I'm glad that my modest contribution may help :-)

- Your init.d script idea seems great, I hadn't thought of it
- Would it be better, in your opinion to package the vanilla "linuxhq.com" files into a tar.bz2, or to patch them beforehand ?

Please tell me if you want me to do the init.d script (I have some spare time here and there)

Thanks again,

Jo
Comment 6 Joël 2005-04-24 07:13:59 UTC
Hi Petteri,

I'm glad that my modest contribution may help :-)

- Your init.d script idea seems great, I hadn't thought of it
- Would it be better, in your opinion to package the vanilla "linuxhq.com" files into a tar.bz2, or to patch them beforehand ?

Please tell me if you want me to do the init.d script (I have some spare time here and there)

Thanks again,

Joël
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2005-04-24 08:38:11 UTC
If you want to write the init script, go ahead. Usually we download the tarball from upstream as it is, but now that there isn't an upstream tarball available I think we can just package the patched version. But probably best to ask for comments from java devs. 
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2005-04-25 07:58:54 UTC
The tarball. 

https://gentooexperimental.org/svn/java/gentoo-java-experimental/distfiles/
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2005-04-25 07:59:22 UTC
Comment on attachment 50377 [details]
Create a files/ subdirectory, and unpack this .tar.bz2 into it.

The tarball is now in the experimental tree.
Comment 10 Petteri Räty (RETIRED) gentoo-dev 2005-04-25 08:00:43 UTC
The files are now patched in the tarball and the tarball will be uploaded to the gentoo mirrors if/when we release this to the public. 
Comment 11 Joël 2006-07-16 02:20:45 UTC
Created attachment 91868 [details]
New version of the tarball - improved jar support with manifest detection
Comment 12 Joël 2006-07-16 02:29:50 UTC
Created attachment 91870 [details]
New ebuild version (note: I also added unzip dependency)

NOTE: should I use "java-config -J", or is it okay to just run "java" ?
Comment 13 Joël 2006-07-16 02:32:07 UTC
Petteri,

I'm willing to help and make an init script for java-kervel-support, but I don't know if it's possible to remove a binfmt_misc registration in the kernel once it's done.
Comment 14 Josh Nichols (RETIRED) gentoo-dev 2006-07-16 07:40:02 UTC
Assuming you're using the new Java system, it is sufficient to just use java.
Comment 15 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-01-15 17:17:55 UTC
New Location seems to be:

http://overlays.gentoo.org/proj/java/browser/java-overlay/dev-java/java-kernel-support

Adding proper KEYWORD
Comment 16 Andreas Sturmlechner gentoo-dev 2015-08-07 21:25:19 UTC
Ebuild removed from overlay, domain dead since 1999.