On Tue, 21 Oct 2014 21:10:59 +0200 Christopher Zimmermann <chr...@openbsd.org> wrote:
> On Tue, 21 Oct 2014 19:13:01 +0100 Anil Madhavapeddy <a...@recoil.org> > wrote: > > > ok me, but it needs to go in with the ocaml-camlp4 port as they are > > paired. This also needs revision bumps across the board for ocaml > > ports, right? > > isn't this what the PKGSPEC is supposed to do for us? Hi, I tested upgrading from ocaml 4.02.0 with several dependees installed to ocaml 4.02.1. Seems to work fine: sudo pkg_add -u ocaml ocaml-4.02.0p0->4.02.1 forward dependencies: | Dependency of findlib-1.5.4 on ocaml-=4.02.0 doesn't match | Dependency of utop-1.15 on ocaml-=4.02.0 doesn't match | Dependency of mldonkey-3.1.5 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-ssl-0.4.6p2 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-lambda-term-1.6 on ocaml-=4.02.0 doesn't match | Dependency of unison-2.40.102p5 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-batteries-2.2.0p0 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-pcre-7.0.2p1 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-lwt-2.4.5 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-react-1.2.0 on ocaml-=4.02.0 doesn't match | Dependency of cil-1.5.1p5 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-zed-1.3 on ocaml-=4.02.0 doesn't match | Dependency of coccinelle-1.0.0rc15p3 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-net-3.7.5 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-camomile-0.8.5 on ocaml-=4.02.0 doesn't match | Dependency of ocaml-text-0.6p2 on ocaml-=4.02.0 doesn't match Merging findlib-1.5.4->1.5.4 (ok) Merging utop-1.15->1.16 (ok) Merging mldonkey-3.1.5->3.1.5 (ok) Merging ocaml-ssl-0.4.6p2->0.4.6p2 (ok) Merging ocaml-lambda-term-1.6->1.7 (ok) Merging unison-2.40.102p5->2.40.102p5 (ok) Merging ocaml-batteries-2.2.0p0->2.3.0 (ok) Merging ocaml-pcre-7.0.2p1->7.0.2p1 (ok) Merging ocaml-lwt-2.4.5->2.4.6 (ok) Merging ocaml-react-1.2.0->1.2.0 (ok) Merging cil-1.5.1p5->1.5.1p5 (ok) Merging ocaml-zed-1.3->1.3 (ok) Merging coccinelle-1.0.0rc15p3->1.0.0rc15p3 (ok) Merging ocaml-net-3.7.5->3.7.5p0 (ok) Merging ocaml-camomile-0.8.5->0.8.5 (ok) Merging ocaml-text-0.6p2->0.6p2 (ok) cil-1.5.1p5+coccinelle-1.0....:shared-mime-info-1.3->1.3: ok cil-1.5.1p5+coccinelle-1.0....:gdk-pixbuf-2.30.8->2.30.8: ok cil-1.5.1p5+coccinelle-1.0....:gtk-update-icon-cache-2.24.25->2.24.25: ok cil-1.5.1p5+coccinelle-1.0....:cairo-1.12.16->1.12.16: ok cil-1.5.1p5+coccinelle-1.0....:harfbuzz-0.9.35->0.9.35: ok cil-1.5.1p5+coccinelle-1.0....:pango-1.36.8->1.36.8: ok cil-1.5.1p5+coccinelle-1.0....:libcroco-0.6.8p0->0.6.8p0: ok cil-1.5.1p5+coccinelle-1.0....:librsvg-2.40.5->2.40.5: ok cil-1.5.1p5+coccinelle-1.0....:gnome-icon-theme-3.12.0p1->3.12.0p1: ok cil-1.5.1p5+coccinelle-1.0....:gnome-icon-theme-symbolic-3.12.0p1->3.12.0p1: ok cil-1.5.1p5+coccinelle-1.0....:atk-2.14.0->2.14.0: ok cil-1.5.1p5+coccinelle-1.0....:python-2.7.8->2.7.8: ok cil-1.5.1p5+coccinelle-1.0....:gtk+2-2.24.25->2.24.25: ok Detected loop, merging sets ok | ocaml-camlp4-4.02.1+1 | cil-1.5.1p5+coccinelle-1.0.0rc15p3+findlib-1.5.4+mldonkey-3.1.5+ocaml-4.02.0p0+ocaml-batteries-2.2.0p0+ocaml-camomile-0.8.5+ocaml-lambda-term-1.6+ocaml-lwt-2.4.5+ocaml-net-3.7.5+ocaml-pcre-7.0.2p1+ocaml-react-1.2.0+ocaml-ssl-0.4.6p2+ocaml-text-0.6p2+ocaml-zed-1.3+unison-2.40.102p5+utop-1.15->cil-1.5.1p5+coccinelle-1.0.0rc15p3+findlib-1.5.4+mldonkey-3.1.5+ocaml-4.02.1+ocaml-batteries-2.3.0+ocaml-camomile-0.8.5+ocaml-lambda-term-1.7+ocaml-lwt-2.4.6+ocaml-net-3.7.5p0+ocaml-pcre-7.0.2p1+ocaml-react-1.2.0+ocaml-ssl-0.4.6p2+ocaml-text-0.6p2+ocaml-zed-1.3+unison-2.40.102p5+utop-1.16 cil-1.5.1p5+coccinelle-1.0.0rc15p3+findlib-1.5.4+mldonkey-3.1.5+ocaml-4.02.0p0+ocaml-batteries-2.2.0p0+ocaml-camomile-0.8.5+ocaml-lambda-term-1.6+ocaml-lwt-2.4.5+ocaml-net-3.7.5+ocaml-pcre-7.0.2p1+ocaml-react-1.2.0+ocaml-ssl-0.4.6p2+ocaml-text-0.6p2+ocaml-zed-1.3+unison-2.40.102p5+utop-1.15->cil-1.5.1p5+coccinelle-1.0.0rc15p3+findlib-1.5.4+mldonkey-3.1.5+ocaml-4.02.1+ocaml-batteries-2.3.0+ocaml-camlp4-4.02.1+1+ocaml-camomile-0.8.5+ocaml-lambda-term-1.7+ocaml-lwt-2.4.6+ocaml-net-3.7.5p0+ocaml-pcre-7.0.2p1+ocaml-react-1.2.0+ocaml-ssl-0.4.6p2+ocaml-text-0.6p2+ocaml-zed-1.3+unison-2.40.102p5+utop-1.16: ok Read shared items: ok As far as I can see, we should be able to update without bumping other ports. OK? Christopher Index: ocaml/Makefile =================================================================== RCS file: /cvs/ports/lang/ocaml/Makefile,v retrieving revision 1.66 diff -u -p -r1.66 Makefile --- ocaml/Makefile 4 Sep 2014 15:56:26 -0000 1.66 +++ ocaml/Makefile 25 Oct 2014 11:03:37 -0000 @@ -10,8 +10,7 @@ COMMENT-graphics = OCaml Graphics librar # XXX Don't even think of updating ocaml alone. # Do check that the ports that depend on it still work, or repair them. # Don't forget to bump version in ocaml.port.mk, too! -VERSION=4.02.0 -REVISION=0 +VERSION=4.02.1 PKGNAME-main = ocaml-${VERSION} PKGNAME-graphics = ocaml-graphics-${VERSION} @@ -72,6 +71,9 @@ post-install: ${PREFIX}/share/doc/ocaml/html @${INSTALL_DATA} ${WRKDIR}/htmlman/libref/* \ ${PREFIX}/share/doc/ocaml/html/libref + ${INSTALL_DATA} \ + ${WRKSRC}/ocamlbuild/man/ocamlbuild.1 \ + ${PREFIX}/man/man1/ @${INSTALL_DATA} \ ${WRKSRC}/{LICENSE,Changes} \ ${PREFIX}/share/doc/ocaml Index: ocaml/distinfo =================================================================== RCS file: /cvs/ports/lang/ocaml/distinfo,v retrieving revision 1.19 diff -u -p -r1.19 distinfo --- ocaml/distinfo 2 Sep 2014 09:24:44 -0000 1.19 +++ ocaml/distinfo 25 Oct 2014 11:03:37 -0000 @@ -1,4 +1,4 @@ SHA256 (ocaml-4.02-refman-html.tar.gz) = Lxt5c6cbc/FAO4AUVseA52Q5C9fX/C5Fwf0RT3o4hgc= -SHA256 (ocaml-4.02.0.tar.gz) = 27y9cqKaUSBmd6YG6gnf7IOuJcu/Ut7pAwa8BIEs0DQ= +SHA256 (ocaml-4.02.1.tar.gz) = PLx69aOIbIxa+Nq1Vo1iVqGR2J7L1K6hjq9bRwNMYTg= SIZE (ocaml-4.02-refman-html.tar.gz) = 612896 -SIZE (ocaml-4.02.0.tar.gz) = 3048921 +SIZE (ocaml-4.02.1.tar.gz) = 3063481 Index: ocaml/ocaml.port.mk =================================================================== RCS file: /cvs/ports/lang/ocaml/ocaml.port.mk,v retrieving revision 1.29 diff -u -p -r1.29 ocaml.port.mk --- ocaml/ocaml.port.mk 8 Sep 2014 05:10:10 -0000 1.29 +++ ocaml/ocaml.port.mk 25 Oct 2014 11:03:37 -0000 @@ -57,6 +57,7 @@ INSTALL_TARGET = -install TEST_TARGET ?= -test _MODOASIS_SETUP = ${WRKDIR}/oasis_setup.byte + ###################################################################### # CONFIGURE .if ${PROPERTIES:Mocaml_native} @@ -64,7 +65,12 @@ _MODOASIS_OCAMLC = ocamlc.opt .else _MODOASIS_OCAMLC = ocamlc .endif -MODOASIS_configure = \ + +. if ${CONFIGURE_STYLE:L:Moasis_setup} +BUILD_DEPENDS += sysutils/oasis +MODOASIS_configure += cd ${WRKSRC} && oasis setup && +. endif +MODOASIS_configure += \ ${_MODOASIS_OCAMLC} -o ${_MODOASIS_SETUP} ${WRKSRC}/setup.ml && \ cd ${WRKSRC} && \ rm setup.cm[io] && \ Index: ocaml/patches/patch-asmrun_signals_osdep_h =================================================================== RCS file: ocaml/patches/patch-asmrun_signals_osdep_h diff -N ocaml/patches/patch-asmrun_signals_osdep_h --- ocaml/patches/patch-asmrun_signals_osdep_h 2 Sep 2014 09:24:44 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,50 +0,0 @@ -$OpenBSD: patch-asmrun_signals_osdep_h,v 1.1 2014/09/02 09:24:44 chrisz Exp $ - -Add stack overflow detection for i386 and amd64. - ---- asmrun/signals_osdep.h.orig Tue May 13 15:20:48 2014 -+++ asmrun/signals_osdep.h Sun Aug 31 20:22:33 2014 -@@ -130,6 +130,22 @@ - #define CONTEXT_YOUNG_PTR (context->uc_mcontext.gregs[REG_R15]) - #define CONTEXT_FAULTING_ADDRESS ((char *) info->si_addr) - -+/****************** AMD64, OpenBSD */ -+ -+#elif defined(TARGET_amd64) && defined (SYS_openbsd) -+ -+ #define DECLARE_SIGNAL_HANDLER(name) \ -+ static void name(int sig, siginfo_t * info, struct sigcontext * context) -+ -+ #define SET_SIGACT(sigact,name) \ -+ sigact.sa_sigaction = (void (*)(int,siginfo_t *,void *)) (name); \ -+ sigact.sa_flags = SA_SIGINFO -+ -+ #define CONTEXT_PC (context->sc_rip) -+ #define CONTEXT_EXCEPTION_POINTER (context->sc_r14) -+ #define CONTEXT_YOUNG_PTR (context->sc_r15) -+ #define CONTEXT_FAULTING_ADDRESS ((char *) info->si_addr) -+ - /****************** I386, Linux */ - - #elif defined(TARGET_i386) && defined(SYS_linux_elf) -@@ -142,6 +158,20 @@ - sigact.sa_flags = 0 - - #define CONTEXT_FAULTING_ADDRESS ((char *) context.cr2) -+ -+/****************** I386, BSD_ELF */ -+ -+#elif defined(TARGET_i386) && defined(SYS_bsd_elf) -+ -+ #define DECLARE_SIGNAL_HANDLER(name) \ -+ static void name(int sig, siginfo_t * info, struct sigcontext * context) -+ -+ #define SET_SIGACT(sigact,name) \ -+ sigact.sa_sigaction = (void (*)(int,siginfo_t *,void *)) (name); \ -+ sigact.sa_flags = SA_SIGINFO -+ -+ #define CONTEXT_PC (context->sc_eip) -+ #define CONTEXT_FAULTING_ADDRESS ((char *) info->si_addr) - - /****************** I386, BSD */ - Index: ocaml/patches/patch-configure =================================================================== RCS file: /cvs/ports/lang/ocaml/patches/patch-configure,v retrieving revision 1.18 diff -u -p -r1.18 patch-configure --- ocaml/patches/patch-configure 2 Sep 2014 09:24:44 -0000 1.18 +++ ocaml/patches/patch-configure 25 Oct 2014 11:03:37 -0000 @@ -1,7 +1,7 @@ $OpenBSD: patch-configure,v 1.18 2014/09/02 09:24:44 chrisz Exp $ ---- configure.orig Sun Aug 31 21:04:23 2014 -+++ configure Sun Aug 31 21:06:35 2014 -@@ -816,6 +816,8 @@ case "$target" in +--- configure.orig Fri Oct 3 21:25:46 2014 ++++ configure Sat Oct 18 12:19:58 2014 +@@ -822,6 +822,8 @@ case "$target" in if $arch64;then model=ppc64;else model=ppc;fi;; armv6*-*-linux-gnueabihf) arch=arm; model=armv6; system=linux_eabihf;; arm*-*-linux-gnueabihf) arch=arm; system=linux_eabihf;; @@ -10,24 +10,14 @@ $OpenBSD: patch-configure,v 1.18 2014/09 armv7*-*-linux-gnueabi) arch=arm; model=armv7; system=linux_eabi;; armv6t2*-*-linux-gnueabi) arch=arm; model=armv6t2; system=linux_eabi;; armv6*-*-linux-gnueabi) arch=arm; model=armv6; system=linux_eabi;; -@@ -1324,7 +1326,8 @@ fi - # Determine if system stack overflows can be detected - - case "$arch,$system" in -- i386,linux_elf|amd64,linux|power,rhapsody|amd64,macosx|i386,macosx) -+ i386,linux_elf|amd64,linux|power,rhapsody|amd64,macosx|i386,macosx| \ -+ amd64,openbsd|i386,bsd_elf) - inf "System stack overflow can be detected." - echo "#define HAS_STACK_OVERFLOW_DETECTION" >> s.h;; - *) -@@ -1581,11 +1584,11 @@ echo "X11_LINK=$x11_link" >> Makefile +@@ -1602,11 +1604,11 @@ echo "X11_LINK=$x11_link" >> Makefile # Look for BFD library --if ./hasgot -i bfd.h && \ -- ./hasgot -lbfd -ldl -liberty -lz bfd_openr; then -+if ./hasgot -I${OPENBSD_LOCALBASE}/include -DPACKAGE=ocaml -i bfd.h && \ -+ ./hasgot -L${OPENBSD_LOCALBASE}/lib -DPACKAGE=ocaml -lbfd -liberty -lz bfd_openr; then +-if sh ./hasgot -DPACKAGE=ocaml -i bfd.h && \ +- sh ./hasgot -DPACKAGE=ocaml -lbfd -ldl -liberty -lz bfd_openr; then ++if sh ./hasgot -I${OPENBSD_LOCALBASE}/include -DPACKAGE=ocaml -i bfd.h && \ ++ sh ./hasgot -L${OPENBSD_LOCALBASE}/lib -DPACKAGE=ocaml -lbfd -liberty -lz bfd_openr; then inf "BFD library found." echo "#define HAS_LIBBFD" >> s.h - echo "LIBBFD_LINK=-lbfd -ldl -liberty -lz" >> Makefile Index: ocaml/pkg/PLIST-main =================================================================== RCS file: /cvs/ports/lang/ocaml/pkg/PLIST-main,v retrieving revision 1.3 diff -u -p -r1.3 PLIST-main --- ocaml/pkg/PLIST-main 3 Sep 2014 17:48:19 -0000 1.3 +++ ocaml/pkg/PLIST-main 25 Oct 2014 11:03:39 -0000 @@ -411,6 +411,7 @@ lib/ocaml/weak.cmi lib/ocaml/weak.ml lib/ocaml/weak.mli @man man/man1/ocaml.1 +@man man/man1/ocamlbuild.1 @man man/man1/ocamlc.1 @man man/man1/ocamlc.opt.1 @man man/man1/ocamlcp.1 @@ -428,6 +429,32 @@ lib/ocaml/weak.mli @man man/man3/Arg.3o @man man/man3/Array.3o @man man/man3/ArrayLabels.3o +@man man/man3/Ast_helper.3o +@man man/man3/Ast_helper.Cf.3o +@man man/man3/Ast_helper.Ci.3o +@man man/man3/Ast_helper.Cl.3o +@man man/man3/Ast_helper.Csig.3o +@man man/man3/Ast_helper.Cstr.3o +@man man/man3/Ast_helper.Ctf.3o +@man man/man3/Ast_helper.Cty.3o +@man man/man3/Ast_helper.Exp.3o +@man man/man3/Ast_helper.Incl.3o +@man man/man3/Ast_helper.Mb.3o +@man man/man3/Ast_helper.Md.3o +@man man/man3/Ast_helper.Mod.3o +@man man/man3/Ast_helper.Mtd.3o +@man man/man3/Ast_helper.Mty.3o +@man man/man3/Ast_helper.Opn.3o +@man man/man3/Ast_helper.Pat.3o +@man man/man3/Ast_helper.Sig.3o +@man man/man3/Ast_helper.Str.3o +@man man/man3/Ast_helper.Te.3o +@man man/man3/Ast_helper.Typ.3o +@man man/man3/Ast_helper.Type.3o +@man man/man3/Ast_helper.Val.3o +@man man/man3/Ast_helper.Vb.3o +@man man/man3/Ast_mapper.3o +@man man/man3/Asttypes.3o @man man/man3/Bigarray.3o @man man/man3/Bigarray.Array1.3o @man man/man3/Bigarray.Array2.3o @@ -459,9 +486,12 @@ lib/ocaml/weak.mli @man man/man3/Int32.3o @man man/man3/Int64.3o @man man/man3/Lazy.3o +@man man/man3/Lexer.3o @man man/man3/Lexing.3o @man man/man3/List.3o @man man/man3/ListLabels.3o +@man man/man3/Location.3o +@man man/man3/Longident.3o @man man/man3/Map.3o @man man/man3/Map.Make.3o @man man/man3/Map.OrderedType.3o @@ -487,9 +517,15 @@ lib/ocaml/weak.mli @man man/man3/Num.3o @man man/man3/Obj.3o @man man/man3/Oo.3o +@man man/man3/Parse.3o +@man man/man3/Parser.3o +@man man/man3/Parsetree.3o @man man/man3/Parsing.3o @man man/man3/Pervasives.3o @man man/man3/Pervasives.LargeFile.3o +@man man/man3/Pprintast.3o +@man man/man3/Pprintast.printer.3o +@man man/man3/Printast.3o @man man/man3/Printexc.3o @man man/man3/Printexc.Slot.3o @man man/man3/Printf.3o @@ -513,6 +549,7 @@ lib/ocaml/weak.mli @man man/man3/Stream.3o @man man/man3/String.3o @man man/man3/StringLabels.3o +@man man/man3/Syntaxerr.3o @man man/man3/Sys.3o @man man/man3/Unix.3o @man man/man3/Unix.LargeFile.3o Index: ocaml-camlp4/Makefile =================================================================== RCS file: /cvs/ports/lang/ocaml-camlp4/Makefile,v retrieving revision 1.2 diff -u -p -r1.2 Makefile --- ocaml-camlp4/Makefile 3 Sep 2014 10:22:03 -0000 1.2 +++ ocaml-camlp4/Makefile 25 Oct 2014 11:03:39 -0000 @@ -3,14 +3,15 @@ COMMENT = OCaml Preprocessor and Pretty-Printer CATEGORIES = lang -V = 4.02.0 -REVISION = 0 +V = 4.02.1+1 GH_ACCOUNT = ocaml GH_PROJECT = camlp4 GH_TAGNAME = ${V} -GH_COMMIT = 0bb620fad7005850beadbf3aafeeb17d28c8fecd DISTNAME = ${GH_PROJECT}-${GH_TAGNAME} +WRKDIST = ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME:S/+/-/} PKGNAME = ocaml-${DISTNAME} +# No dynlink compatibility between releases +PKGSPEC = ocaml-camlp4-=${V} HOMEPAGE = https://github.com/ocaml/camlp4/ Index: ocaml-camlp4/distinfo =================================================================== RCS file: /cvs/ports/lang/ocaml-camlp4/distinfo,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 distinfo --- ocaml-camlp4/distinfo 2 Sep 2014 08:47:36 -0000 1.1.1.1 +++ ocaml-camlp4/distinfo 25 Oct 2014 11:03:39 -0000 @@ -1,2 +1,2 @@ -SHA256 (camlp4-4.02.0.tar.gz) = 6MuTgKfxtKhiadSr4hr8zws9lsbyB7hVwnFfOVgIu94= -SIZE (camlp4-4.02.0.tar.gz) = 697243 +SHA256 (camlp4-4.02.1+1.tar.gz) = BuwsB1o5YKdXuhM7ukaPBmImJPmkThjj3n1gn6BvYtI= +SIZE (camlp4-4.02.1+1.tar.gz) = 645754 Index: ocaml-camlp4/patches/patch-Makefile =================================================================== RCS file: ocaml-camlp4/patches/patch-Makefile diff -N ocaml-camlp4/patches/patch-Makefile --- ocaml-camlp4/patches/patch-Makefile 4 Sep 2014 16:46:37 -0000 1.1.1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,15 +0,0 @@ -$OpenBSD: patch-Makefile,v 1.1.1.1 2014/09/04 16:46:37 chrisz Exp $ - -fix bytecode only building. Already included upstream. - ---- Makefile.orig Thu Sep 4 18:35:01 2014 -+++ Makefile Thu Sep 4 18:35:04 2014 -@@ -1,6 +1,8 @@ - OB := ocamlbuild -classic-display -no-ocamlfind - -include config.sh - -+OB += $(OB_FLAGS) -+ - .PHONY: default - default: byte - -- http://gmerlin.de OpenPGP: http://gmerlin.de/christopher.pub F190 D013 8F01 AA53 E080 3F3C F17F B0A1 D44E 4FEE -- http://gmerlin.de OpenPGP: http://gmerlin.de/christopher.pub F190 D013 8F01 AA53 E080 3F3C F17F B0A1 D44E 4FEE
signature.asc
Description: PGP signature