Package: lash Version: lash_0.6.0~rc2-6 Severity: wishlist Tags: patch Hi,
lash FTBFS on sh4. http://buildd.debian-ports.org/fetch.php?pkg=lash&arch=sh4&ver=0.6.0~rc2-6&stamp=1301396521&file=log&as=raw ----- ..... cc -DHAVE_CONFIG_H -I. -I.. -I/build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd -I/build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/. -I/usr/include/alsa -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDTDDIR=\"/usr/share/lash/dtds\" -g -O2 -g -O2 -c /build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd/jack_mgr_client.c gcc -DHAVE_CONFIG_H -I. -I.. -I/build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd -I/build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/. -I/usr/include/alsa -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDTDDIR=\"/usr/share/lash/dtds\" -g -O2 -g -O2 -c /build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd/appdb.c gcc -DHAVE_CONFIG_H -I. -I.. -I/build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd -I/build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/. -I/usr/include/alsa -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDTDDIR=\"/usr/share/lash/dtds\" -g -O2 -g -O2 -c /build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd/sigsegv.c /build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd/sigsegv.c: In function 'signal_segv': /build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd/sigsegv.c:97: error: 'NGREG' undeclared (first use in this function) /build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd/sigsegv.c:97: error: (Each undeclared identifier is reported only once /build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/./lashd/sigsegv.c:97: error: for each function it appears in.) make[3]: *** [sigsegv.o] Error 1 make[2]: *** [all-recursive] Error 1 make[3]: Leaving directory `/build/buildd-lash_0.6.0~rc2-6-sh4-nq6_Ie/lash-0.6.0~rc2/build/2.5/lashd' ..... ----- Thiss problem is revised by updating 04_disable_stacktrace.patch for sh. I attached which I updated. Could you check and apply this patch? Best regards, Nobuhiro -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.37-1-amd64 (SMP w/2 CPU cores) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
Description: Don't print the stacktrace on segfaults. Fixes FTBFS on armel,powerpc,ia64,alpha,sh4. Origin: Ubuntu, https://launchpad.net/bugs/647091 Bug-Ubuntu: https://launchpad.net/bugs/647091 --- lashd/sigsegv.c | 5 +++++ 1 file changed, 5 insertions(+) --- lash.orig/lashd/sigsegv.c +++ lash/lashd/sigsegv.c @@ -90,6 +90,10 @@ static void signal_segv(int signum, sigi lash_error("info.si_errno = %d", info->si_errno); lash_error("info.si_code = %d (%s)", info->si_code, si_codes[info->si_code]); lash_error("info.si_addr = %p", info->si_addr); + +#if defined(__arm__) || defined(__powerpc__) || defined (__ia64__) || defined (__alpha__) || defined (__FreeBSD_kernel__) || defined (__sh__) + lash_error("No stack trace"); +#else for(i = 0; i < NGREG; i++) lash_error("reg[%02d] = 0x" REGFORMAT, i, ucontext->uc_mcontext.gregs[i]); @@ -143,6 +147,7 @@ static void signal_segv(int signum, sigi lash_error("%s", strings[i]); #endif lash_error("End of stack trace"); +#endif exit (-1); }