[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#127921: menu 2.1.5-10 crashes on mips and mipsel

Package: menu
Version: 2.1.5-10
Severity: important

/usr/bin/update-menus crashes with a bus error on mips and mipsel:

Unpacking menu (from .../menu_2.1.5-10_mips.deb) ...
Setting up menu (2.1.5-10) ...
/var/lib/dpkg/info/menu.postinst: line 12: 20119 Illegal instruction     update-menus
dpkg: error processing menu (--configure):
 subprocess post-installation script returned error exit status 132
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

This seems to be no problem in menu itself but a toolchain issue on mipsel
and mips, although currently I know of no other program affected. 
While there is no real fix for this problem, a workaround is to link 
menu statically on mips and mipsel, so I suggest to apply the appended

#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
diff -Nur menu-2.1.5/debian/rules menu-2.1.5-patched/debian/rules
--- menu-2.1.5/debian/rules	Sun Feb 25 00:09:12 2001
+++ menu-2.1.5-patched/debian/rules	Sat Jan  5 14:32:26 2002
@@ -10,7 +10,13 @@
 # up compilation significantly (from 10 or so to 1 minute).
 # But debian policy says to compile with -O2 (also it really
 # does speed up runtime: about 2--3 times as fast).
+arch    := $(shell dpkg --print-architecture)
+ifneq ($(findstring mips,$(arch)),)
+CXXFLAGS = -g -O2 -Wall -static
 CXXFLAGS = -g -O2 -Wall
 build: build-stamp

Reply to: