tag 358960 patch
thanks
Jurij Smakov <[EMAIL PROTECTED]> writes:
> At the moment regina has only built successfully on amd64, alpha and
> i386. As it fails on a few release architectures, bumping the severity
> back to RC.
Only amd64, alpha, and i386 have the necessary definitions for the
recently enabled General Call Interface (gci/gci_convert.*). These
are mostly about type sizes, and ideally we might be able to generate
a header automatically, though variations in the calling convention
complicate things (for example, floating-point arguments need to be
handled differently on amd64).
As an intermediate solution, disabling GCI on unsupported platforms
ought to do the trick (patch below).
Cheers,
Matej
--- regina-3.3.orig/debian/rules
+++ regina-3.3/debian/rules
@@ -2,6 +2,9 @@
SHELL=/bin/bash
+export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+export DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
DESTDIR=$(shell pwd)/debian/tmp
debversion=$(shell head -n1 debian/changelog | \
@@ -18,6 +21,12 @@
package=regina$(soname)
rexxpackage=regina-rexx
+confflags=--prefix=/usr
+# Enable GCI only on platforms which have a GCI_CONVERT_HEADER.
+ifneq ($(filter alpha amd64 i386,$(DEB_HOST_ARCH)), )
+ confflags+=--enable-gci
+endif
+
ifeq ($(DEB_BUILD_ARCH), ia64)
CCOPTS=-g
else
@@ -34,7 +43,7 @@
configure: stamp-configure
stamp-configure:
$(checkdir)
- ./configure --prefix=/usr #--enable-gci
+ ./configure $(confflags)
touch stamp-configure
clean: