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

[Pkg-octave-devel] Bug#727045: Dynare: FTBFS, automake warnings treated as errors.



Package: dynare
Version: 4.3.3-4
Severity: serious
Tags: patch

While working on raspbian I discovered that dynare failed to build because it was treating warnings as errors.

http://buildd.raspbian.org/status/fetch.php?pkg=dynare&arch=armhf&ver=4.3.3-4&stamp=1382380126

I was able to reproduce this in debian sid so it's not raspbian specific.

A patch that "fixes" this by removing the -werror in all configure,ac files (removing it from just the top level one proved insufficient) is attatched but ideally someone should look at the root cause.


diff -Nru dynare-4.3.3/debian/changelog dynare-4.3.3/debian/changelog
--- dynare-4.3.3/debian/changelog	2013-05-30 10:25:19.000000000 +0000
+++ dynare-4.3.3/debian/changelog	2013-10-21 18:58:59.000000000 +0000
@@ -1,3 +1,9 @@
+dynare (4.3.3-4+rpi1) jessie-staging; urgency=low
+
+  * Remove -Werror from automake.
+
+ -- Peter Michael Green <plugwash@raspbian.org>  Mon, 21 Oct 2013 18:58:46 +0000
+
 dynare (4.3.3-4) unstable; urgency=low
 
   * gcc-4.8.patch: new patch, fixes compatibility with GCC 4.8 (Closes: #701270)
diff -Nru dynare-4.3.3/debian/patches/no-automake-werror dynare-4.3.3/debian/patches/no-automake-werror
--- dynare-4.3.3/debian/patches/no-automake-werror	1970-01-01 00:00:00.000000000 +0000
+++ dynare-4.3.3/debian/patches/no-automake-werror	2013-10-21 19:06:20.000000000 +0000
@@ -0,0 +1,44 @@
+Description: Remove -Werror from automake.
+  The new version of automake has new warnings which make this package fail to
+  build, remove -Werror so thhat the package builds again.
+Author: Peter Michael Green <plugwash@raspbian.org>
+
+Index: dynare-4.3.3/configure.ac
+===================================================================
+--- dynare-4.3.3.orig/configure.ac	2013-10-21 18:59:21.000000000 +0000
++++ dynare-4.3.3/configure.ac	2013-10-21 18:59:21.000000000 +0000
+@@ -20,7 +20,7 @@
+ AC_PREREQ([2.62])
+ AC_INIT([dynare], [4.3.3])
+ AC_CONFIG_SRCDIR([preprocessor/DynareMain.cc])
+-AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability -Werror foreign no-dist-gzip dist-xz tar-pax])
++AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability foreign no-dist-gzip dist-xz tar-pax])
+ 
+ AC_PROG_CC
+ AC_PROG_CXX
+Index: dynare-4.3.3/mex/build/matlab/configure.ac
+===================================================================
+--- dynare-4.3.3.orig/mex/build/matlab/configure.ac	2013-04-12 10:25:59.000000000 +0000
++++ dynare-4.3.3/mex/build/matlab/configure.ac	2013-10-21 19:05:53.000000000 +0000
+@@ -20,7 +20,7 @@
+ AC_PREREQ([2.61])
+ AC_INIT([dynare], [4.3.3])
+ AC_CONFIG_SRCDIR([configure.ac])
+-AM_INIT_AUTOMAKE([-Wall -Wno-portability -Werror foreign])
++AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign])
+ 
+ dnl The following must occur before we modify CFLAGS/CXXFLAGS
+ AC_CANONICAL_HOST
+Index: dynare-4.3.3/mex/build/octave/configure.ac
+===================================================================
+--- dynare-4.3.3.orig/mex/build/octave/configure.ac	2013-04-12 10:25:50.000000000 +0000
++++ dynare-4.3.3/mex/build/octave/configure.ac	2013-10-21 19:06:17.000000000 +0000
+@@ -20,7 +20,7 @@
+ AC_PREREQ([2.61])
+ AC_INIT([dynare], [4.3.3])
+ AC_CONFIG_SRCDIR([configure.ac])
+-AM_INIT_AUTOMAKE([-Wall -Wno-portability -Werror foreign])
++AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign])
+ 
+ AC_CHECK_PROG([MKOCTFILE], [mkoctfile], [mkoctfile])
+ 
diff -Nru dynare-4.3.3/debian/patches/series dynare-4.3.3/debian/patches/series
--- dynare-4.3.3/debian/patches/series	2013-05-30 10:10:48.000000000 +0000
+++ dynare-4.3.3/debian/patches/series	2013-10-21 18:59:21.000000000 +0000
@@ -2,3 +2,4 @@
 fhs-compliance.patch
 texlive-2013.patch
 gcc-4.8.patch
+no-automake-werror

Reply to: