mlvm don't build
Stephen Bannasch
stephen.bannasch at deanbrook.org
Wed Nov 25 09:03:04 PST 2009
At 11:47 AM -0500 11/25/09, Stephen Bannasch wrote:
>What's the best way to bring my local hg repos back to a state where hg fpull -u will pull in and apply the patches I need?
Referring to the bsd-ports dir I meant changesets not patches.
FYI: more information about my update process (which isn't working yet):
Assumming the root of the bsd-port tress is in the dir sources/ and the mlvm patches are in patches/ this is how I start anupdate now:
cd sources
hg fpull -u
cd ../patches
hg fpull -u
cd ..
Which I then follow with
bash patches/make/link-patch-dirs.sh sources patches
ls -il patches/hotspot/series sources/hotspot/.hg/patches/series
export davinci=$(pwd) guards="buildable testable"
sh patches/make/each-patch-repo.sh "hg qselect --pop $guards" '$(sh $davinci/patches/make/current-release.sh)'
sh patches/make/each-patch-repo.sh "hg qselect; hg qunapplied"
sh patches/make/each-patch-repo.sh "hg update -r" '$(sh $davinci/patches/make/current-release.sh)'
sh patches/make/each-patch-repo.sh hg qpush -a
echo 'run:'
echo 'cd sources'
echo 'source build_davinci.sh'
My build_davinci.sh script looks like this:
export LC_ALL=C
export LANG=C
unset CLASSPATH
unset JAVA_HOME
sets="
ALT_BOOTDIR=/usr/local/soylatte16-i386-1.0.3/
ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include
ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib
ALT_JIBX_LIBS_PATH=/Users/stephen/dev/java/jibx/lib
ANT_HOME=/usr/share/ant
NO_DOCS=true
HOTSPOT_BUILD_JOBS=3
BUILD_LANGTOOLS=true
BUILD_JAXP=false
BUILD_JAXWS=false
BUILD_CORBA=false
BUILD_HOTSPOT=true
BUILD_JDK=true
"
# Execute the above sets, into the environment.
for s in $sets; do eval export $s; done
# Preview sets in command line
for s
do case $s in
*'[ ;]'*) break;;
*'='*) eval "$s";;
*) break;;
esac
done
# Incremental JVM rebuilds have trouble with *.gch files.
# The *.gch file does not get regenerated unless you remove it,
# even if 20 header files have changed.
# This is not a problem for batch builds, of course.
$BUILD_HOTSPOT && {
${KEEP_HOTSPOT_HEADERS:-false} ||
rm -f $(find build -name _precompiled.incl.gch)
}
# Run make, or whatever, in the resulting environment.
eval "${@-make}"
# Usage example: For a partial (re-)build of JDK only:
# sh build.sh BUILD_{HOTSPOT,LANGTOOLS}=false make
More information about the mlvm-dev
mailing list