Browse Source
* openjdk-9: move to ubuntu package naming and layout convention update to latest changesets (tag 162) update cups headers to 2.2.3 split into jre, jdk and source packages use the client jvm, renove libffi dependency create wrappers for binaries for LD_LIBRARY_PATH various fixes to get it working * openjdk-9: depend on ca-certificates-javaandroid-5
Vishal Biswas
8 years ago
committed by
Fredrik Fornwall
7 changed files with 124 additions and 34 deletions
@ -0,0 +1,12 @@ |
|||
shoutout to @its-pointless (live_the_dream) |
|||
--- ./hotspot/src/share/vm/runtime/os.cpp 2017-03-30 20:45:45.000000000 +0530
|
|||
+++ ../os.cpp 2017-03-31 11:04:17.097618021 +0530
|
|||
@@ -74,7 +74,7 @@
|
|||
int os::_processor_count = 0; |
|||
int os::_initial_active_processor_count = 0; |
|||
size_t os::_page_sizes[os::page_sizes_max]; |
|||
-const char * os::_java_home = NULL;
|
|||
+const char * os::_java_home = "@TERMUX_PREFIX@/lib/jvm/openjdk-9";
|
|||
|
|||
#ifndef PRODUCT |
|||
julong os::num_mallocs = 0; // # of calls to malloc/realloc |
@ -0,0 +1,11 @@ |
|||
--- ./jdk/src/java.base/unix/native/libjli/java_md_solinux.c 2017-03-30 20:45:48.000000000 +0530
|
|||
+++ ../java_md_solinux.c 2017-03-31 09:15:07.979651293 +0530
|
|||
@@ -163,7 +163,7 @@
|
|||
*/ |
|||
|
|||
#ifdef __ANDROID__ |
|||
-static char * __java_home = NULL;
|
|||
+static char * __java_home = "@TERMUX_PREFIX@/lib/jvm/openjdk-9";
|
|||
#endif |
|||
|
|||
void SetJavaHome(char *arg) { |
@ -0,0 +1,33 @@ |
|||
TERMUX_SUBPKG_INCLUDE="$_jvm_dir/bin/idlj bin/idlj |
|||
$_jvm_dir/bin/jar bin/jar |
|||
$_jvm_dir/bin/jarsigner bin/jarsigner |
|||
$_jvm_dir/bin/javac bin/javac |
|||
$_jvm_dir/bin/javadoc bin/javadoc |
|||
$_jvm_dir/bin/javah bin/javah |
|||
$_jvm_dir/bin/javap bin/javap |
|||
$_jvm_dir/bin/jcmd bin/jcmd |
|||
$_jvm_dir/bin/jdb bin/jdb |
|||
$_jvm_dir/bin/jdeprscan bin/jdeprscan |
|||
$_jvm_dir/bin/jdeps bin/jdeps |
|||
$_jvm_dir/bin/jhsdb bin/jhsdb |
|||
$_jvm_dir/bin/jimage bin/jimage |
|||
$_jvm_dir/bin/jinfo bin/jinfo |
|||
$_jvm_dir/bin/jlink bin/jlink |
|||
$_jvm_dir/bin/jmap bin/jmap |
|||
$_jvm_dir/bin/jmod bin/jmod |
|||
$_jvm_dir/bin/jps bin/jps |
|||
$_jvm_dir/bin/jrunscript bin/jrunscript |
|||
$_jvm_dir/bin/jshell bin/jshell |
|||
$_jvm_dir/bin/jstack bin/jstack |
|||
$_jvm_dir/bin/jstat bin/jstat |
|||
$_jvm_dir/bin/jstatd bin/jstatd |
|||
$_jvm_dir/bin/policytool bin/policytool |
|||
$_jvm_dir/bin/rmic bin/rmic |
|||
$_jvm_dir/bin/schemagen bin/schemagen |
|||
$_jvm_dir/bin/serialver bin/serialver |
|||
$_jvm_dir/bin/wsgen bin/wsgen |
|||
$_jvm_dir/bin/wsimport bin/wsimport |
|||
$_jvm_dir/bin/xjc bin/xjc |
|||
$_jvm_dir/include" |
|||
TERMUX_SUBPKG_DEPENDS="openjdk-9-jre-headless" |
|||
TERMUX_SUBPKG_DESCRIPTION="OpenJDK Development Kit (JDK) (headless)" |
@ -0,0 +1,4 @@ |
|||
TERMUX_SUBPKG_INCLUDE="$_jvm_dir/src.zip" |
|||
TERMUX_SUBPKG_DEPENDS="openjdk-9-jre-headless" |
|||
TERMUX_SUBPKG_DESCRIPTION="OpenJDK Development Kit (JDK) source files" |
|||
TERMUX_SUBPKG_PLATFORM_INDEPENDENT=yes |
@ -0,0 +1,12 @@ |
|||
thanks @fornwall for finding this |
|||
--- ./jdk/src/java.base/unix/classes/java/lang/ProcessImpl.java 2017-03-30 20:45:48.000000000 +0530
|
|||
+++ ../ProcessImpl.java 2017-04-01 23:04:39.565293249 +0530
|
|||
@@ -157,7 +157,7 @@
|
|||
static Platform get() { |
|||
String osName = GetPropertyAction.privilegedGetProperty("os.name"); |
|||
|
|||
- if (osName.equals("Linux")) { return LINUX; }
|
|||
+ if (osName.equals("Linux") || osName.equals("Android")) { return LINUX; }
|
|||
if (osName.contains("OS X")) { return BSD; } |
|||
if (osName.equals("SunOS")) { return SOLARIS; } |
|||
if (osName.equals("AIX")) { return AIX; } |
Loading…
Reference in new issue