r6679 - in trunk/BOOK: . general/prog introduction/welcome

randy at linuxfromscratch.org randy at linuxfromscratch.org
Mon Mar 19 21:29:48 PDT 2007


Author: randy
Date: 2007-03-19 22:29:48 -0600 (Mon, 19 Mar 2007)
New Revision: 6679

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/general/prog/jdk.xml
   trunk/BOOK/introduction/welcome/changelog.xml
Log:
Updated to JDK-1.5.0.11 (source and binary)

Modified: trunk/BOOK/general/prog/jdk.xml
===================================================================
--- trunk/BOOK/general/prog/jdk.xml	2007-03-19 03:06:43 UTC (rev 6678)
+++ trunk/BOOK/general/prog/jdk.xml	2007-03-20 04:29:48 UTC (rev 6679)
@@ -4,14 +4,22 @@
   <!ENTITY % general-entities SYSTEM "../../general.ent">
   %general-entities;
 
-  <!ENTITY jdk-download-source "http://download.java.net/tiger/archive/tiger_u10/">
-  <!ENTITY jdk-download-binary "http://java.sun.com/j2se/1.5.0/download.jsp">
-  <!ENTITY jdk-source-md5sum   "&sources-anduin-http;/j/jdk-&jdk-src-version;.md5sums">
-  <!ENTITY jdk-bin-md5sum      "d916c24bed9eef7aebc2626115e14a11">
-  <!ENTITY jdk-bin-size        "47.2 MB">
-  <!ENTITY jdk-src-size        "64.2 MB (three .jar files)">
-  <!ENTITY jdk-src-buildsize   "1882 MB">
-  <!ENTITY jdk-time            "34 SBU">
+  <!ENTITY jdk-download-binary       "http://java.sun.com/javase/downloads/index_jdk5.jsp">
+  <!ENTITY jdk-bin-md5sum            "14ba8eccfd97f6bd23d8dc32b38b1121">
+  <!ENTITY jdk-bin-size              "49 MB">
+  <!ENTITY jdk-bin-buildsize         "150 MB">
+
+  <!ENTITY jdk-download-source-jrl   "http://www.java.net/download/tiger/tiger_u11/jdk-1_5_0_11-fcs-src-b03-jrl-15_dec_2006.jar">
+  <!ENTITY jdk-download-source-jiul  "http://www.java.net/download/tiger/tiger_u11/jdk-1_5_0_11-fcs-src-b03-jiul-15_dec_2006.jar">
+  <!ENTITY jdk-download-source-bin   "http://www.java.net/download/tiger/tiger_u11/jdk-1_5_0_11-fcs-bin-b03-jrl-15_dec_2006.jar">
+  <!ENTITY jdk-download-source-moz   "http://www.java.net/download/tiger/tiger_u11/jdk-1_5_0_11-mozilla_headers-b03-unix-15_dec_2006.jar">
+  <!ENTITY jdk-source-jrl-md5sum     "e6661cce9c94009e2fa909a151c0160c">
+  <!ENTITY jdk-source-jiul-md5sum    "be3653bc93d9efe715cb7a64c513eeef">
+  <!ENTITY jdk-source-bin-md5sum     "7c952fba37101c154f1636dc401aa093">
+  <!ENTITY jdk-source-moz-md5sum     "16ed66d11701496e3b4e10a24edd3f1b">
+  <!ENTITY jdk-src-size              "67 MB (three .jar files)">
+  <!ENTITY jdk-src-buildsize         "1.9 GB">
+  <!ENTITY jdk-time                  "30 SBU">
 ]>
 
 <sect1 id="jdk" xreflabel="JDK-&jdk-src-version;">
@@ -38,8 +46,7 @@
     programs.  It also includes a plug-in for browsers so that they can be
     <application>Java</application> aware.</para>
 
-    <para>The <application>JDK</application> comes in two flavors, a
-    precompiled binary and a source package. Previously, the plugin included
+    <!-- Previously, the plugin included
     in the <application>JDK</application> binary package was unusable on LFS
     owing to incompatibilities with <application>GCC</application>-3 compiled
     browsers.  This is not the case anymore.</para>
@@ -50,52 +57,62 @@
     url="http://java.net/jiul.csp">Java Internal Use License</ulink>.  In
     addition, the source code is not allowed to be downloaded to some
     countries, so for users in those countries, the binary is the only
-    option.</para>
+    option.</para> -->
 
-    <para>You will first need to download and install the binary version of the
-    <application>JDK</application>.</para>
+    <para>The <application>JDK</application> comes in two flavors, a
+    precompiled binary and a source package. You will first need to download
+    and install the binary version of the <application>JDK</application>
+    (you'll need to click and agree to the <quote>Sun Microsystems, Inc.
+    Binary Code License Agreement</quote>). To build from the source, you will
+    also need to download the additional files and patches to complete the
+    source build as detailed below.</para>
 
-    <para>To build  from the source, you will also need to download the
-    additional files and patches to complete the source build as detailed
-    below.</para>
-
-    <bridgehead renderas="sect3">Package Information</bridgehead>
+    <bridgehead renderas="sect3">Precompiled Package Information</bridgehead>
     <itemizedlist spacing="compact">
       <listitem>
-        <para>Binary download: <ulink url="&jdk-download-binary;"/>
-        (to download jdk-&jdk-bin-string;-linux-i586.bin)</para>
+        <para>Binary download (jdk-&jdk-bin-string;-linux-i586.bin):
+        <ulink url="&jdk-download-binary;"/></para>
       </listitem>
       <listitem>
-        <para>Download MD5 sum (binary): &jdk-bin-md5sum;</para>
+        <para>Download MD5 sum: &jdk-bin-md5sum;</para>
       </listitem>
       <listitem>
-        <para>Source download: <ulink url="&jdk-download-source;"/>
-        (to download jdk-&jdk-src-string;-fcs-src-b03-jrl-09_nov_2006.jar (or
-         optionally the JIUL version),
-         jdk-&jdk-src-string;-fcs-bin-b03-09_nov_2006.jar, and
-         jdk-&jdk-src-string;-mozilla_headers-b03-unix-09_nov_2006.jar)</para>
+        <para>Download size (binary): &jdk-bin-size;</para>
       </listitem>
+      <listitem>
+        <para>Estimated disk space required: &jdk-bin-buildsize;</para>
+      </listitem>
+    </itemizedlist>
 
+    <bridgehead renderas="sect3">Source Package Information</bridgehead>
+    <para>The source code is distributed under two licenses and most will need
+    the JRL version. The JIUL version is listed as well, but you only need to
+    download one or the other.</para>
+    <itemizedlist spacing="compact">
       <listitem>
-        <para>Download MD5 sums (source):
+        <para>Source downloads:
           <simplelist>
-            <member>09842a4e68040db473e04dbcc284f1d5
-                    jdk-&jdk-src-string;-fcs-bin-b03-09_nov_2006.jar
+            <member>JRL Source —
+                    <ulink url="&jdk-download-source-jrl;"/> —
+                    &jdk-source-jrl-md5sum;
             </member>
-            <member>b59335f620e7da524be168b07319fa3b
-                    jdk-&jdk-src-string;-fcs-src-b03-jrl-09_nov_2006.jar
+            <member>JIUL Source —
+                    <ulink url="&jdk-download-source-jiul;"/> —
+                    &jdk-source-jiul-md5sum;
             </member>
-            <member>f49df1a1e7fe351b7fa9f66db121616e
-                    jdk-&jdk-src-string;-mozilla_headers-b03-unix-09_nov_2006.jar
+            <member>Source Binaries —
+                    <ulink url="&jdk-download-source-bin;"/> —
+                    &jdk-source-bin-md5sum;
             </member>
+            <member>Mozilla Headers —
+                    <ulink url="&jdk-download-source-moz;"/> —
+                    &jdk-source-moz-md5sum;
+            </member>
           </simplelist>
         </para>
       </listitem>
 
       <listitem>
-        <para>Download size (binary): &jdk-bin-size;</para>
-      </listitem>
-      <listitem>
         <para>Download size (source): &jdk-src-size;</para>
       </listitem>
       <listitem>
@@ -162,8 +179,9 @@
   <sect2 role="installation">
     <title>Installation of JDK</title>
 
-    <para>Both the binary and source built versions will be installed.  You may
-    choose to keep either or both.</para>
+    <para>The instructions below install both the binary and source versions.
+    You may stop after installing the binary version or continue on installing
+    the source version. You can choose to keep either or both.</para>
 
     <tip>
       <para>The <command>./jdk-mod.bin</command>
@@ -189,12 +207,13 @@
 <screen><userinput>cp jdk-&jdk-bin-string;-linux-i?86.bin jdk-mod.bin &&
 sed -i "s:^PATH=.*::" jdk-mod.bin &&
 chmod -v +x jdk-mod.bin &&
-./jdk-mod.bin</userinput></screen>
+./jdk-mod.bin &&
+rm jdk-mod.bin</userinput></screen>
 
     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
 
 <screen role="root"><userinput>cd jdk&jdk-bin-version; &&
-install -v -d /opt/jdk/jdk-precompiled-&jdk-bin-version; &&
+install -v -m755 -d /opt/jdk/jdk-precompiled-&jdk-bin-version; &&
 mv -v * /opt/jdk/jdk-precompiled-&jdk-bin-version; &&
 chown -v -R root:root /opt/jdk/jdk-precompiled-&jdk-bin-version; &&
 ln -v -sf motif21/libmawt.so \
@@ -267,29 +286,36 @@
 <screen><userinput>export HOTSPOT_BUILD_JOBS=<replaceable><3></replaceable></userinput></screen>
 
     <para>Build the <application>JDK</application> with the following
-    commands. There will be a lot of messages about missing files that look like
+    commands. There will be a few messages about missing files that look like
     errors. These are caused by not meeting the expected build environment
     (Red Hat).  As long as the build doesn't stop, the messages
     are harmless.</para>
 
-<screen><userinput>cd control/make &&
+<screen><userinput>pushd control/make &&
 make &&
-cd ../build/linux-i?86</userinput></screen>
+popd</userinput></screen>
 
     <para>To test the results, you can run one of the provided demo programs
     using the newly created <command>java</command> binary. Issue the
     following commands:</para>
 
-<screen><userinput>cd j2sdk-image/demo/jfc/Java2D &&
+<screen><userinput>pushd control/build/linux-i?86/j2sdk-image/demo/jfc/Java2D &&
 ../../../bin/java -jar Java2Demo.jar &&
-cd ../../../..</userinput></screen>
+popd</userinput></screen>
 
     <para>Now, as the <systemitem class="username">root</systemitem> user,
     install the <application>JDK</application>:</para>
 
-<screen role="root"><userinput>cp -v -a j2sdk-image /opt/jdk/jdk-&jdk-src-version; &&
+<screen role="root"><userinput>pushd control/build/linux-i?86 &&
+cp -v -a j2sdk-image /opt/jdk/jdk-&jdk-src-version; &&
 chown -v -R root:root /opt/jdk/jdk-&jdk-src-version; &&
-ln -v -sf motif21/libmawt.so  /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/</userinput></screen>
+ln -v -sf motif21/libmawt.so  /opt/jdk/jdk-&jdk-src-version;/jre/lib/i386/ &&
+find /opt/jdk/jdk-&jdk-src-version; \
+     -type f -perm 600 -exec chmod -v 644 {} \; &&
+find /opt/jdk/jdk-&jdk-src-version; \
+     -name "*.so" -exec chmod -v 755 {} \; &&
+chmod -v 755 /opt/jdk/jdk-&jdk-src-version;/jre/bin/* &&
+popd</userinput></screen>
 
     <para>Restore the unprivileged user's environment using the following
     commands:</para>

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2007-03-19 03:06:43 UTC (rev 6678)
+++ trunk/BOOK/general.ent	2007-03-20 04:29:48 UTC (rev 6679)
@@ -3,7 +3,7 @@
 $Date$
 -->
 
-<!ENTITY day          "19">                   <!-- Always 2 digits -->
+<!ENTITY day          "20">                   <!-- Always 2 digits -->
 <!ENTITY month        "03">                   <!-- Always 2 digits -->
 <!ENTITY year         "2007">
 <!ENTITY version      "svn-&year;&month;&day;">
@@ -186,10 +186,10 @@
 <!ENTITY gcc-version                  "4.1.2">
 <!ENTITY gcc3-version                 "3.3.6">
 <!ENTITY guile-version                "1.6.7">
-<!ENTITY jdk-bin-version              "1.5.0_10">
-<!ENTITY jdk-bin-string               "1_5_0_10">
-<!ENTITY jdk-src-version              "1.5.0_10">
-<!ENTITY jdk-src-string               "1_5_0_10">
+<!ENTITY jdk-bin-version              "1.5.0_11">
+<!ENTITY jdk-bin-string               "1_5_0_11">
+<!ENTITY jdk-src-version              "1.5.0_11">
+<!ENTITY jdk-src-string               "1_5_0_11">
 <!ENTITY librep-version               "0.17">
 <!ENTITY NASM-version                 "0.98.39">
 <!ENTITY pdl-version                  "2.4.2">

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2007-03-19 03:06:43 UTC (rev 6678)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2007-03-20 04:29:48 UTC (rev 6679)
@@ -42,6 +42,15 @@
 -->
 
     <listitem>
+      <para>March 20th, 2007</para>
+      <itemizedlist>
+        <listitem>
+          <para>[randy] - Updated to JDK-1.5.0.11 (source and binary).</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>March 19th, 2007</para>
       <itemizedlist>
         <listitem>




More information about the blfs-book mailing list