Subject: mono FTBFS with recent glibc on ARM
Package: mono
Severity: important
Tags: patch

Mono currently builds on ARM, but with newer glibc snapshots (such as the one
in Ubuntu, or the one in experimental (I think), it FTBFSes, due a header issue.
The following patch corrects the header issues

#! /bin/sh /usr/share/dpatch/dpatch-run
## armel-glibc-2.8.dpatch by Michael Casadevall  <[EMAIL PROTECTED]>
##
## DP: Moved the location files are included to prevent a FTBFS
## DP: since in 2.8, you can't include headers within a function
## DP: and expect it to work
@DPATCH@
diff -urNad mono-1.9.1+dfsg~/mono/arch/arm/tramp.c
mono-1.9.1+dfsg/mono/arch/arm/tramp.c
--- mono-1.9.1+dfsg~/mono/arch/arm/tramp.c      2007-11-08 17:07:43.000000000 
-0500
+++ mono-1.9.1+dfsg/mono/arch/arm/tramp.c       2008-11-18 21:00:52.000000000 
-0500
@@ -10,6 +10,9 @@

 #if defined(_WIN32_WCE) || defined (UNDER_CE)
 #      include <windows.h>
+#else
+#include <unistd.h>
+#include <sys/mman.h>
 #endif

 #include <errno.h>
@@ -75,8 +78,6 @@
        code_buff = malloc(code_size);
        VirtualProtect(code_buff, code_size, PAGE_EXECUTE_READWRITE, &old_prot);
 #else
-#include <unistd.h>
-#include <sys/mman.h>
        int page_size = sysconf(_SC_PAGESIZE);
        int new_code_size;



-- System Information:
Debian Release: lenny/sid
  APT prefers jaunty-updates
  APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-7-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to