Package: libsbml Version: 5.10.0+dfsg-1 Severity: serious Tags: sid User: debian-m...@lists.debian.org Usertags: mips-patch
Package libsbml_5.10.0+dfsg-1 FTBFS on mipsel with following message: Build killed with signal TERM after 150 minutes of inactivity https://buildd.debian.org/status/fetch.php?pkg=libsbml&arch=mipsel&ver=5.10.0%2Bdfsg-1&stamp=1410908364 Package timeout on loongson based MIPS build boards. We have successfully built libsbml using -O1 optimization level. -O1 is used for mips/mipsel, for critical part of package. The patch is attached. With this patch we was able to build package on lemote loongson 3a. Could you please include this patch? Thank you! Regards, Jurica
diff -upNr libsbml-5.10.0+dfsg-old/debian/rules libsbml-5.10.0+dfsg-new/debian/rules --- libsbml-5.10.0+dfsg-old/debian/rules 2014-08-27 13:34:23.000000000 +0200 +++ libsbml-5.10.0+dfsg-new/debian/rules 2015-05-29 00:15:27.410301574 +0200 @@ -18,6 +18,10 @@ ifdef BIND_MATLAB 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 diff -upNr libsbml-5.10.0+dfsg-old/src/bindings/perl/CMakeLists.txt libsbml-5.10.0+dfsg-new/src/bindings/perl/CMakeLists.txt --- libsbml-5.10.0+dfsg-old/src/bindings/perl/CMakeLists.txt 2015-05-29 00:17:39.000000000 +0200 +++ libsbml-5.10.0+dfsg-new/src/bindings/perl/CMakeLists.txt 2015-05-29 00:16:43.652489626 +0200 @@ -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