Package: quantlib
Version: 0.3.11-2.1
Severity: wishlist
Tags: patch

I'm building the whole archive with GCC/G++ 4.1.  Your package failed
in a pretty strange way.  As it turns you, the reason is that you
explictly call g++-4.0, but that's not installed in my chroot.  You
used to have an explicit build-dependency on g++-4.0 but Matthias
Klose removed that in his NMU, something which was arguably correct
since at the moment g++-4.0 is part of build-essential.

I suggest the patch below to compile with G++ 4.0 or higher.


> Automatic build of quantlib_0.3.11-2.1 on bigsur by sbuild/mips 1.94
...
> checking for M_1_SQRTPI... no
> checking for Boost development files... no
> configure: error: Boost development files not found
> make: *** [build-stamp] Error 1

config.log shows what's going on:

configure:20092: checking for Boost development files
configure:20113: g++-4.0 -c -O2 -D_REENTRANT -fpermissive  conftest.cc >&5
./configure: line 20114: g++-4.0: command not found

Although I wonder why the configure script doesn't fail in a more
obvious way when CXX is not available...


Proposed patch:


--- quantlib-0.3.11~/debian/control     2006-03-16 21:46:08.000000000 +0000
+++ quantlib-0.3.11/debian/control      2006-03-16 21:47:03.000000000 +0000
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: Dirk Eddelbuettel <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 3.0), autoconf, automake1.7, texinfo, 
libboost-dev (>= 1.33.0-5), libboost-test-dev (>= 1.33.0-5)
+Build-Depends: debhelper (>= 3.0), autoconf, automake1.7, texinfo, 
libboost-dev (>= 1.33.0-5), libboost-test-dev (>= 1.33.0-5), g++ (>= 4:4.0.2-2)
 Standards-Version: 3.6.2
 
 Package: libquantlib-0.3.11c2a
diff -urN quantlib-0.3.11~/debian/rules quantlib-0.3.11/debian/rules
--- quantlib-0.3.11~/debian/rules       2006-03-16 21:46:08.000000000 +0000
+++ quantlib-0.3.11/debian/rules        2006-03-16 21:46:15.000000000 +0000
@@ -22,7 +22,7 @@
 ## edd 18 Jun 2005     g++-3.4 for testing
 ## edd 18 Jul 2005      back to g++
 ## edd 17 Nov 2005     g++-4.0
-cxx    = g++-4.0
+cxx    = g++
 
 ## edd 18 May 2002     standard flags for libraries
 ## edd 18 Jun 2005     no optim., debugging


-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to