Package: ipe
Version: 7.1.0-1
Severity: important
Tags: patch
Justification: fails to build from source
User: [email protected]
Usertags: s390x

ipe fails to build on s390x and sparc64, as on these architectures 
-fpic and -fPIC behaves differently. -fpic has a limit on the size 
of the GOT, while -fPIC doesn't. It's therefore better to use the
latter. The patch below fixes the issue, would it be possible to 
apply it in the next upload? Thanks in advance.


diff -Nru ipe-7.1.0/debian/patches/fPIC.patch 
ipe-7.1.0/debian/patches/fPIC.patch
--- ipe-7.1.0/debian/patches/fPIC.patch 1970-01-01 01:00:00.000000000 +0100
+++ ipe-7.1.0/debian/patches/fPIC.patch 2011-09-09 23:54:27.000000000 +0200
@@ -0,0 +1,13 @@
+Use -fPIC instead of -fpic.
+
+--- ipe-7.1.0.orig/src/config.mak
++++ ipe-7.1.0/src/config.mak
+@@ -101,7 +101,7 @@ CXX = g++
+ # position independent code  
+ # (it doesn't hurt much on 32bit Linux, although you could comment it
+ # out for slightly faster code)
+-DLL_CFLAGS = -fpic
++DLL_CFLAGS = -fPIC
+ #
+ # --------------------------------------------------------------------
+ #
diff -Nru ipe-7.1.0/debian/patches/series ipe-7.1.0/debian/patches/series
--- ipe-7.1.0/debian/patches/series     2009-12-27 23:52:03.000000000 +0100
+++ ipe-7.1.0/debian/patches/series     2011-09-10 00:30:24.000000000 +0200
@@ -1 +1,2 @@
 build-nostrip.patch
+fPIC.patch

-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: s390x

Kernel: Linux 3.0.0-1-s390x (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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