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

Bug#560335: octave-octgpr: FTBFS: error: called from `pkg:configure_make' in file /usr/share/octave/3.0.5/m/pkg/pkg.m near line 1235, column 2



Package: octave-octgpr 
Version: 1.1.5-1
Severity: important
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org

Hi,

I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?a=sh4

octave-octgpr FTBFS on sh4. Because configure of this package generated
from old autoconf.

http://buildd.debian-ports.org/fetch.php?pkg=octave-octgpr&arch=sh4&ver=1.1.5-1&stamp=1260428529&file=log&as=raw

-----
.....
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran...  -little -L/usr/lib/gcc/sh4-linux-gnu/4.3.4 -L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran -lm
checking for dummy main to link with Fortran 77 libraries... unknown
.....
-----

Old autoconf adds -little option to compile option. sh4 architecture can't
interpret this option. Therefore, this has build error.
 http://lists.gnu.org/archive/html/bug-autoconf/2008-10/msg00039.html

We need patch revising this.
I added patch to revising these. Package building was fine.
Please apply  patch.

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
  GPG ID: 40AD1FA6
--- 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)

Reply to: