head 1.29; access; symbols pkgsrc-2013Q2:1.29.0.4 pkgsrc-2013Q2-base:1.29 pkgsrc-2012Q4:1.29.0.2 pkgsrc-2012Q4-base:1.29 pkgsrc-2012Q3:1.28.0.4 pkgsrc-2012Q3-base:1.28 pkgsrc-2012Q2:1.28.0.2 pkgsrc-2012Q2-base:1.28 pkgsrc-2012Q1:1.26.0.2 pkgsrc-2012Q1-base:1.26 pkgsrc-2011Q4:1.24.0.2 pkgsrc-2011Q4-base:1.24 pkgsrc-2011Q3:1.23.0.2 pkgsrc-2011Q3-base:1.23 pkgsrc-2011Q2:1.21.0.4 pkgsrc-2011Q2-base:1.21 pkgsrc-2011Q1:1.21.0.2 pkgsrc-2011Q1-base:1.21 pkgsrc-2010Q4:1.20.0.2 pkgsrc-2010Q4-base:1.20 pkgsrc-2010Q3:1.19.0.2 pkgsrc-2010Q3-base:1.19 pkgsrc-2010Q2:1.18.0.6 pkgsrc-2010Q2-base:1.18 pkgsrc-2010Q1:1.18.0.4 pkgsrc-2010Q1-base:1.18 pkgsrc-2009Q4:1.18.0.2 pkgsrc-2009Q4-base:1.18 pkgsrc-2009Q3:1.17.0.2 pkgsrc-2009Q3-base:1.17 pkgsrc-2009Q2:1.16.0.16 pkgsrc-2009Q2-base:1.16 pkgsrc-2009Q1:1.16.0.14 pkgsrc-2009Q1-base:1.16 pkgsrc-2008Q4:1.16.0.12 pkgsrc-2008Q4-base:1.16 pkgsrc-2008Q3:1.16.0.10 pkgsrc-2008Q3-base:1.16 cube-native-xorg:1.16.0.8 cube-native-xorg-base:1.16 pkgsrc-2008Q2:1.16.0.6 pkgsrc-2008Q2-base:1.16 cwrapper:1.16.0.4 pkgsrc-2008Q1:1.16.0.2 pkgsrc-2008Q1-base:1.16 pkgsrc-2007Q4:1.14.0.4 pkgsrc-2007Q4-base:1.14 pkgsrc-2007Q3:1.14.0.2 pkgsrc-2007Q3-base:1.14 pkgsrc-2007Q2:1.13.0.4 pkgsrc-2007Q2-base:1.13 pkgsrc-2007Q1:1.13.0.2 pkgsrc-2007Q1-base:1.13 pkgsrc-2006Q4:1.12.0.2 pkgsrc-2006Q4-base:1.12 pkgsrc-2006Q3:1.11.0.4 pkgsrc-2006Q3-base:1.11 pkgsrc-2006Q2:1.11.0.2 pkgsrc-2006Q2-base:1.11 pkgsrc-2006Q1:1.9.0.2 pkgsrc-2006Q1-base:1.9 pkgsrc-2005Q4:1.7.0.2 pkgsrc-2005Q4-base:1.7 pkgsrc-2005Q3:1.6.0.4 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.2 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.4.0.2 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.1.0.6 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.4 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.2 pkgsrc-2004Q2-base:1.1; locks; strict; comment @# @; 1.29 date 2012.10.08.15.05.32; author jaapb; state dead; branches; next 1.28; 1.28 date 2012.06.24.08.27.31; author sbd; state Exp; branches; next 1.27; 1.27 date 2012.06.22.11.39.45; author sbd; state Exp; branches; next 1.26; 1.26 date 2012.03.12.12.28.04; author fhajny; state Exp; branches; next 1.25; 1.25 date 2012.03.04.09.06.46; author asau; state Exp; branches; next 1.24; 1.24 date 2011.11.27.19.11.59; author marino; state Exp; branches; next 1.23; 1.23 date 2011.07.26.21.00.24; author abs; state Exp; branches; next 1.22; 1.22 date 2011.07.20.14.10.09; author riastradh; state Exp; branches; next 1.21; 1.21 date 2011.03.29.13.45.02; author adam; state Exp; branches; next 1.20; 1.20 date 2010.12.19.08.27.17; author is; state Exp; branches; next 1.19; 1.19 date 2010.08.19.08.06.53; author asau; state Exp; branches; next 1.18; 1.18 date 2009.11.19.03.05.57; author minskim; state Exp; branches; next 1.17; 1.17 date 2009.09.07.21.48.13; author tonio; state Exp; branches; next 1.16; 1.16 date 2008.01.29.01.05.13; author rillig; state Exp; branches; next 1.15; 1.15 date 2008.01.23.20.42.25; author adam; state Exp; branches; next 1.14; 1.14 date 2007.09.14.15.34.12; author adam; state Exp; branches; next 1.13; 1.13 date 2007.01.06.00.11.43; author dmcmahill; state Exp; branches; next 1.12; 1.12 date 2006.10.03.21.06.25; author adam; state Exp; branches; next 1.11; 1.11 date 2006.04.30.17.03.20; author joerg; state Exp; branches; next 1.10; 1.10 date 2006.04.25.04.58.32; author hiramatsu; state Exp; branches; next 1.9; 1.9 date 2006.02.02.20.47.26; author rillig; state Exp; branches; next 1.8; 1.8 date 2006.01.16.09.41.48; author adam; state Exp; branches; next 1.7; 1.7 date 2005.11.29.07.02.47; author joerg; state Exp; branches; next 1.6; 1.6 date 2005.06.07.00.59.49; author minskim; state Exp; branches; next 1.5; 1.5 date 2005.03.24.11.32.50; author adam; state Exp; branches; next 1.4; 1.4 date 2005.02.04.21.35.51; author adrianp; state Exp; branches; next 1.3; 1.3 date 2005.01.24.21.18.16; author tv; state Exp; branches; next 1.2; 1.2 date 2004.12.24.17.16.04; author jmmv; state Exp; branches; next 1.1; 1.1 date 2004.04.22.09.18.39; author tron; state Exp; branches; next ; desc @@ 1.29 log @Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes. @ text @$NetBSD: patch-at,v 1.28 2012/06/24 08:27:31 sbd Exp $ . Include CFLAGS in bytecccompopts and LDFLAGS in bytecclinkopts. . Add cases for dragonfly support. . Use the portable `test x = y', not `test x == y' GNUism. . Enable native dynamic loading on NetBSD/i386 and NetBSD/amd64. . Fix pattern to match Solaris versions. . Add cases for interix support. . Add cases for NetBSD/arm support. . Update Darwin patterns to match versions >=10. . Enable profiling support on BSD/powerpc. . Skip X11 library and header file checks when X11 support is disabled. . Frobnicate dbm detection. . Enable suport for x86_64-DragonFly . Enable profiling and native dynamic loading for all DragonFly platforms . Add pkgsrc X11 checks in case X11 support is enabled in the future . When linking with X11 add an rpath to X11 libdir. . Fix SunOS linker and as args . On Linux libieee can only appear once on the linker command line. --- configure.orig 2011-07-04 21:15:01.000000000 +0000 +++ configure @@@@ -328,6 +328,8 @@@@ case "$bytecc,$host" in gcc*) bytecccompopts="-fno-defer-pop $gcc_warnings";; esac +bytecccompopts="$bytecccompopts $CFLAGS" +bytecclinkopts="$bytecclinkopts $LDFLAGS" # Configure compiler to use in further tests @@@@ -521,7 +523,7 @@@@ if test $withsharedlibs = "yes"; then mksharedlib="$flexlink" mkmaindll="$flexlink -maindll" shared_libraries_supported=true;; - *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-openbsd*|*-*-netbsd*|*-*-gnu*) + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-openbsd*|*-*-netbsd*|*-*-gnu*|*-*-dragonfly) sharedcccompopts="-fPIC" mksharedlib="$bytecc -shared" bytecclinkopts="$bytecclinkopts -Wl,-E" @@@@ -621,7 +623,7 @@@@ if test $withsharedlibs = "yes"; then i[3456]86-*-linux*) natdynlink=true;; x86_64-*-linux*) natdynlink=true;; i[3456]86-*-darwin10.*) - if test $arch64 == true; then + if test $arch64 = true; then natdynlink=true fi;; i[3456]86-*-darwin[89]*) natdynlink=true;; @@@@ -635,6 +637,8 @@@@ if test $withsharedlibs = "yes"; then x86_64-*-openbsd*) natdynlink=true;; i[345]86-*-netbsd*) natdynlink=true;; x86_64-*-netbsd*) natdynlink=true;; + i[3456]86-*-dragonfly) natdynlink=true;; + x86_64-*-dragonfly) natdynlink=true;; i386-*-gnu0.3) natdynlink=true;; esac fi @@@@ -660,12 +664,13 @@@@ case "$host" in alpha*-*-netbsd*) arch=alpha; system=netbsd;; alpha*-*-openbsd*) arch=alpha; system=openbsd;; sparc*-*-sunos4.*) arch=sparc; system=sunos;; - sparc*-*-solaris2.*) arch=sparc; system=solaris;; + sparc*-*-solaris2*) arch=sparc; system=solaris;; sparc*-*-*bsd*) arch=sparc; system=bsd;; sparc*-*-linux*) arch=sparc; system=linux;; sparc*-*-gnu*) arch=sparc; system=gnu;; i[3456]86-*-linux*) arch=i386; system=linux_`sh ./runtest elf.c`;; i[3456]86-*-*bsd*) arch=i386; system=bsd_`sh ./runtest elf.c`;; + i[3456]86-*-dragonfly*) arch=i386; system=bsd_`sh ./runtest elf.c`;; i[3456]86-*-nextstep*) arch=i386; system=nextstep;; i[3456]86-*-solaris*) if $arch64; then arch=amd64; system=solaris @@@@ -674,6 +679,7 @@@@ case "$host" in fi;; i[3456]86-*-beos*) arch=i386; system=beos;; i[3456]86-*-cygwin*) arch=i386; system=cygwin;; + i[3456]86-*-interix3*) arch=i386; system=interix3;; i[3456]86-*-darwin*) if $arch64; then arch=amd64; system=macosx else @@@@ -690,17 +696,21 @@@@ case "$host" in powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;; powerpc-*-darwin*) arch=power; system=rhapsody if $arch64; then model=ppc64; else model=ppc; fi;; + arm*-*-netbsd*) arch=arm; system=netbsd;; arm*-*-linux*) arch=arm; system=linux;; arm*-*-gnu*) arch=arm; system=gnu;; ia64-*-linux*) arch=ia64; system=linux;; ia64-*-gnu*) arch=ia64; system=gnu;; ia64-*-freebsd*) arch=ia64; system=freebsd;; + x86_64-*-dragonfly*) arch=amd64; system=dragonfly;; x86_64-*-linux*) arch=amd64; system=linux;; x86_64-*-gnu*) arch=amd64; system=gnu;; x86_64-*-freebsd*) arch=amd64; system=freebsd;; x86_64-*-netbsd*) arch=amd64; system=netbsd;; x86_64-*-openbsd*) arch=amd64; system=openbsd;; + x86_64-*-solaris*) arch=amd64; system=solaris;; x86_64-*-darwin9.5) arch=amd64; system=macosx;; + x86_64-*-darwin1[0-9]*) arch=amd64; system=macosx;; esac # Some platforms exist both in 32-bit and 64-bit variants, not distinguished @@@@ -740,7 +750,7 @@@@ case "$arch,$nativecc,$system,$host_type if $arch64; then partialld="ld -r -arch ppc64"; fi;; *,gcc*,cygwin,*) nativecccompopts="$gcc_warnings -U_WIN32";; amd64,gcc*,macosx,*) partialld="ld -r -arch x86_64";; - amd64,gcc*,solaris,*) partialld="ld -r -m elf_x86_64";; + amd64,gcc*,solaris,*) partialld="ld -r -64";; *,gcc*,*,*) nativecccompopts="$gcc_warnings";; esac @@@@ -763,7 +773,7 @@@@ case "$arch,$model,$system" in hppa,*,*) as='as'; aspp='gcc -traditional -c';; i386,*,solaris) as='as' - aspp='/usr/ccs/bin/as -P';; + aspp='gcc -traditional -c';; i386,*,*) as='as' aspp='gcc -c';; ia64,*,*) as='as -xexplicit' @@@@ -801,6 +811,8 @@@@ case "$arch,$model,$system" in case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;; amd64,*,linux) profiling='prof';; amd64,*,gnu) profiling='prof';; + power,*,bsd) profiling='prof';; + *,*,dragonfly) profiling='prof';; *) profiling='noprof';; esac @@@@ -1205,6 +1217,8 @@@@ if test "$pthread_wanted" = "yes"; then pthread_caml_link="-cclib -lpthread -cclib -lposix4";; *-*-freebsd*) pthread_link="-pthread" pthread_caml_link="-cclib -pthread";; + *-*-dragonfly*) pthread_link="-pthread" + pthread_caml_link="-cclib -pthread";; *-*-openbsd*) pthread_link="-pthread" pthread_caml_link="-cclib -pthread";; *) pthread_link="-lpthread" @@@@ -1256,6 +1270,7 @@@@ fi x11_include="not found" x11_link="not found" +if test "$disable_x11" != "yes"; then for dir in \ $x11_include_dir \ \ @@@@ -1294,6 +1309,7 @@@@ for dir in \ /usr/XFree86/include/X11 \ \ /usr/include \ + /usr/pkg/include \ /usr/local/include \ /usr/unsupported/include \ /usr/athena/include \ @@@@ -1308,6 +1324,7 @@@@ do break fi done +fi if test "$x11_include" = "not found"; then x11_try_lib_dir='' @@@@ -1350,6 +1367,7 @@@@ for dir in \ \ /usr/lib64 \ /usr/lib \ + /usr/pkg/lib/ \ /usr/local/lib \ /usr/unsupported/lib \ /usr/athena/lib \ @@@@ -1368,11 +1386,8 @@@@ do if test $dir = /usr/lib; then x11_link="-lX11" else - x11_libs="-L$dir" - case "$host" in - *-*-*bsd*) x11_link="-R$dir -L$dir -lX11";; - *) x11_link="-L$dir -lX11";; - esac + x11_libs="-L$dir ${COMPILER_RPATH_FLAG}$dir" + x11_link="-L$dir ${COMPILER_RPATH_FLAG}$dir -lX11" fi break fi @@@@ -1402,31 +1417,8 @@@@ 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 - if sh ./hasgot dbm_open; then - dbm_link="" - elif sh ./hasgot -lndbm dbm_open; then - dbm_link="-lndbm" - elif sh ./hasgot -ldb1 dbm_open; then - dbm_link="-ldb1" - elif sh ./hasgot -lgdbm dbm_open; then - dbm_link="-lgdbm" - elif sh ./hasgot -lgdbm_compat -lgdbm dbm_open; then - dbm_link="-lgdbm_compat -lgdbm" - fi - break - fi - if test -f $dir/gdbm-ndbm.h; then - dbm_include=$dir - use_gdbm_ndbm=yes - if sh ./hasgot -lgdbm_compat -lgdbm dbm_open; then - dbm_link="-lgdbm_compat -lgdbm" - fi - break - fi -done +dbm_include=/usr/include +dbm_link=${BDB_LIBS} if test "$dbm_include" = "not found" || test "$dbm_link" = "not found"; then echo "NDBM not found, the \"dbm\" library will not be supported." else @@@@ -1436,8 +1428,8 @@@@ else else dbm_include="-I$dbm_include" fi - if test "$use_gdbm_ndbm" = "yes"; then - echo "#define DBM_USES_GDBM_NDBM" >> s.h + if test ${BDB_BUILTIN} = "yes"; then + echo "#define DBM_USES_DB" >> s.h fi otherlibraries="$otherlibraries dbm" fi @@@@ -1500,6 +1492,9 @@@@ if test $has_tk = true; then fi fi +case "$host" in + *-*-linux*) tk_libs=`echo $tk_libs | sed -e's,-lieee,,'`;; +esac tkauxlibs="$mathlib $dllib" tcllib='' tklib='' @ 1.28 log @On Linux libieee can only appear once on the linker command line. @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.27 2012/06/22 11:39:45 sbd Exp $ @ 1.27 log @When linking with X11 add an rpath to X11 libdir. Bump PKGREVISION @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.26 2012/03/12 12:28:04 fhajny Exp $ d19 1 d231 10 @ 1.26 log @Fix SunOS linker/as args. @ text @d1 1 a1 1 $NetBSD$ d17 1 d171 15 a185 1 @@@@ -1402,31 +1420,8 @@@@ dbm_include="not found" d219 1 a219 1 @@@@ -1436,8 +1431,8 @@@@ else @ 1.25 log @Update to O'Caml 3.12.1 Changes in Objective Caml 3.12.1: Features: - added '-ml-synonym' and '-mli-synonym' options to ocamldep - added '-ocamldoc' option to ocamlbuild - added possibility to add options to ocamlbuild - added access to current camlp4 parsers and printers - improved instruction selection for float operations on amd64 - stdlib: added a 'usage_string' function to Arg - allow with constraints to add a type equation to a datatype definition - ocamldoc: allow to merge '@@before' tags like other ones - ocamlbuild: allow dependency on file "_oasis" Other changes: - Changed default minor heap size from 32k to 256k words. - Added new operation 'compare_ext' to custom blocks, called when comparing a custom block value with an unboxed integer. Multiple bug fixes. @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.24 2011/11/27 19:11:59 marino Exp $ d17 1 d19 3 a21 3 --- configure.orig 2011-07-05 01:15:01.000000000 +0400 +++ configure 2012-03-04 07:07:17.000000000 +0400 @@@@ -328,6 +328,8 @@@@ d30 1 a30 1 @@@@ -521,7 +523,7 @@@@ d39 1 a39 1 @@@@ -621,7 +623,7 @@@@ d48 1 a48 1 @@@@ -635,6 +637,8 @@@@ d57 1 a57 1 @@@@ -660,12 +664,13 @@@@ d72 1 a72 1 @@@@ -674,6 +679,7 @@@@ d80 1 a80 1 @@@@ -690,17 +696,21 @@@@ d102 19 a120 1 @@@@ -801,6 +811,8 @@@@ d129 1 a129 1 @@@@ -1205,6 +1217,8 @@@@ d138 1 a138 1 @@@@ -1256,6 +1270,7 @@@@ d146 1 a146 1 @@@@ -1294,6 +1309,7 @@@@ d154 1 a154 1 @@@@ -1308,6 +1324,7 @@@@ d162 1 a162 1 @@@@ -1350,6 +1367,7 @@@@ d170 1 a170 1 @@@@ -1402,31 +1420,8 @@@@ d204 1 a204 1 @@@@ -1436,8 +1431,8 @@@@ @ 1.24 log @lang/ocaml: Add DragonFly64, natdynload, and gprof support Add support for x86_64-*-DragonFly Add support for native dynamic loading on both platforms Add support for profiling on both platforms Add ability to detect X11 in pkgsrc. This currently has no impact because the makefile disables X11. @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.23 2011/07/26 21:00:24 abs Exp $ d18 3 a20 3 --- configure.orig 2010-07-28 13:18:22.000000000 +0000 +++ configure @@@@ -328,6 +328,8 @@@@ case "$bytecc,$host" in d29 1 a29 1 @@@@ -520,7 +522,7 @@@@ if test $withsharedlibs = "yes"; then d38 1 a38 1 @@@@ -620,7 +622,7 @@@@ if test $withsharedlibs = "yes"; then d47 4 a50 5 @@@@ -629,6 +631,10 @@@@ if test $withsharedlibs = "yes"; then i686-*-kfreebsd*) natdynlink=true;; x86_64-*-kfreebsd*) natdynlink=true;; i386-*-gnu0.3) natdynlink=true;; + i[3456]86-*-netbsdelf) natdynlink=true;; a51 1 + x86_64-*-netbsd) natdynlink=true;; d53 1 d56 1 a56 2 @@@@ -653,12 +659,13 @@@@ case "$host" in d71 1 a71 1 @@@@ -667,6 +674,7 @@@@ case "$host" in d79 1 a79 1 @@@@ -683,17 +691,21 @@@@ case "$host" in d101 1 a101 1 @@@@ -794,6 +806,8 @@@@ case "$arch,$model,$system" in d110 1 a110 1 @@@@ -1198,6 +1212,8 @@@@ if test "$pthread_wanted" = "yes"; then d119 1 a119 1 @@@@ -1249,6 +1265,7 @@@@ fi d127 1 a127 1 @@@@ -1287,6 +1304,7 @@@@ for dir in \ d135 1 a135 1 @@@@ -1301,6 +1319,7 @@@@ do d143 1 a143 1 @@@@ -1343,6 +1362,7 @@@@ for dir in \ d151 1 a151 1 @@@@ -1395,31 +1415,8 @@@@ dbm_include="not found" d185 1 a185 1 @@@@ -1429,8 +1426,8 @@@@ else @ 1.23 log @Fix native dynamic detection on amd64 - thanks riastradh@@ for pointer @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.22 2011/07/20 14:10:09 riastradh Exp $ d14 3 d47 1 a47 1 @@@@ -629,6 +631,8 @@@@ if test $withsharedlibs = "yes"; then d52 1 d54 1 d58 1 a58 1 @@@@ -653,12 +657,13 @@@@ case "$host" in d73 1 a73 1 @@@@ -667,6 +672,7 @@@@ case "$host" in d81 1 a81 1 @@@@ -683,6 +689,7 @@@@ case "$host" in d89 5 a93 1 @@@@ -693,7 +700,9 @@@@ case "$host" in d103 1 a103 1 @@@@ -794,6 +803,7 @@@@ case "$arch,$model,$system" in d108 1 d112 1 a112 1 @@@@ -1198,6 +1208,8 @@@@ if test "$pthread_wanted" = "yes"; then d121 1 a121 1 @@@@ -1249,6 +1261,7 @@@@ fi d129 9 a137 1 @@@@ -1301,6 +1314,7 @@@@ do d145 9 a153 1 @@@@ -1395,31 +1409,8 @@@@ dbm_include="not found" d187 1 a187 1 @@@@ -1429,8 +1420,8 @@@@ else @ 1.22 log @Enable native dynamic loading support on NetBSD/{i386,amd64}. Bump pkgrevision. While I'm here: add a comment to patch-at explaining what it does. Tested by $ make install $ cd work/ocaml-3.12.0/testsuite && gmake one DIR=tests/lib-dynlink-native (Not in a build-env because that uses the wrappers, which don't let the test suite see the installed OCaml files.) This is only a workaround on NetBSD/{i386,amd64} for the problems of OCaml PR#5049 . (E.g., this workaround makes Coccinelle build on those platforms -- but it still won't build on platforms with native compilation but no native dynamic loading. Need to hack everything that uses dynlink to have four compile-time cases -- {yes,no} {byte,nat}dynlink.) @ text @d1 1 a1 1 $NetBSD$ d49 1 a49 1 + x86_64-*-netbsdelf) natdynlink=true;; @ 1.21 log @Pass CFLAGS and LDFLAGS to the compiler (fixes problems e.g. on Mac OS X); pkglint clean-up @ text @d1 13 a13 1 $NetBSD: patch-at,v 1.20 2010/12/19 08:27:17 is Exp $ d26 1 a26 1 @@@@ -520,7 +520,7 @@@@ if test $withsharedlibs = "yes"; then d35 1 a35 1 @@@@ -620,7 +620,7 @@@@ if test $withsharedlibs = "yes"; then d44 10 a53 1 @@@@ -653,12 +653,13 @@@@ case "$host" in d68 1 a68 1 @@@@ -667,6 +668,7 @@@@ case "$host" in d76 1 a76 1 @@@@ -683,6 +685,7 @@@@ case "$host" in d84 1 a84 1 @@@@ -693,7 +696,9 @@@@ case "$host" in d94 1 a94 1 @@@@ -794,6 +799,7 @@@@ case "$arch,$model,$system" in d102 1 a102 1 @@@@ -1198,6 +1204,8 @@@@ if test "$pthread_wanted" = "yes"; then d111 1 a111 1 @@@@ -1249,6 +1257,7 @@@@ fi d119 1 a119 1 @@@@ -1301,6 +1310,7 @@@@ do d127 1 a127 1 @@@@ -1395,31 +1405,8 @@@@ dbm_include="not found" d161 1 a161 1 @@@@ -1429,8 +1416,8 @@@@ else @ 1.20 log @- Enable native compilation for arm. - to do this, and make the result runnable on pre-thumb arm, change upstreams assembler snippets and stubs to use "mov pc,reg" instead of the return/call-to-thumb-friendly "bx reg", which is not available in non-thumb-enabled arm CPUs. Whether this is the way to go, or a seperate "armt" architecture for ocaml is needed, needs to be discussed with upstream. Resulting compiler, when running its selftest suite, has 6 errors less than the same on i386. Unison compiled natively with this passes its self-test. @ text @d1 1 a1 1 $NetBSD$ d5 9 @ 1.19 log @Update to O'Caml 3.12.0, add test target. Some of the highlights in release 3.12 are: * Polymorphic recursion is supported, using explicit type declarations on the recursively-defined identifiers. * First-class modules: module expressions can be embedded as values of the core language, then manipulated like any other first-class value, then projected back to the module level. * New operator to modify a signature a posteriori: S with type t := tau denotes signature S where the t type component is removed and substituted by the type tau elsewhere. * New notations for record expressions and record patterns: { lbl } as shorthand for { lbl = lbl }, and { ...; _ } marks record patterns where some labels were intentionally omitted. * Local open let open ... in ... now supported by popular demand. * Type variables can be bound as type parameters to functions; such types are treated like abstract types within the function body, and like type variables (possibly generalized) outside. * The module type of construct enables to recover the module type of a given module. * Explicit method override using the method! keyword, with associated warnings and errors. @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.18 2009/11/19 03:05:57 minskim Exp $ d3 3 a5 3 --- configure.orig 2010-07-28 17:18:22.000000000 +0400 +++ configure 2010-08-12 14:49:14.000000000 +0400 @@@@ -520,7 +520,7 @@@@ d14 1 a14 1 @@@@ -620,7 +620,7 @@@@ d23 1 a23 1 @@@@ -653,12 +653,13 @@@@ d38 1 a38 1 @@@@ -667,6 +668,7 @@@@ d46 9 a54 1 @@@@ -693,7 +695,9 @@@@ d64 1 a64 1 @@@@ -794,6 +798,7 @@@@ d72 1 a72 1 @@@@ -1198,6 +1203,8 @@@@ d81 1 a81 1 @@@@ -1249,6 +1256,7 @@@@ d89 1 a89 1 @@@@ -1301,6 +1309,7 @@@@ d97 1 a97 1 @@@@ -1395,31 +1404,8 @@@@ d131 1 a131 1 @@@@ -1429,8 +1415,8 @@@@ @ 1.18 log @Let ocaml's configure recognize 64-bit Darwin 10. @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.17 2009/09/07 21:48:13 tonio Exp $ d3 3 a5 3 --- configure.orig 2009-05-20 08:33:09.000000000 -0700 +++ configure @@@@ -516,7 +516,7 @@@@ if test $withsharedlibs = "yes"; then a10 1 cmxs="cmxs" d13 11 a23 1 @@@@ -615,12 +615,13 @@@@ case "$host" in d38 1 a38 1 @@@@ -629,6 +630,7 @@@@ case "$host" in d46 1 a46 1 @@@@ -655,7 +657,9 @@@@ case "$host" in d56 1 a56 1 @@@@ -756,6 +760,7 @@@@ case "$arch,$model,$system" in d64 1 a64 1 @@@@ -1144,6 +1149,8 @@@@ if test "$pthread_wanted" = "yes"; then d73 1 a73 1 @@@@ -1195,6 +1202,7 @@@@ fi d81 1 a81 1 @@@@ -1247,6 +1255,7 @@@@ do d89 1 a89 1 @@@@ -1341,31 +1350,8 @@@@ dbm_include="not found" d123 1 a123 1 @@@@ -1375,8 +1361,8 @@@@ else @ 1.17 log @Update lang/ocaml to 3.11.1 [PR pkg/41695] (Changes that can break existing programs are marked with a "*" ) Language features: - Addition of lazy patterns: "lazy " matches suspensions whose values, after forcing, match the pattern . - Introduction of private abbreviation types "type t = private ", for abstracting the actual manifest type in type abbreviations. - Subtyping is now allowed between a private abbreviation and its definition, and between a polymorphic method and its monomorphic instance. Compilers: - The file name for a compilation unit should correspond to a valid identifier (Otherwise dynamic linking and other things can fail, and a warning is emitted.) * Revised -output-obj: the output name must now be provided; its extension must be one of .o/.obj, .so/.dll, or .c for the bytecode compiler. The compilers can now produce a shared library (with all the needed -ccopts/-ccobjs options) directly. - -dtypes renamed to -annot, records (in .annot files) which function calls are tail calls. - All compiler error messages now include a file name and location, for better interaction with Emacs' compilation mode. - Optimized compilation of "lazy e" when the argument "e" is already evaluated. - Optimized compilation of equality tests with a variant constant constructor. - The -dllib options recorded in libraries are no longer ignored when -use_runtime or -use_prims is used (unless -no_auto_link is explicitly used). - Check that at most one of -pack, -a, -shared, -c, -output-obj is given on the command line. - Optimized compilation of private types as regular manifest types (e.g. abbreviation to float, float array or record types with only float fields). Native-code compiler: - New port: Mac OS X / Intel in 64-bit mode (configure with -cc "gcc -m64"). - A new option "-shared" to produce a plugin that can be dynamically loaded with the native version of Dynlink. - A new option "-nodynlink" to enable optimizations valid only for code that is never dynlinked (no-op except for AMD64). - More aggressive unboxing of floats and boxed integers. - Can select which assembler and asm options to use at configuration time. Run-time system: - New implementation of the page table describing the heap (two-level array in 32 bits, sparse hashtable in 64 bits), fixes issues with address space randomization on 64-bit OS (PR#4448). - New "generational" API for registering global memory roots with the GC, enables faster scanning of global roots. (The functions are caml_*_generational_global_root in .) - New function "caml_raise_with_args" to raise an exception with several arguments from C. - Changes in implementation of dynamic linking of C code: under Win32, use Alain Frisch's flexdll implementation of the dlopen API; under MacOSX, use dlopen API instead of MacOSX bundle API. - Programs may now choose a first-fit allocation policy instead of the default next-fit. First-fit reduces fragmentation but is slightly slower in some cases. Standard library: - Parsing library: new function "set_trace" to programmatically turn on or off the printing of a trace during parsing. - Printexc library: new functions "print_backtrace" and "get_backtrace" to obtain a stack backtrace of the most recently raised exception. New function "record_backtrace" to turn the exception backtrace mechanism on or off from within a program. - Scanf library: fine-tuning of meta format implementation; fscanf behaviour revisited: only one input buffer is allocated for any given input channel; the %n conversion does not count a lookahead character as read. Other libraries: - Dynlink: on some platforms, the Dynlink library is now available in native code. The boolean Dynlink.is_native allows the program to know whether it has been compiled in bytecode or in native code. - Bigarrays: added "unsafe_get" and "unsafe_set" (non-bound-checking versions of "get" and "set"). - Bigarrays: removed limitation "array dimension < 2^31". - Labltk: added support for TK 8.5. - Num: added conversions between big_int and int32, nativeint, int64. More efficient implementation of Num.quo_num and Num.mod_num. - Threads: improved efficiency of mutex and condition variable operations; improved interaction with Unix.fork (PR#4577). - Unix: added getsockopt_error returning type Unix.error. Added support for TCP_NODELAY and IPV6_ONLY socket options. - Win32 Unix: "select" now supports all kinds of file descriptors. Improved emulation of "lockf" (PR#4609). Tools: - ocamldebug now supported under Windows (MSVC and Mingw ports), but without the replay feature. (Contributed by Dmitry Bely and Sylvain Le Gall at OCamlCore with support from Lexifi.) - ocamldoc: new option -no-module-constraint-filter to include functions hidden by signature constraint in documentation. - ocamlmklib and ocamldep.opt now available under Windows ports. - ocamlmklib no longer supports the -implib option. - ocamlnat: an experimental native toplevel (not built by default). Camlp4: * programs linked with camlp4lib.cma now also need dynlink.cma. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- configure.orig 2009-05-19 15:23:47.000000000 +0200 +++ configure 2009-05-21 10:54:30.000000000 +0200 @@@@ -516,7 +516,7 @@@@ d14 1 a14 1 @@@@ -615,12 +615,13 @@@@ d29 1 a29 1 @@@@ -629,6 +630,7 @@@@ d37 1 a37 1 @@@@ -655,6 +657,7 @@@@ d43 1 d46 2 a47 1 @@@@ -756,6 +759,7 @@@@ d55 1 a55 1 @@@@ -1144,6 +1148,8 @@@@ d64 1 a64 1 @@@@ -1195,6 +1201,7 @@@@ d72 1 a72 1 @@@@ -1241,6 +1248,7 @@@@ d80 1 a80 1 @@@@ -1335,31 +1343,8 @@@@ d114 1 a114 1 @@@@ -1369,8 +1354,8 @@@@ @ 1.16 log @Added x86_64-*-solaris to the list of supported platforms. This fixes PR 37890. @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.15 2008/01/23 20:42:25 adam Exp $ d3 9 a11 8 --- configure.orig 2008-01-04 14:26:38.000000000 +0100 +++ configure 2008-01-29 02:03:30.000000000 +0100 @@@@ -488,7 +488,7 @@@@ mksharedlibrpath='' if test $withsharedlibs = "yes"; then case "$host" in - *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-netbsd*|*-*-gnu*) + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-netbsd*|*-*-gnu*|*-*-dragonfly*) d13 2 a14 3 mksharedlib="$bytecc -shared -o" bytecclinkopts="$bytecclinkopts -Wl,-E" @@@@ -572,16 +572,18 @@@@ case "$host" in d27 4 a30 1 i[3456]86-*-solaris*) arch=i386; system=solaris;; d34 4 a37 4 i[3456]86-*-darwin*) arch=i386; system=macosx;; i[3456]86-*-gnu*) arch=i386; system=gnu;; mips-*-irix6*) arch=mips; system=irix;; @@@@ -604,6 +606,7 @@@@ case "$host" in d42 1 d45 1 a45 2 # Some platforms exist both in 32-bit and 64-bit variants, not distinguished @@@@ -691,6 +694,7 @@@@ case "$arch,$model,$system" in d53 1 a53 1 @@@@ -1081,6 +1085,8 @@@@ if test "$pthread_wanted" = "yes"; then d62 1 a62 1 @@@@ -1132,6 +1138,7 @@@@ fi d70 1 a70 1 @@@@ -1178,6 +1185,7 @@@@ do d78 1 a78 1 @@@@ -1269,31 +1277,8 @@@@ dbm_include="not found" d112 1 a112 1 @@@@ -1303,8 +1288,8 @@@@ else @ 1.15 log @Changes 3.10.1: * Bug fixes * New features: - made configure script work on PlayStation 3 - ARM port: brought up-to-date for Debian 4.0 (Etch) - many other small changes and bugfixes in camlp4, ocamlbuild, labltk, emacs files @ text @d1 1 a1 1 $NetBSD$ d4 1 a4 1 +++ configure d34 9 a42 1 @@@@ -691,6 +693,7 @@@@ case "$arch,$model,$system" in d50 1 a50 1 @@@@ -1081,6 +1084,8 @@@@ if test "$pthread_wanted" = "yes"; then d59 1 a59 1 @@@@ -1132,6 +1137,7 @@@@ fi d67 1 a67 1 @@@@ -1178,6 +1184,7 @@@@ do d75 1 a75 1 @@@@ -1269,31 +1276,8 @@@@ dbm_include="not found" d109 1 a109 1 @@@@ -1303,8 +1287,8 @@@@ else @ 1.14 log @Changes 3.10.0: - New language features - New tools - Faster type-checking of functor applications. - Referencing an interface compiled with -rectypes from a module not compiled with -rectypes is now an error. - Revised the "fragile matching" warning. - Print a stack backtrace on an uncaught exception. - Stack overflow detection on MS Windows 32 bits. - Stack overflow detection on MacOS X PPC and Intel. - Intel/AMD 64 bits: generate position-independent code by default. - Fixed bug involving -for-pack and missing .cmx files. - Fixed bug causing duplication of literals. - C/Caml interface functions take "char const *" arguments instead of "char *" when appropriate. - Faster string comparisons (fast case if strings are ==). - Other @ text @d3 1 a3 1 --- configure.orig 2007-05-03 14:49:56.000000000 +0200 d34 1 a34 1 @@@@ -680,6 +682,7 @@@@ case "$arch,$model,$system" in d42 1 a42 1 @@@@ -1070,6 +1073,8 @@@@ if test "$pthread_wanted" = "yes"; then d51 1 a51 1 @@@@ -1121,6 +1126,7 @@@@ fi d59 1 a59 1 @@@@ -1167,6 +1173,7 @@@@ do d67 1 a67 1 @@@@ -1256,31 +1263,8 @@@@ dbm_include="not found" d101 1 a101 1 @@@@ -1290,8 +1274,8 @@@@ else @ 1.13 log @In the configure script match sparc-*-solaris2 instead of sparc-*-solaris2. since the former is what pkgsrc sets MACHINE_GNU_PLATFORM to. This fixes builds on the aformentioned systems. @ text @d3 1 a3 1 --- configure.orig 2006-03-30 05:00:19.000000000 -0500 d5 1 a5 1 @@@@ -483,7 +483,7 @@@@ mksharedlibrpath='' d9 2 a10 2 - *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-gnu*) + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-gnu*|*-*-netbsd*|*-*-dragonfly*) d14 1 a14 1 @@@@ -567,16 +567,18 @@@@ case "$host" in d34 1 a34 9 @@@@ -596,6 +598,7 @@@@ case "$host" in x86_64-*-linux*) arch=amd64; system=linux;; x86_64-*-gnu*) arch=amd64; system=gnu;; x86_64-*-freebsd*) arch=amd64; system=freebsd;; + x86_64-*-netbsd*) arch=amd64; system=netbsd;; x86_64-*-openbsd*) arch=amd64; system=openbsd;; esac @@@@ -672,6 +675,7 @@@@ case "$arch,$model,$system" in d42 10 a51 9 @@@@ -1060,6 +1064,7 @@@@ if test "$pthread_wanted" = "yes"; then case "$host" in *-*-solaris*) pthread_link="-lpthread -lposix4";; *-*-freebsd*) pthread_link="-pthread";; + *-*-dragonfly*) pthread_link="-pthread";; *-*-openbsd*) pthread_link="-pthread";; *) pthread_link="-lpthread";; esac @@@@ -1107,6 +1112,7 @@@@ fi d59 1 a59 1 @@@@ -1153,6 +1159,7 @@@@ do d67 1 a67 1 @@@@ -1242,31 +1249,8 @@@@ dbm_include="not found" d101 3 a103 1 @@@@ -1278,8 +1262,8 @@@@ else a104 2 echo "DBM_INCLUDES=$dbm_include" >> Makefile echo "DBM_LINK=$dbm_link" >> Makefile d107 1 a107 1 + if test ${BDB_BUILTIN} != "yes"; then @ 1.12 log @Changes 3.09.3: Bug fixes: - ocamldoc: -using modtype constraint to filter module elements displayed in doc - ocamldoc: error in merging of top dependencies of modules - ocamldoc: -dot-colors has no effect - ocamdloc: missing crossref in text from intro files - compilers: segfault with recursive modules - compilers: infinite loop when compiling objects - compilers: bad error message when signature mismatch - compilers: infinite loop with -rectypes - compilers: contravariance bug in private rows - compilers: unsafe cast with polymorphic exception - native compiler: bad assembly code generated for AMD64 - native compiler: stack alignment problems on MacOSX/i386 - stdlib: crash in marshalling - stdlib: crash when closing a channel twice - stdlib: memory leak in Sys.readdir - C interface: better definition of CAMLreturn - otherlibs/unix: crash in gethostbyname - tools: subtle problem with unset in makefile - camlp4: install pa_o_fast.o - camlp4: install more modules New features: - ocamldoc: name resolution in cross-referencing {!name}: if name is not found, then it is searched in the parent module/class, and in the parent of the parent, and so on until it is found. - ocamldoc: new option -short-functors to use a short form to display functors in html generator - ocamlprof: added "-version" option @ text @d3 1 a3 1 --- configure.orig 2006-03-30 12:00:19.000000000 +0200 d14 8 a21 1 @@@@ -573,10 +573,12 @@@@ case "$host" in @ 1.11 log @Add back a patch fragment which got lost during the update. Bump revision, since the thread support was not built on DragonFly. @ text @d3 1 a3 1 --- configure.orig 2006-03-30 10:00:19.000000000 +0000 d27 9 a35 1 @@@@ -672,6 +674,7 @@@@ case "$arch,$model,$system" in d43 1 a43 1 @@@@ -1060,6 +1063,7 @@@@ if test "$pthread_wanted" = "yes"; then d51 1 a51 1 @@@@ -1107,6 +1111,7 @@@@ fi d59 1 a59 1 @@@@ -1153,6 +1158,7 @@@@ do d67 1 a67 1 @@@@ -1242,31 +1248,8 @@@@ dbm_include="not found" d101 1 a101 1 @@@@ -1278,8 +1261,8 @@@@ else @ 1.10 log @Update lang/ocaml to 3.09.2. Changes from 3.09.1: ---- Bug fixes: - Makefile: problem with "make world.opt" - compilers: problem compiling several modules with one command line - compilers,ocamldoc: error message that Emacs cannot parse - compilers: crash when printing type error - compilers: -dtypes wrong for monomorphic type variables - compilers: wrong warning on optional arguments - compilers: crash when wrong use of type constructor in let rec - compilers: better wording of "statement never returns" warning - runtime: inefficiency of signal handling - runtime: crashes with I/O in multithread programs - camlp4: empty file name in error messages - camlp4: stack overflow - otherlibs/labltk: ocamlbrowser ignores its command line options - otherlibs/unix: Unix.times wrong under Mac OS X - otherlibs/unix: wrong doc for execvp and execvpe - otherlibs/win32unix: random crash in Unix.stat - stdlib: update_mod not found under Windows - stdlib: Filename.dirname/basename wrong on Win32 - stdlib: incomplete documentation of Pervasives.abs - stdlib: Printf bugs - tools/checkstack.c missing include - yacc: crash when given argument "-" New features: - ported to MacOS X on Intel - configure: added support for GNU Hurd @ text @d1 5 a5 3 --- configure.orig 2006-04-21 09:38:39.000000000 +0900 +++ configure 2006-04-21 09:49:07.000000000 +0900 @@@@ -483,7 +483,7 @@@@ d14 1 a14 1 @@@@ -573,10 +573,12 @@@@ d27 1 a27 1 @@@@ -672,6 +674,7 @@@@ d35 9 a43 1 @@@@ -1107,6 +1110,7 @@@@ d51 1 a51 1 @@@@ -1153,6 +1157,7 @@@@ d59 1 a59 1 @@@@ -1242,31 +1247,8 @@@@ d93 1 a93 1 @@@@ -1278,8 +1260,8 @@@@ @ 1.9 log @Added support for dynamic loading on NetBSD. Bumped PKGREVISION. Fixed almost all pkglint -Wall warnings. @ text @d1 3 a3 5 $NetBSD: patch-at,v 1.8 2006/01/16 09:41:48 adam Exp $ --- configure.orig 2006-01-04 10:26:42.000000000 +0100 +++ configure @@@@ -483,7 +483,7 @@@@ mksharedlibrpath='' d7 2 a8 2 - *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*) + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-netbsd*|*-*-dragonfly*) d12 2 a13 2 @@@@ -571,10 +571,12 @@@@ case "$host" in sparc*-*-linux*) arch=sparc; system=linux;; d22 2 d25 1 a25 4 hppa1.1-*-hpux*) arch=hppa; system=hpux;; hppa2.0*-*-hpux*) arch=hppa; system=hpux;; @@@@ -659,6 +661,7 @@@@ case "$arch,$model,$system" in profiling='prof' d28 1 d33 1 a33 9 @@@@ -1047,6 +1050,7 @@@@ if test "$pthread_wanted" = "yes"; then case "$host" in *-*-solaris*) pthread_link="-lpthread -lposix4";; *-*-freebsd*) pthread_link="-pthread";; + *-*-dragonfly*) pthread_link="-pthread";; *-*-openbsd*) pthread_link="-pthread";; *) pthread_link="-lpthread";; esac @@@@ -1094,6 +1098,7 @@@@ fi d41 1 a41 1 @@@@ -1140,6 +1145,7 @@@@ do d49 1 a49 1 @@@@ -1229,31 +1235,8 @@@@ dbm_include="not found" d65 1 a65 1 - dbm_link="-lgdbm_compat -lgdbm" d75 1 a75 1 - break d83 1 a83 1 @@@@ -1265,8 +1248,8 @@@@ else @ 1.8 log @Changes 3.09.1: * Bug fixes * New features: - otherlibs/labltk: browser uses menu bars instead of menu buttons Changes 3.09.0: Language features: - Introduction of private row types, for abstracting the row in object and variant types. Type checking: - Polymorphic variants with at most one constructor [< `A of t] are no longer systematically promoted to the exact type [`A of t]. This was more confusing than useful, and created problems with private row types. Native-code compiler (ocamlopt): * Revised implementation of the -pack option (packing of several compilation units into one). The .cmx files that are to be packed with "ocamlopt -pack -o P.cmx" must be compiled with "ocamlopt -for-pack P". In exchange for this additional constraint, ocamlopt -pack is now available on all platforms (no need for binutils). * Fixed wrong evaluation order for arguments to certain inlined functions. * Other (see 'Changes') @ text @d1 1 a1 1 $NetBSD$ d10 1 a10 1 + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-dragonfly*) @ 1.7 log @- add DragonFly cases for configure - assume !WIN32 ~= ANSI C for the purpose of errno.h - ocamldoc is not an ELF binary, use BSD_INSTALL_SCRIPT like for ocamlc @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.6 2005/06/07 00:59:49 minskim Exp $ d3 1 a3 1 --- configure.orig 2005-01-24 09:22:46.000000000 -0600 d5 1 a5 1 @@@@ -481,7 +481,7 @@@@ mksharedlibrpath='' d14 1 a14 1 @@@@ -569,10 +569,12 @@@@ case "$host" in d27 1 a27 1 @@@@ -657,6 +659,7 @@@@ case "$arch,$model,$system" in d35 1 a35 1 @@@@ -1077,6 +1080,7 @@@@ if test "$pthread_wanted" = "yes"; then d43 1 a43 1 @@@@ -1123,6 +1127,7 @@@@ fi d51 1 a51 1 @@@@ -1169,6 +1174,7 @@@@ do d59 1 a59 1 @@@@ -1258,31 +1264,8 @@@@ dbm_include="not found" d93 1 a93 1 @@@@ -1294,8 +1277,8 @@@@ else @ 1.6 log @Make ocaml build with pkgsrc bdb. @ text @d1 1 a1 1 $NetBSD$ d5 15 a19 1 @@@@ -573,6 +573,7 @@@@ case "$host" in d27 1 a27 1 @@@@ -657,6 +658,7 @@@@ case "$arch,$model,$system" in d35 9 a43 1 @@@@ -1123,6 +1125,7 @@@@ fi d51 1 a51 1 @@@@ -1169,6 +1172,7 @@@@ do d59 1 a59 1 @@@@ -1257,31 +1261,8 @@@@ dbm_include="not found" d93 1 a93 1 @@@@ -1293,8 +1274,8 @@@@ else @ 1.5 log @Changes 3.08.3: New features: - support for ocamlopt -pack under Mac OS X (PR#2634, PR#3320) - ignore unknown warning options for forward and backward compatibility - runtime: export caml_compare_unordered (PR#3479) - camlp4: install argl.* files (PR#3439) - ocamldoc: add -man-section option - labltk: add the "solid" relief option (PR#3343) - compiler: ocamlc -i now prints variance annotations Bug fixes: - typing: fix unsoundness in type declaration variance inference. Type parameters which are constrained must now have an explicit variant annotation, otherwise they are invariant. This is not backward compatible, so this might break code which either uses subtyping or uses the relaxed value restriction (i.e. was not typable before 3.07) - typing: erroneous partial match warning for polymorphic variants (PR#3424) - runtime: handle the case of an empty command line (PR#3409, PR#3444) - stdlib: make Sys.executable_name an absolute path in native code (PR#3303) - runtime: fix memory leak in finalise.c - runtime: auto-trigger compaction even if gc is called manually (PR#3392) - stdlib: fix segfault in Obj.dup on zero-sized values (PR#3406) - camlp4: correct parsing of the $ identifier (PR#3310, PR#3469) - windows (MS tools): use link /lib instead of lib (PR#3333) - windows (MS tools): change default install destination - autoconf: better checking of SSE2 instructions (PR#3329, PR#3330) - graphics: make close_graph close the X display as well as the window (PR#3312) - num: fix big_int_of_string (empty string) (PR#3483) - num: fix big bug on 64-bit architecture (PR#3299) - str: better documentation of string_match and string_partial_match (PR#3395) - unix: fix file descriptor leak in Unix.accept (PR#3423) - unix: miscellaneous clean-ups - unix: fix documentation of Unix.tm (PR#3341) - graphics: fix problem when allocating lots of images under Windows (PR#3433) - compiler: fix error message with -pack when .cmi is missing (PR#3028) - cygwin: fix problem with compilation of camlheader (PR#3485) - stdlib: Filename.basename doesn't return an empty string any more (PR#3451) - stdlib: better documentation of Open_excl flag (PR#3450) - ocamlcp: accept -thread option (PR#3511) - ocamldep: handle spaces in file names (PR#3370) - compiler: remove spurious warning in pattern-matching on variants (PR#3424) - windows: better handling of InterpreterPath registry entry (PR#3334, PR#3432) @ text @d3 1 a3 1 --- configure.orig 2005-01-24 15:22:46.000000000 +0000 d37 45 @ 1.4 log @- Update from 3.06 to 3.08.2 - Lots of changes/bugfixes - see Changes for all the details @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.3 2005/01/24 21:18:16 tv Exp $ d3 3 a5 3 --- configure.orig Tue Jan 25 20:13:20 2005 +++ configure Tue Jan 25 20:16:11 2005 @@@@ -573,6 +573,7 @@@@ d13 1 a13 1 @@@@ -657,6 +658,7 @@@@ d21 1 a21 1 @@@@ -1113,6 +1115,7 @@@@ d29 1 a29 1 @@@@ -1159,6 +1162,7 @@@@ @ 1.3 log @Recognize Interix as a valid platform. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- configure.orig 2002-08-07 08:45:00.000000000 -0400 +++ configure @@@@ -522,12 +522,14 @@@@ case "$host" in d12 5 a16 20 hppa1.1-*-nextstep*) arch=hppa; system=nextstep;; rs6000-*-aix*) arch=power; model=rs6000; system=aix;; powerpc-*-aix*) arch=power; model=ppc; system=aix;; powerpc-*-linux*) arch=power; model=ppc; system=elf;; + powerpc-*-netbsd*) arch=power; model=ppc; system=bsd;; powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;; powerpc-*-darwin*) arch=power; model=ppc; system=rhapsody;; arm*-*-linux*) arch=arm; system=linux;; @@@@ -591,6 +593,7 @@@@ case "$arch,$model,$system" in power,rs6000,aix) asflags='-u -m pwr -w'; asppflags="$asflags";; power,ppc,aix) asflags='-u -m ppc -w'; asppflags="$asflags";; power,*,elf) aspp='gcc'; asppflags='-c';; + power,*,bsd) aspp='gcc'; asppflags='-c -DSYS_$(SYSTEM)';; power,*,rhapsody) ;; arm,*,linux) aspp='gcc'; asppflags='-c -DSYS_$(SYSTEM)';; ia64,*,linux) asflags=-xexplicit @@@@ -601,6 +604,7 @@@@ case "$arch,$model,$system" in alpha,*,digital) profiling='prof';; i386,*,linux_elf) profiling='prof';; i386,*,bsd_elf) profiling='prof';; d21 1 a21 1 @@@@ -1044,6 +1048,7 @@@@ fi d29 1 a29 1 @@@@ -1152,6 +1157,7 @@@@ do d35 2 a36 2 if test "$x11_include" = "not found" || test "$x11_link" = "not found" @ 1.2 log @Do not depend on Tk nor X11. Two new packages will be added to provide the missing bits, namely labltk and ocaml-graphics, respectively. To simplify this, add a Makefile.common. Bump PKGREVISION to 8. Per discussion with wiz@@ a while ago. @ text @d1 1 a1 1 $NetBSD: patch-at,v 1.1 2004/04/22 09:18:39 tron Exp $ d3 1 a3 1 --- configure.orig 2002-08-07 14:45:00.000000000 +0200 d5 8 a12 1 @@@@ -528,6 +528,7 @@@@ case "$host" in d20 1 a20 1 @@@@ -591,6 +592,7 @@@@ case "$arch,$model,$system" in d28 1 a28 1 @@@@ -601,6 +603,7 @@@@ case "$arch,$model,$system" in d36 1 a36 1 @@@@ -1044,6 +1047,7 @@@@ fi d44 1 a44 1 @@@@ -1152,6 +1156,7 @@@@ do @ 1.1 log @Fix various issues with this package: - split patches files - always enable threading which has various advantages - it fixes the build of the Tk library - it greatly simplifies the package list handling - it provides threading support under NetBSD 1.6/1.6.x - correct default dependence in "buildlink2.mk" to "build" Bump package revision because of all these changes. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- configure.orig Wed Aug 7 14:45:00 2002 +++ configure Thu Apr 22 10:34:37 2004 @@@@ -528,6 +528,7 @@@@ d13 1 a13 1 @@@@ -591,6 +592,7 @@@@ d21 1 a21 1 @@@@ -601,6 +603,7 @@@@ d29 16 @