diff -Nru libsbml-5.10.0+dfsg/debian/changelog libsbml-5.10.0+dfsg/debian/changelog --- libsbml-5.10.0+dfsg/debian/changelog 2014-09-14 13:11:24.000000000 +0100 +++ libsbml-5.10.0+dfsg/debian/changelog 2015-10-13 04:07:04.000000000 +0100 @@ -1,3 +1,13 @@ +libsbml (5.10.0+dfsg-1.1) unstable; urgency=medium + + * Non-maintainer upload + * Fix FTBFS on mipsel + Patch by Jurica Stanojkovic <jurica.stanojko...@imgtec.com> + Add mips-compile-with-O1.patch + Closes: #788068 + + -- Anibal Monsalve Salazar <ani...@debian.org> Tue, 13 Oct 2015 04:06:47 +0100 + libsbml (5.10.0+dfsg-1) unstable; urgency=medium [Ivo Maintz] diff -Nru libsbml-5.10.0+dfsg/debian/patches/mips-compile-with-O1.patch libsbml-5.10.0+dfsg/debian/patches/mips-compile-with-O1.patch --- libsbml-5.10.0+dfsg/debian/patches/mips-compile-with-O1.patch 1970-01-01 01:00:00.000000000 +0100 +++ libsbml-5.10.0+dfsg/debian/patches/mips-compile-with-O1.patch 2015-10-13 04:01:22.000000000 +0100 @@ -0,0 +1,28 @@ +From: Jurica Stanojkovic <jurica.stanojko...@imgtec.com> +Subject: package libsbml FTBFS on mipsel +Date: Mon, 8 Jun 2015 10:05:21 +0000 + +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788068 + +We have successfully built libsbml using -O1 optimization level. +-O1 is used for mips/mipsel, for critical part of package. + +With this patch we was able to build package on lemote loongson 3a. + +Index: libsbml-5.10.0+dfsg/src/bindings/perl/CMakeLists.txt +=================================================================== +--- libsbml-5.10.0+dfsg.orig/src/bindings/perl/CMakeLists.txt ++++ libsbml-5.10.0+dfsg/src/bindings/perl/CMakeLists.txt +@@ -149,6 +149,12 @@ ADD_CUSTOM_COMMAND( + + add_custom_target(binding_perl_swig ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/LibSBML_wrap.cpp ${CMAKE_CURRENT_BINARY_DIR}/LibSBML.pod) + ++if (WITH_01_COMPILE) ++ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O1") ++ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O1") ++ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O1") ++ set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O1") ++endif(WITH_01_COMPILE) + + # + # Determine the perl installation directory diff -Nru libsbml-5.10.0+dfsg/debian/patches/series libsbml-5.10.0+dfsg/debian/patches/series --- libsbml-5.10.0+dfsg/debian/patches/series 2014-09-14 12:59:10.000000000 +0100 +++ libsbml-5.10.0+dfsg/debian/patches/series 2015-10-13 03:53:18.000000000 +0100 @@ -3,3 +3,4 @@ doxygen.patch spelling.patch perl-installdirs.patch +mips-compile-with-O1.patch diff -Nru libsbml-5.10.0+dfsg/debian/rules libsbml-5.10.0+dfsg/debian/rules --- libsbml-5.10.0+dfsg/debian/rules 2014-08-27 12:34:23.000000000 +0100 +++ libsbml-5.10.0+dfsg/debian/rules 2015-10-13 03:57:15.000000000 +0100 @@ -18,6 +18,10 @@ CMAKE_OPTS := $(shell cat debian/cmake_opts) endif +ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel)) +CMAKE_OPTS += -D'WITH_01_COMPILE:BOOL=ON' +endif + ### let's do it ### DEB_COMPRESS_EXCLUDE = .pdf