Bug#294884: asterisk: Illegal Instruction on VIA CPUs

Tzafrir Cohen Tzafrir Cohen <tzafrir.cohen@xorcom.com>, 294884@bugs.debian.org
Sat, 12 Feb 2005 04:39:08 +0200


--iAL9S67WQOXgEPD9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: asterisk
Version: 1.0.5-1
Tags: patch

Asterisk exists with "Illegal Instriction" on VIA CPUs. This is because
I build packages on an i686 system and the makefile sets:

  PROC=$(system uname -m)

The attached patch replaces i686 with i586. It should be applied after
the makefile patch.

What is the impact of this on the performance of Asterisk on different 
i686 systems?

[Yet untested on latest unstable, as I don't have such a system]

-- 
Tzafrir Cohen   icq#16849755  +972-50-7952406
tzafrir.cohen@xorcom.com    http://xorcom.com

--iAL9S67WQOXgEPD9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="35_rapid-force-i586.dpatch"

#! /bin/sh /usr/share/dpatch/dpatch-run
## 35_rapid-force-i586.dpatch by  <tzafrir@boole.in.xorcom.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad asterisk-1.0.5/Makefile /tmp/dpep.ec80Qy/asterisk-1.0.5/Makefile
--- asterisk-1.0.5/Makefile	2005-02-12 02:14:44.000000000 +0200
+++ /tmp/dpep.ec80Qy/asterisk-1.0.5/Makefile	2005-02-12 02:18:35.000000000 +0200
@@ -56,6 +56,10 @@
 
 ifeq (${OSARCH},Linux)
 PROC=$(shell uname -m)
+# Stop my builds from craching on Via machines with SIGILL
+ifeq ($(PROC),i686)
+  PROC=i586
+endif
 ifeq ($(PROC),x86_64)
 # You must have GCC 3.4 to use k8, otherwise use athlon
 PROC=k8

--iAL9S67WQOXgEPD9--