I was reading over <http://www.linuxfromscratch.org/blfs/view/svn/general/openjdk.html>, and it seemed a bit overly complex. I've been building OpenJDK for a while, and I was able to make it so you can use the normal checkout method for getting the source with a simple patch. I.e.,:

hg clone -r jdk8u51-b16 http://hg.openjdk.java.net/jdk8u/jdk8u60/
cd jdk8u60
chmod a+rx get_source.sh
patch -p1 < fix-source.patch
./get_source.sh -r jdk8u51-b16

Then you can just run ./configure <options> etc

The patch is:

--- jdk8u60/common/bin/hgforest.sh.orig 2015-08-10 16:29:42.271352215 +0000
+++ jdk8u60/common/bin/hgforest.sh      2015-08-10 16:36:53.427337849 +0000
@@ -334,8 +334,8 @@
            done
          fi
          # run the clone command.
- echo "hg${global_opts} clone ${clone_newrepo} ${i}" > ${status_output} - (PYTHONUNBUFFERED=true hg${global_opts} clone ${clone_newrepo} ${i}; echo "$?" > ${tmp}/${repopidfile}.pid.rc ) 2>&1 & + echo "hg${global_opts} clone ${command_args} ${clone_newrepo} ${i}" > ${status_output} + (PYTHONUNBUFFERED=true hg${global_opts} clone ${command_args} ${clone_newrepo} ${i}; echo "$?" > ${tmp}/${repopidfile}.pid.rc ) 2>&1 &
        else
          # run the command.
echo "cd ${i} && hg${global_opts} ${command} ${command_args}" > ${status_output}


Figured this may be useful to others. It essentially passes the -r <tag> option to the initial source clone of the other required repositories.

Now there's no need to download all the tarballs separately, etc.

--Quanah

--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to