r340 - in /packages/mtasc/trunk/debian: changelog patches/port-to-hurd.patch patches/series
pabs at users.alioth.debian.org
pabs at users.alioth.debian.org
Sun Jun 28 06:36:22 UTC 2009
Author: pabs
Date: Sun Jun 28 06:36:15 2009
New Revision: 340
URL: http://svn.debian.org/wsvn/?sc=1&rev=340
Log:
Add port-to-hurd.patch to fix FTBFS on hurd-i386
Added:
packages/mtasc/trunk/debian/patches/port-to-hurd.patch
Modified:
packages/mtasc/trunk/debian/changelog
packages/mtasc/trunk/debian/patches/series
Modified: packages/mtasc/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/packages/mtasc/trunk/debian/changelog?rev=340&op=diff
==============================================================================
--- packages/mtasc/trunk/debian/changelog (original)
+++ packages/mtasc/trunk/debian/changelog Sun Jun 28 06:36:15 2009
@@ -1,3 +1,9 @@
+mtasc (1.14-2) UNRELEASED; urgency=low
+
+ * Add port-to-hurd.patch to fix FTBFS on hurd-i386
+
+ -- Paul Wise <pabs at debian.org> Sun, 28 Jun 2009 13:47:17 +0800
+
mtasc (1.14-1) unstable; urgency=low
* New upstream release
Added: packages/mtasc/trunk/debian/patches/port-to-hurd.patch
URL: http://svn.debian.org/wsvn/packages/mtasc/trunk/debian/patches/port-to-hurd.patch?rev=340&op=file
==============================================================================
--- packages/mtasc/trunk/debian/patches/port-to-hurd.patch (added)
+++ packages/mtasc/trunk/debian/patches/port-to-hurd.patch Sun Jun 28 06:36:15 2009
@@ -1,0 +1,30 @@
+Patch: port-to-hurd.patch
+Author: Paul Wise <pabs at debian.org>
+Description: fix building on Debian GNU/Hurd by getting rid of PATH_MAX usage
+--- a/ocaml/extc/extc_stubs.c 5 Mar 2007 11:09:37 -0000 1.12
++++ b/ocaml/extc/extc_stubs.c 28 Jun 2009 05:24:22 -0000
+@@ -26,6 +26,7 @@
+ #else
+ # include <limits.h>
+ # include <unistd.h>
++# include <caml/memory.h>
+ #endif
+ #ifdef __APPLE__
+ # include <sys/param.h>
+@@ -158,9 +159,12 @@
+ failwith("get_full_path");
+ return caml_copy_string(path);
+ #else
+- char path[PATH_MAX];
+- if( realpath(String_val(f),path) == NULL )
+- failwith("get_full_path");
+- return caml_copy_string(path);
++ CAMLparam1 (f);
++ CAMLlocal1 (path_caml);
++ char* path = realpath(String_val(f),NULL);
++ if( NULL == path ) failwith("get_full_path");
++ path_caml = caml_copy_string(path);
++ free(path);
++ CAMLreturn(path_caml);
+ #endif
+ }
Modified: packages/mtasc/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/packages/mtasc/trunk/debian/patches/series?rev=340&op=diff
==============================================================================
--- packages/mtasc/trunk/debian/patches/series (original)
+++ packages/mtasc/trunk/debian/patches/series Sun Jun 28 06:36:15 2009
@@ -2,3 +2,4 @@
02_makefile_kludges.patch
04_include_dirs.patch
fix_mtasc_for_camlp4_3.11.0.patch
+port-to-hurd.patch
More information about the pkg-flash-devel
mailing list