From 4cfe9969bf4567b95c91fa966153155b4c18fa91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sun, 15 Jul 2007 18:47:07 +0000 Subject: [PATCH] - updated for 3.10.0 Changed files: ocaml-CFLAGS.patch -> 1.3 ocaml-build.patch -> 1.4 ocaml-db3.patch -> 1.6 --- ocaml-CFLAGS.patch | 8 ++++---- ocaml-build.patch | 24 ------------------------ ocaml-db3.patch | 15 +++++++-------- 3 files changed, 11 insertions(+), 36 deletions(-) diff --git a/ocaml-CFLAGS.patch b/ocaml-CFLAGS.patch index f1f6394..d787a66 100644 --- a/ocaml-CFLAGS.patch +++ b/ocaml-CFLAGS.patch @@ -172,10 +172,10 @@ diff -Nur b.ocaml-3.08.4/otherlibs/num/Makefile n.ocaml-3.08.4/otherlibs/num/Mak # Compilation options CC=$(BYTECC) -CFLAGS=-O -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) \ -+override CFLAGS += -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) \ ++override CFLAGS += -O -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) \ -DBNG_ARCH_$(BNG_ARCH) -DBNG_ASM_LEVEL=$(BNG_ASM_LEVEL) - CAMLC=../../ocamlcomp.sh -w s - CAMLOPT=../../ocamlcompopt.sh -w s + CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../boot -w s + CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -w s diff -Nur b.ocaml-3.08.4/otherlibs/num/Makefile.nt n.ocaml-3.08.4/otherlibs/num/Makefile.nt --- b.ocaml-3.08.4/otherlibs/num/Makefile.nt 2004-11-29 09:50:23.000000000 +0100 +++ n.ocaml-3.08.4/otherlibs/num/Makefile.nt 2005-11-04 21:26:14.779320248 +0100 @@ -183,7 +183,7 @@ diff -Nur b.ocaml-3.08.4/otherlibs/num/Makefile.nt n.ocaml-3.08.4/otherlibs/num/ # Compilation options CC=$(BYTECC) --CFLAGS=-O -I../../byterun \ +-CFLAGS=-I../../byterun \ +override CFLAGS += -I../../byterun \ -DBNG_ARCH_$(BNG_ARCH) -DBNG_ASM_LEVEL=$(BNG_ASM_LEVEL) CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../boot -w s diff --git a/ocaml-build.patch b/ocaml-build.patch index 45d278a..5e32db6 100644 --- a/ocaml-build.patch +++ b/ocaml-build.patch @@ -1,27 +1,3 @@ -diff -ur ocaml-3.05/camlp4/meta/Makefile ocaml-3.05-/camlp4/meta/Makefile ---- ocaml-3.05/camlp4/meta/Makefile Fri Jul 19 16:53:49 2002 -+++ ocaml-3.05-/camlp4/meta/Makefile Thu Aug 8 13:19:11 2002 -@@ -2,7 +2,7 @@ - - include ../config/Makefile - --INCLUDES=-I ../camlp4 -I ../boot -I $(OTOP)/utils -+INCLUDES=-I ../camlp4 -I ../boot -I $(OTOP)/utils -I $(OTOP)/parsing - OCAMLCFLAGS=-warn-error A $(INCLUDES) - OBJS=q_MLast.cmo pa_r.cmo pa_rp.cmo pa_extend.cmo pa_extend_m.cmo pa_ifdef.cmo pr_dump.cmo - CAMLP4RM=pa_r.cmo pa_rp.cmo pr_dump.cmo -diff -ur ocaml-3.05/camlp4/ocaml_src/meta/Makefile ocaml-3.05-/camlp4/ocaml_src/meta/Makefile ---- ocaml-3.05/camlp4/ocaml_src/meta/Makefile Fri Jul 19 16:53:53 2002 -+++ ocaml-3.05-/camlp4/ocaml_src/meta/Makefile Thu Aug 8 13:19:37 2002 -@@ -2,7 +2,7 @@ - - include ../../config/Makefile - --INCLUDES=-I ../camlp4 -I ../../boot -I $(OTOP)/utils -+INCLUDES=-I ../camlp4 -I ../../boot -I $(OTOP)/utils -I $(OTOP)/parsing - OCAMLCFLAGS=-warn-error A $(INCLUDES) - OBJS=q_MLast.cmo pa_r.cmo pa_rp.cmo pa_extend.cmo pa_extend_m.cmo pa_ifdef.cmo pr_dump.cmo - CAMLP4RM=pa_r.cmo pa_rp.cmo pr_dump.cmo --- ocaml-3.08.3/configure.orig 2005-04-29 22:58:18.000000000 +0200 +++ ocaml-3.08.3/configure 2005-04-29 23:06:30.000000000 +0200 @@ -1322,6 +1322,7 @@ diff --git a/ocaml-db3.patch b/ocaml-db3.patch index e6fd10e..30dc6df 100644 --- a/ocaml-db3.patch +++ b/ocaml-db3.patch @@ -1,13 +1,14 @@ ---- ocaml-3.09.2/configure.orig 2006-04-19 22:15:48.276544500 +0200 -+++ ocaml-3.09.2/configure 2006-04-22 23:49:10.045620750 +0200 -@@ -1238,51 +1238,12 @@ +diff -urN ocaml-3.10.0.org/configure ocaml-3.10.0/configure +--- ocaml-3.10.0.org/configure 2007-05-03 14:49:56.000000000 +0200 ++++ ocaml-3.10.0/configure 2007-07-15 20:20:19.325848428 +0200 +@@ -1252,51 +1252,13 @@ # See if we can compile the dbm library -dbm_include="not found" -dbm_link="not found" use_gdbm_ndbm=no -- + -for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do - if test -f $dir/ndbm.h; then - dbm_include=$dir @@ -42,8 +43,6 @@ - else - dbm_include="-I$dbm_include" - fi -- echo "DBM_INCLUDES=$dbm_include" >> Makefile -- echo "DBM_LINK=$dbm_link" >> Makefile - if test "$use_gdbm_ndbm" = "yes"; then - echo "#define DBM_USES_GDBM_NDBM" >> s.h - fi @@ -51,8 +50,8 @@ -fi +dbm_include="" +dbm_link="-ldb" -+echo "DBM_INCLUDES=$dbm_include" >> Makefile -+echo "DBM_LINK=$dbm_link" >> Makefile + echo "DBM_INCLUDES=$dbm_include" >> Makefile + echo "DBM_LINK=$dbm_link" >> Makefile +otherlibraries="$otherlibraries dbm" # Look for tcl/tk -- 2.44.0