Bug#560403: mesa: FTBFS on sparc64
Package: mesa
Version: 7.6.1~rc2-1
Severity: normal
Tags: patch
mesa fails to build on sparc64 due to some 64-bit conditional in
assembly code not being enabled. The patch below fixes the problem. It
also enable the ffb driver on this architecture.
diff -u mesa-7.6.1~rc2/debian/rules mesa-7.6.1~rc2/debian/rules
--- mesa-7.6.1~rc2/debian/rules
+++ mesa-7.6.1~rc2/debian/rules
@@ -76,6 +76,8 @@
DRI_DRIVERS += i915 i965 sis unichrome
else ifeq ($(DEB_HOST_ARCH), sparc)
DRI_DRIVERS += ffb
+ else ifeq ($(DEB_HOST_ARCH), sparc64)
+ DRI_DRIVERS += ffb
endif
endif
endif
--- mesa-7.6.1~rc2.orig/src/mesa/sparc/xform.S
+++ mesa-7.6.1~rc2/src/mesa/sparc/xform.S
@@ -17,7 +17,7 @@
#include "sparc_matrix.h"
-#if defined(SVR4) || defined(__SVR4) || defined(__svr4__)
+#if defined(SVR4) || defined(__SVR4) || defined(__svr4__) || defined(__arch64__)
/* Solaris requires this for 64-bit. */
.register %g2, #scratch
.register %g3, #scratch
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (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/bash
Reply to: