[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ocaml 3.06.99.beta2-2 released.



On Sat, Sep 06, 2003 at 09:30:40AM +0200, Stefano Zacchiroli wrote:
> On Fri, Sep 05, 2003 at 10:00:09PM +0200, J?r?me Marant wrote:
> > > It's ok not to support more than one version at a time, but we had
> > > already adopted the /usr/lib/ocaml/<version> convention. IMO is silly to
> > > switch back to /usr/lib/ocaml again. It will be just an additional
> > > difficulty for the users.
> > 
> > I doubt it. The switch to the versioned ocaml directory has been
> > done transparently and only packages install stuff there.
> > But maybe did I miss something?
> 
> Well, I skim through the ocaml libdir _manually_ (i.e. via shell and tab
> expansions!) very often and changing it cause difficulties. I know other
> users which had the same problem when we changed the location last time.
> 
> If it's not really necessary why changing it again?

Well, it seems that nobody even downloaded or looked at source of the
beta packages i released.

There is absolutely nothing to worry, the only thing is that i managed
to have most of our changes incorporated upstream, except these two,
which will have to stay for now as debian patches :

diff -ur ocaml-3.07beta2.orig/camlp4/config/configure_batch ocaml-3.07beta2/camlp4/config/configure_batch
--- ocaml-3.07beta2.orig/camlp4/config/configure_batch	2002-07-23 16:11:49.000000000 +0200
+++ ocaml-3.07beta2/camlp4/config/configure_batch	2003-08-26 14:41:45.000000000 +0200
@@ -92,13 +92,13 @@
    *) echo "BINDIR=$bindir" >> Makefile.cnf;;
 esac
 case "$libdir" in
-  "") echo 'LIBDIR=$(PREFIX)/lib/camlp4' >> Makefile.cnf
-      libdir="$prefix/lib/camlp4";;
+  "") echo 'LIBDIR=$(PREFIX)/lib/ocaml/3.07/camlp4' >> Makefile.cnf
+      libdir="$prefix/lib/ocaml/3.07/camlp4";;
    *) echo "LIBDIR=$libdir" >> Makefile.cnf;;
 esac
 case "$mandir" in
-  "") echo 'MANDIR=$(PREFIX)/man/man1' >> Makefile.cnf
-      mandir="$prefix/man/man1";;
+  "") echo 'MANDIR=$(PREFIX)/share/man/man1' >> Makefile.cnf
+      mandir="$prefix/share/man/man1";;
    *) echo "MANDIR=$mandir" >> Makefile.cnf;;
 esac
 
diff -ur ocaml-3.07beta2.orig/configure ocaml-3.07beta2/configure
--- ocaml-3.07beta2.orig/configure	2003-08-20 17:10:58.000000000 +0200
+++ ocaml-3.07beta2/configure	2003-08-26 14:41:45.000000000 +0200
@@ -146,8 +146,8 @@
    *) echo "BINDIR=$bindir" >> Makefile;;
 esac
 case "$libdir" in
-  "") echo 'LIBDIR=$(PREFIX)/lib/ocaml' >> Makefile
-      libdir="$prefix/lib/ocaml";;
+  "") echo 'LIBDIR=$(PREFIX)/lib/ocaml/3.07' >> Makefile
+      libdir="$prefix/lib/ocaml/3.07";;
    *) echo "LIBDIR=$libdir" >> Makefile;;
 esac
 echo 'STUBLIBDIR=$(LIBDIR)/stublibs' >> Makefile

And this one : 

diff -ur ocaml-3.07beta1.orig/tools/Makefile ocaml-3.07beta1/tools/Makefile
--- ocaml-3.07beta1.orig/tools/Makefile	2003-04-02 03:17:58.000000000 +0200
+++ ocaml-3.07beta1/tools/Makefile	2003-08-06 13:15:53.000000000 +0200
@@ -23,7 +23,8 @@
 COMPFLAGS= -warn-error A $(INCLUDES)
 LINKFLAGS=$(INCLUDES)
 
-all: ocamldep ocamlprof ocamlcp ocamlmktop ocamlmklib scrapelabels addlabels
+all: ocamldep ocamlprof ocamlcp ocamlmktop ocamlmklib scrapelabels addlabels \
+	objinfo
 
 opt.opt: ocamldep.opt
 
--- ocaml-3.07-3.06.99.2003.07.05.orig/man/ocamlc.m
+++ ocaml-3.07-3.06.99.2003.07.05/man/ocamlc.m
@@ -241,7 +241,8 @@
 
 .SH SEE ALSO
 .BR ocaml (1),
-.BR ocamlrun (1).
+.BR ocamlrun (1),
+.BR objinfo (1).
 .br
 .I The Objective Caml user's manual,
 chapter "Batch compilation".
--- ocaml-3.07-3.06.99.2003.07.05.orig/man/ocamlopt.m
+++ ocaml-3.07-3.06.99.2003.07.05/man/ocamlopt.m
@@ -224,7 +224,8 @@
 array or string outside of its bounds.
 
 .SH SEE ALSO
-.BR ocamlc (1).
+.BR ocamlc (1),
+.BR objinfo (1).
 .br
 .I The Objective Caml user's manual,
 chapter "Native-code compilation".
--- ocaml-3.07-3.06.99.2003.07.05.orig/man/objinfo.m
+++ ocaml-3.07-3.06.99.2003.07.05/man/objinfo.m
@@ -0,0 +1,40 @@
+.TH OCAML-SOAP 1 "October 26, 2002"
+.SH NAME
+objinfo \- dump an OCaml compilation unit description
+.SH SYNOPSIS
+.B objinfo
+.RI file\ ...
+.SH DESCRIPTION
+Dump information contained in OCaml compilation units.
+Currently it works on .cmi, .cmo and .cma files.
+.sp 2
+.B objinfo
+is able to show information regarding:
+.br
+.IP
+module names
+.sp 2
+unit name
+.sp 2
+declared primitives
+.sp 2
+imported interfaces
+.sp 2
+md5sums of imported interfaces
+.sp 2
+forced custom mode
+.sp 2
+extra C libraries needed
+.sp 2
+extra C flags needed
+.sp 2
+use of unsafe features
+.PP
+depending on its invocation on .cmi, .cmo or .cma arguments.
+.SH SEE ALSO
+.BR ocamlc (1),
+.BR ocamlopt (1)
+.br
+.SH AUTHOR
+This manual page was written by Stefano Zacchiroli <zack@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).

But i hope that even those two, together with the suffix thing will
become unecessary in the _UPSTREAM_ 3.08 release.

Shame on you all for not looking at the code before asking such obvious
questions :))))

Friendly,

Sven Luther



Reply to: