Package: gawk Version: 1:3.1.6.dfsg-3 Severity: wishlist Tags: patch X-Debbugs-CC: debian-sup...@lists.debian.org
Hi! I am now trying to run Debian on Renesas SH CPU. The current gawk package doen't support SH and can not build. Because SuperH is to become the error by test of fmtspcl. ---- <snip> fldchg fldchgnf fmtspcl fmtspcl.ok _fmtspcl differ: char 233, line 3 make[2]: [fmtspcl] Error 1 (ignored) fmttest fnamedat fnarray fnarray2 </snip> ---- But SuperH can evade this problem by attaching -mieee option. I made a patch to revise to be able to build. Would you apply it? Best regards, Nobuhiro -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gawk depends on: ii libc6 2.9-18 GNU C Library: Shared libraries gawk recommends no packages. gawk suggests no packages. -- no debconf information
--- a/gawk-3.1.6.dfsg/debian/rules 2009-07-08 15:38:42.000000000 +0900 +++ b/gawk-3.1.6.dfsg/debian/rules 2009-07-08 15:39:13.000000000 +0900 @@ -24,11 +24,18 @@ install_script := install -m 755 install_binary := install -m 755 -s +CFLAGS = -g -O2 -Wall +ifeq (sh4,$(shell dpkg-architecture -qDEB_HOST_ARCH)) + # Renesas SH(sh4) need -mieee option. + # If this option is not effective, fmtspcl test failed. + CFLAGS += -mieee +endif + build: patch-stamp $(checkdir) touch --date="Jan 01 2000" doc/gawk.info doc/gawk.texi \ doc/gawkinet.info doc/gawkinet.texi - CFLAGS="-g -O2 -Wall" ./configure --prefix=/usr --libexecdir=/usr/lib \ + CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --libexecdir=/usr/lib \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --enable-switch $(MAKE)