Ticket #716 (closed enhancement: fixed)
Opened 2 years ago
Last modified 9 months ago
OpenJDK bep file enhancement
| Reported by: | bartolomiew | Owned by: | scottmc |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | dev-lang/lua | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I made some modifications to compile OpenJDK.
Some explanations are in order:
- It is necessary to have a version of Haiku> = hrev45228 (look at http://dev.haiku-os.org/ticket/9416 and http://mail.openjdk.java.net/pipermail/haiku-port -dev/2013-February/000106.html)
- I had to create a new image for the JDK as the July was a problem when compiling with rmic.
- Zip files downloaded during the build of the JDK (jaxp145_01.zip, JDK7-jaf-2010_08_19.zip & JDK7-b03-jaxws2_2_4-2011_05_27.zip) were displaced Oracle while the sources of the Haiku branch have not been modified. This explains the use of variable ALT_DROPS_DIR
Here is the log of the error:
-Jaxp_src-url-bundle:
[Echo] Downloading from http://download.java.net/jaxp/1.4.5/jaxp145_01.zip
[Get] Getting: http://download.java.net/jaxp/1.4.5/jaxp145_01.zip
[Get] http://download.java.net/jaxp/1.4.5/jaxp145_01.zip Moved to http://dlc.sun.com.edgesuite.net/jaxp/1.4.5/jaxp145_01.zip
- ALT_UNIXCOMMAND_PATH variable set to empty, the file Defs-util.gmk in OpenJDK does not take into account the fact that grep & egrep are not in /boot/system/bin/. By setting the variable ALT_UNIXCOMMAND_PATH to empty OpenJDK uses resolution path coommands by PATH.
- In order to finish the compilation without error (just to show the compilation time) I edit the file Defs-internal.gmk. Rather than make a patch I made a sed that will not be disturbed by any correction made in the mercurial repository.
- ticket #703 solves bug for cpio, but as v2.11 doesn't works, I've limited version to 2.10.
Note : I've wrongly set component to "dev-lang/lua" in this ticket because "dev-lang/openjdk" doesn't exists !
Attachments
Change History
comment:1 Changed 2 years ago by bartolomiew
comment:2 Changed 2 years ago by bartolomiew
For the more adventurous, the others files are there: http://ports-space.haiku-files.org/source/openjdk/
comment:3 in reply to: ↑ description Changed 2 years ago by bartolomiew
Here is a modified version that handles creating the package and the setup of the runtime environment.
See attachments : revision 3 & setup env
comment:4 Changed 2 years ago by hamish
Thanks for your work on this -- I guess some build stuff has bitrotted over time (the Haiku port is still at stock JDK7).
I don't think running Haiku >= hrev45228 is necessary though. That /dev/random issue shouldn't be a problem for simply building the JDK, it only crops up with programs that use cryptographic random number generation.
comment:5 Changed 21 months ago by scottmc
Anyone try updating this to a .recipe file to build an hpkg?
If there's any required libs you need first just open a new issue at the new haikuports.org with the requested list.
comment:6 Changed 9 months ago by scottmc
- Resolution set to fixed
- Status changed from new to closed
We have a working recipe for this now.

Given the size of the files, I have not been able to make them available, Do you have a solution for me ?