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