summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--development/facile/facile-1.1-ocaml4.patch26
-rw-r--r--development/facile/facile.SlackBuild7
2 files changed, 31 insertions, 2 deletions
diff --git a/development/facile/facile-1.1-ocaml4.patch b/development/facile/facile-1.1-ocaml4.patch
new file mode 100644
index 0000000000..185d39fe98
--- /dev/null
+++ b/development/facile/facile-1.1-ocaml4.patch
@@ -0,0 +1,26 @@
+diff -ur facile-1.1.old/src/facile.mli facile-1.1/src/facile.mli
+--- facile-1.1.old/src/facile.mli 2004-09-08 10:51:02.000000000 +0100
++++ facile-1.1/src/facile.mli 2012-06-10 21:06:41.553916954 +0100
+@@ -127,7 +127,7 @@
+ module Hashtbl :
+ sig
+ type ('a, 'b) t
+- val create : int -> ('a, 'b) t
++ val create : ?random:bool -> int -> ('a, 'b) t
+ val get : ('a, 'b) t -> ('a, 'b) Hashtbl.t
+ val add : ('a, 'b) t -> 'a -> 'b -> unit
+ val find : ('a, 'b) t -> 'a -> 'b
+Binary files facile-1.1.old/src/fcl_data.cmi and facile-1.1/src/fcl_data.cmi differ
+diff -ur facile-1.1.old/src/fcl_data.mli facile-1.1/src/fcl_data.mli
+--- facile-1.1.old/src/fcl_data.mli 2004-09-08 10:51:02.000000000 +0100
++++ facile-1.1/src/fcl_data.mli 2012-06-10 21:06:25.841590828 +0100
+@@ -23,7 +23,7 @@
+
+ module Hashtbl : sig
+ type ('a, 'b) t
+- val create : int -> ('a, 'b) t
++ val create : ?random:bool -> int -> ('a, 'b) t
+ val get : ('a, 'b) t -> ('a, 'b) Hashtbl.t
+ val add : ('a, 'b) t -> 'a -> 'b -> unit
+ val find : ('a, 'b) t -> 'a -> 'b
+
diff --git a/development/facile/facile.SlackBuild b/development/facile/facile.SlackBuild
index b9e0bb54f0..c6af2c1430 100644
--- a/development/facile/facile.SlackBuild
+++ b/development/facile/facile.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=facile
-VERSION=1.1
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-1.1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,6 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# patch to build against ocaml >= 4
+patch -p1 < $CWD/facile-1.1-ocaml4.patch
+
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/ocaml/facile
./configure \