[Debian-med-packaging] Bug#723561: cluster3: Requires -fPIC on ARM

Stefano Rivera stefanor at debian.org
Tue Sep 17 12:54:06 UTC 2013


Package: cluster3
Version: 1.52-1
Severity: minor
Tags: upstream patch

I noticed cluster3 doesn't build on armhf in Ubuntu. The solution is
trivial, so here's a patch.

SR

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
--- a/src/Makefile.PL
+++ b/src/Makefile.PL
@@ -2,10 +2,10 @@
 use Config;
 use POSIX;
 
-# Check if this is a 64 bit machine
+# Check if this is an arch where we need position independent code
 my $CCFLAGS = '';
 my $machine = (POSIX::uname())[4];
-if ($machine =~ /64/) {
+if ($machine =~ /64|arm/) {
         $CCFLAGS = '-fPIC';
 }
 


More information about the Debian-med-packaging mailing list