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

Bug#540408: FTBFS: build fail on Renesas SH(sh4)



Package: fftw3
Version: 3.2.1-2.1
Severity: wishlist
Tags: patch

Hi.

I am now trying to run Debian on Renesas SH CPU(sh4).
As for this CPU, double and long-double are the same size.
Therefore, this becomes the error by handling of long-double.

----
<snip>
dh_install -a --sourcedir=debian/tmp-single
dh_install -a --sourcedir=debian/tmp-double
dh_install -a --sourcedir=debian/tmp-long-double
dh_install: libfftw3-3 missing files (usr/lib/libfftw*.so.*), aborting
make: *** [binary-arch] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2
E: Failed autobuilding of package
</snip>
----

I made a patch to fix this problem.
Could you apply it, please?

Best regards,
  Nobuhiro

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686-bigmem (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
--- debian/rules	2009-08-08 03:24:21.000000000 +0900
+++ debian/rules	2009-08-08 03:25:10.000000000 +0900
@@ -48,6 +48,7 @@
 	archconfflags := $(archconfflags) F77="gfortran -ff2c"
 endif
 
+LONG_DOUBLE=0
 SETCFLAGS := CFLAGS='$(CFLAGS)'
 
 # common configure options
@@ -74,6 +75,7 @@
 		$(MAKE) && \
 		( cd tests ; $(MAKE) smallcheck ) && \
 		$(MAKE) install DESTDIR=`pwd`/debian/tmp-long-double; \
+		LONG_DOUBLE=1; \
 	fi
 	touch build-arch
 
@@ -126,7 +128,9 @@
 	dh_installdirs -a
 	dh_install -a --sourcedir=debian/tmp-single
 	dh_install -a --sourcedir=debian/tmp-double
-	dh_install -a --sourcedir=debian/tmp-long-double
+	if [ $(LONG_DOUBLE) -eq 1 ] ; then \
+		dh_install -a --sourcedir=debian/tmp-long-double; \
+	fi
 	dh_installman -a
 	dh_strip -a
 	dh_compress -a -X.c -X.pl -X.am -X.in

Reply to: