Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=8898295295fa809245ab6f96939215891b499980

commit 8898295295fa809245ab6f96939215891b499980
Author: Elentir <elen...@frugalware.org>
Date:   Thu Feb 10 17:08:53 2011 +0100

mlgmpidl-1.1-4-i686

* add mlgmpidl-1.1-remove-random.patch to fix build

diff --git a/source/lib-extra/mlgmpidl/FrugalBuild 
b/source/lib-extra/mlgmpidl/FrugalBuild
index 0bfd87b..6b2514d 100644
--- a/source/lib-extra/mlgmpidl/FrugalBuild
+++ b/source/lib-extra/mlgmpidl/FrugalBuild
@@ -13,9 +13,11 @@ archs=('i686' 'x86_64')
_F_cd_path=$pkgname
up2date="Flasttar http://gforge.inria.fr/frs/?group_id=860";
source=("http://gforge.inria.fr/frs/download.php/$rel_id/$pkgname-$pkgver.tar.gz";
 \
-       add-destdir-to-makefile.patch)
+       add-destdir-to-makefile.patch \
+       mlgmpidl-1.1-remove-random.patch)
sha1sums=('ef26eaa215ccedbfc20c00614f702a06d3a70420' \
-          'cc4c0376f20d4456006a19c1bfd7d233b1e2676d')
+          'cc4c0376f20d4456006a19c1bfd7d233b1e2676d' \
+          '98e2c113daee364cadd675b7b97f7186a7e024b8')
unset MAKEFLAGS

build() {
diff --git a/source/lib-extra/mlgmpidl/mlgmpidl-1.1-remove-random.patch 
b/source/lib-extra/mlgmpidl/mlgmpidl-1.1-remove-random.patch
new file mode 100644
index 0000000..0e9b387
--- /dev/null
+++ b/source/lib-extra/mlgmpidl/mlgmpidl-1.1-remove-random.patch
@@ -0,0 +1,71 @@
+diff -Naur mlgmpidl//gmp_caml.h mlgmpidl.new//gmp_caml.h
+--- mlgmpidl//gmp_caml.h       2007-07-11 15:29:31.000000000 +0200
++++ mlgmpidl.new//gmp_caml.h   2011-02-10 17:00:47.302000032 +0100
+@@ -46,10 +46,18 @@
+ void camlidl_mpfr_ml2c(value val, __mpfr_struct* mpf);
+ static inline
+ value camlidl_mpfr_rnd_t_c2ml(mpfr_rnd_t* rnd)
+-{ assert(*rnd>=0 && *rnd<GMP_RND_MAX); return Val_int(*rnd); }
++{ assert(*rnd>=0
++#ifdef GMP_RND_MAX
++&& *rnd<GMP_RND_MAX
++#endif
++); return Val_int(*rnd); }
+ static inline
+ void camlidl_mpfr_rnd_t_ml2c(value val, mpfr_rnd_t* rnd)
+-{ *rnd = Int_val(val); assert(*rnd>=0 && *rnd<GMP_RND_MAX); }
++{ *rnd = Int_val(val); assert(*rnd>=0
++#ifdef GMP_RND_MAX
++&& *rnd<GMP_RND_MAX
++#endif
++); }
+ #endif
+ #endif
+
+diff -Naur mlgmpidl//gmp_random_caml.c mlgmpidl.new//gmp_random_caml.c
+--- mlgmpidl//gmp_random_caml.c        2009-04-02 16:25:47.000000000 +0200
++++ mlgmpidl.new//gmp_random_caml.c    2011-02-10 17:02:22.706000056 +0100
+@@ -235,6 +235,7 @@
+   return Val_unit;
+ }
+
++#if 0
+ value camlidl_gmp_random_mpfr_random(
+       value _v_ROP)
+ {
+@@ -246,4 +247,5 @@
+   camlidl_free(_ctx);
+   return Val_unit;
+ }
++#endif
+
+diff -Naur mlgmpidl//gmp_random.ml mlgmpidl.new//gmp_random.ml
+--- mlgmpidl//gmp_random.ml    2009-04-02 16:25:47.000000000 +0200
++++ mlgmpidl.new//gmp_random.ml        2011-02-10 17:03:25.057000034 +0100
+@@ -61,9 +61,9 @@
+ module Mpfr = struct
+ external urandomb : Mpfr.t -> state -> unit
+       = "camlidl_gmp_random_mpfr_urandomb"
+-
++(*
+ external random : Mpfr.t -> unit
+       = "camlidl_gmp_random_mpfr_random"
+-
++*)
+ end
+
+diff -Naur mlgmpidl//gmp_random.mli mlgmpidl.new//gmp_random.mli
+--- mlgmpidl//gmp_random.mli   2009-04-02 16:25:47.000000000 +0200
++++ mlgmpidl.new//gmp_random.mli       2011-02-10 17:03:54.119000033 +0100
+@@ -61,9 +61,9 @@
+ module Mpfr : sig
+ external urandomb : Mpfr.t -> state -> unit
+       = "camlidl_gmp_random_mpfr_urandomb"
+-
++(*
+ external random : Mpfr.t -> unit
+       = "camlidl_gmp_random_mpfr_random"
+-
++*)
+ end
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to