1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/sun-jre-131/sun-jre-131.conf
3 # Copyright (C) 2006 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
13 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
15 # Filename: package/.../sun-jre-131/sun-jre-131.conf
16 # Copyright (C) 2006 The OpenSDE Project
18 # More information can be found in the files COPYING and README.
20 # This program is free software; you can redistribute it and/or modify
21 # it under the terms of the GNU General Public License as published by
22 # the Free Software Foundation; version 2 of the License. A copy of the
23 # GNU General Public License can be found in the file COPYING.
24 # --- SDE-COPYRIGHT-NOTE-END ---
26 . $base/package/*/*/java-sun-conf.in jre
28 # Overrule the existing preconf script with a new one.
30 # eliminate interactivity and integrity checks.
32 sed -i 's,more <<,cat <<,' ${java_srctar##*/}
33 sed -i 's,agreed=,agreed=1,' ${java_srctar##*/}
35 # Here we hardcode the java extract dir. Since
36 # java 1.3 is no longer maintained this is not
38 java_home_original=jre1.3.1_19
40 # Ready to unpack/install the archive.
43 # Patch a few scripts to support x86-64 as well
45 sed -i 's,ia32 | ia64,ia32 | x86_64 | ia64,' $java_home_original/bin/.java_wrapper
46 sed -i 's,ia32 | ia64,ia32 | x86_64 | ia64 | i?86,' $java_home_original/bin/ControlPanel
47 sed -i 's,i\[3-6\]86,i[3-6]86 | ia32 | x86_64 | ia64 | i?86,' $java_home_original/bin/realpath
49 # Patch the use of 'head -1' into 'head -n 1'
50 sed -i 's,head -,head -n ,' $java_home_original/bin/.java_wrapper
52 # To get a working java environment we need one thing more.
53 # We need to ensure 'classic' behaviour. All others will result
54 # in a missing 'libstdc++-libc6.1-1.so.2' library. Since this
55 # package is only for a proof of concept I can live with this
56 # behavior for the time being.
57 chmod -w $java_home_original/lib/jvm.cfg
58 cat <<-'EOT' > $java_home_original/lib/jvm.cfg
60 # @(#)jvm.cfg 1.10 00/08/01
62 # Copyright 1999 by Sun Microsystems, Inc.,
63 # 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
64 # All rights reserved.
66 # List of JVMs that can be used as the first option to java, javac, etc.
67 # Order is important -- first in this list is the default JVM.
70 # Only classic is currently supported, since the others will result
71 # in a missing library 'libstdc++-libc6.1-1.so.2'. Until this library
72 # is available the other possible JVMs can not be used.