summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2006-08-12 05:59:00 +0000
committerKeri Harris <keri@gentoo.org>2006-08-12 05:59:00 +0000
commit5c72af79d13492bd53d4d4a55f235be4891ebe24 (patch)
treec86f0f2d304d2d72480476f5f75afcd835344047 /dev-lang/mercury/files/mercury-0.13.0_beta-bootstrap.patch
parentfix typo mirros"// -> mirror:// (diff)
downloadgentoo-2-5c72af79d13492bd53d4d4a55f235be4891ebe24.tar.gz
gentoo-2-5c72af79d13492bd53d4d4a55f235be4891ebe24.tar.bz2
gentoo-2-5c72af79d13492bd53d4d4a55f235be4891ebe24.zip
Add two-stage bootstrap support.
(Portage version: 2.1.1_pre4-r4)
Diffstat (limited to 'dev-lang/mercury/files/mercury-0.13.0_beta-bootstrap.patch')
-rw-r--r--dev-lang/mercury/files/mercury-0.13.0_beta-bootstrap.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-lang/mercury/files/mercury-0.13.0_beta-bootstrap.patch b/dev-lang/mercury/files/mercury-0.13.0_beta-bootstrap.patch
new file mode 100644
index 000000000000..6a45260c78ff
--- /dev/null
+++ b/dev-lang/mercury/files/mercury-0.13.0_beta-bootstrap.patch
@@ -0,0 +1,59 @@
+--- mercury-compiler-0.13.0-beta-2006-08-11.orig/configure 2006-08-11 22:37:07.000000000 +1200
++++ mercury-compiler-0.13.0-beta-2006-08-11/configure 2006-08-12 16:22:17.000000000 +1200
+@@ -8977,34 +8977,34 @@
+
+ if test "$BEST_GRADE_FOR_COMPILER" != "$BOOTSTRAP_GRADE"; then
+ if test "$BOOTSTRAP_MC" = ""; then
+- GRADE="$BOOTSTRAP_GRADE"
+- { echo "$as_me:$LINENO: WARNING: Mercury compiler not yet installed
+-**** cannot use grade \`$BEST_GRADE_FOR_COMPILER'
+-**** using grade \`$GRADE' to compile the compiler
+-**** after installation is complete you should reinstall
+-**** from scratch so you can use the more efficient
+-**** grade \`$BEST_GRADE_FOR_COMPILER'." >&5
+-echo "$as_me: WARNING: Mercury compiler not yet installed
+-**** cannot use grade \`$BEST_GRADE_FOR_COMPILER'
+-**** using grade \`$GRADE' to compile the compiler
+-**** after installation is complete you should reinstall
+-**** from scratch so you can use the more efficient
+-**** grade \`$BEST_GRADE_FOR_COMPILER'." >&2;}
++ if test "$BOOTSTRAP_STAGE" = "1"; then
++ GRADE="$BOOTSTRAP_GRADE"
++ else
++ GRADE=$BEST_GRADE_FOR_COMPILER
++ find library compiler browser mdbcomp analysis \
++ profiler deep_profiler \
++ -name \*.c -o -name \*.c_date | \
++ xargs rm > /dev/null 2>&1
++ find -name \*.o -o -name \*.a -o -name \*.so | \
++ xargs rm > /dev/null 2>&1
++ rm -f compiler/mercury_compile profiler/mercury_profile
++ fi
+
+ else
+- GRADE=$BEST_GRADE_FOR_COMPILER
+- echo "using grade \`$GRADE' to compile the compiler
+- compiler and library will be rebuilt with new grade
+- installation may take a long time" 1>&6
+- find library compiler browser mdbcomp analysis \
+- profiler deep_profiler \
+- -name \*.c -o -name \*.c_date | \
+- xargs rm > /dev/null 2>&1
++ if test "$BOOTSTRAP_STAGE" = "1"; then
++ GRADE=$BEST_GRADE_FOR_COMPILER
++ find library compiler browser mdbcomp analysis \
++ profiler deep_profiler \
++ -name \*.c -o -name \*.c_date | \
++ xargs rm > /dev/null 2>&1
++ else
++ GRADE=$BEST_GRADE_FOR_COMPILER
++ fi
+ fi
+ else
+ GRADE=$BEST_GRADE_FOR_COMPILER
+- echo "using grade \`$GRADE' to compile the compiler" 1>&6
+ fi
++echo "using grade \`$GRADE' to compile the compiler" 1>&6
+
+
+ #-----------------------------------------------------------------------------#