[Pkg-ocaml-maint-commits] r1497 - trunk/packages/camlgz/trunk/debian/patches

Thomas Petazzoni tpetazzo-guest at costa.debian.org
Thu Jul 28 22:03:10 UTC 2005


Author: tpetazzo-guest
Date: 2005-07-28 22:03:09 +0000 (Thu, 28 Jul 2005)
New Revision: 1497

Added:
   trunk/packages/camlgz/trunk/debian/patches/00list
   trunk/packages/camlgz/trunk/debian/patches/fix-lvalue-compil.dpatch
Log:
Add patch to fix compilation

Added: trunk/packages/camlgz/trunk/debian/patches/00list
===================================================================
--- trunk/packages/camlgz/trunk/debian/patches/00list	2005-07-28 21:58:48 UTC (rev 1496)
+++ trunk/packages/camlgz/trunk/debian/patches/00list	2005-07-28 22:03:09 UTC (rev 1497)
@@ -0,0 +1 @@
+fix-lvalue-compil

Added: trunk/packages/camlgz/trunk/debian/patches/fix-lvalue-compil.dpatch
===================================================================
--- trunk/packages/camlgz/trunk/debian/patches/fix-lvalue-compil.dpatch	2005-07-28 21:58:48 UTC (rev 1496)
+++ trunk/packages/camlgz/trunk/debian/patches/fix-lvalue-compil.dpatch	2005-07-28 22:03:09 UTC (rev 1497)
@@ -0,0 +1,56 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix-lvalue-compil.dpatch by  <thomas at crazy.kos.nx>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad camlgz-0.5.6/c_bz.c /tmp/dpep.pzdIuk/camlgz-0.5.6/c_bz.c
+--- camlgz-0.5.6/c_bz.c	2002-05-29 10:47:57.000000000 +0200
++++ /tmp/dpep.pzdIuk/camlgz-0.5.6/c_bz.c	2005-07-29 00:02:25.000000000 +0200
+@@ -68,6 +68,7 @@
+ 
+ #define Cfile_val(v)  ((FILE*)(Field((v), 0)))
+ #define Bzfile_val(v) ((BZFILE*)(Field((v), 1)))
++#define lBzfile_val(v) ((Field((v), 1)))
+ #define Bz_eof(v)     (Bool_val(Field((v), 2)))
+ 
+ static void set_eof_flag(value chan)
+@@ -142,7 +143,7 @@
+   BZ_P(bzReadClose)(&bzerror, Bzfile_val(chan)) ;
+   fclose(Cfile_val(chan)) ;
+   Cfile_val(chan) = NULL;
+-  Bzfile_val(chan) = NULL;
++  lBzfile_val(chan) = NULL;
+   /*  mlbz_error(bzerror, "Bz.close_in", chan, 1); */
+   return Val_unit ;
+ }
+@@ -198,7 +199,7 @@
+   BZ_P(bzWriteClose)(&bzerror, Bzfile_val(chan), 0, NULL, NULL) ;
+   fclose(Cfile_val(chan)) ;
+   Cfile_val(chan) = NULL;
+-  Bzfile_val(chan) = NULL;
++  lBzfile_val(chan) = NULL;
+   /*  mlbz_error(bzerror, "Bz.close_out", chan, 0); */
+   return Val_unit ;
+ }
+diff -urNad camlgz-0.5.6/c_gz.c /tmp/dpep.pzdIuk/camlgz-0.5.6/c_gz.c
+--- camlgz-0.5.6/c_gz.c	2002-05-29 10:41:35.000000000 +0200
++++ /tmp/dpep.pzdIuk/camlgz-0.5.6/c_gz.c	2005-07-29 00:01:51.000000000 +0200
+@@ -65,6 +65,7 @@
+ 
+ /* extract the gzFile from the Caml value */
+ #define Gzfile_val(v)  ((gzFile)(Field((v), 0)))
++#define lGzfile_val(v)  ((Field((v), 0)))
+ 
+ /* get library version */
+ value mlgz_zlibversion(value unit)
+@@ -200,7 +201,7 @@
+   res = gzclose(str);
+   if(res<0)
+     mlgz_error(str);
+-  Gzfile_val(chan) = NULL ;
++  lGzfile_val(chan) = NULL ;
+   return Val_unit;
+ }
+ 


Property changes on: trunk/packages/camlgz/trunk/debian/patches/fix-lvalue-compil.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-ocaml-maint-commits mailing list