Package: magics++
Version: 2.18.15-6
Severity: important
Tags: sid patch
Justification: FTBFS
User: [email protected]
Usertags: mips-patch

Hello,

Package magics++_2.18.15-6 FTBFS on mips:
https://buildd.debian.org/status/fetch.php?pkg=magics%2B%2B&arch=mips&ver=2.18.15-6&stamp=1406359409

For this package there is a special case in debian/rules and debian/control 
just for mips.
Patch removes this special case.

debian/rules:
# Don't use emoslib on mips
WITH_EMOSLIB:= --with-emos-libraries=/usr/lib --enable-bufr
ifeq ($(ARCH), mips)
  WITH_EMOSLIB:=
endif

debian/control:
Build-Depends: ... libemos-dev [!mips]

I have attached a patch.
With this patch package builds without an issue.

Regards,
Jurica
diff -upNr magics++-2.18.15-orig/debian/control magics++-2.18.15/debian/control
--- magics++-2.18.15-orig/debian/control	2014-07-22 18:02:34.000000000 +0200
+++ magics++-2.18.15/debian/control	2014-07-30 09:53:48.000000000 +0200
@@ -2,7 +2,7 @@ Source: magics++
 Section: science
 Priority: optional
 Maintainer: Alastair McKinstry <[email protected]>
-Build-Depends: debhelper  (>= 9) , dh-buildinfo, libnetcdf-dev, libgl1-mesa-dev, libgd2-dev, libemos-dev [!mips], libgrib-api-dev, libterralib-dev, libjasper-dev, libcairo2-dev, libpango1.0-dev, autoconf, automake, libtool, gfortran, ttf-dejavu-core, libxml-parser-perl, python-all-dev (>= 2.6.6-3) , swig, chrpath, python-numpy, libopenjpeg-dev, ghostscript, zlib1g-dev, dh-autoreconf (>= 4~), libboost-dev, python-instant, python3-all-dev, libproj-dev, libqt4-dev
+Build-Depends: debhelper  (>= 9) , dh-buildinfo, libnetcdf-dev, libgl1-mesa-dev, libgd2-dev, libemos-dev, libgrib-api-dev, libterralib-dev, libjasper-dev, libcairo2-dev, libpango1.0-dev, autoconf, automake, libtool, gfortran, ttf-dejavu-core, libxml-parser-perl, python-all-dev (>= 2.6.6-3) , swig, chrpath, python-numpy, libopenjpeg-dev, ghostscript, zlib1g-dev, dh-autoreconf (>= 4~), libboost-dev, python-instant, python3-all-dev, libproj-dev, libqt4-dev
 Standards-Version: 3.9.5
 Homepage: https://software.ecmwf.int/wiki/display/MAGP/Magics
 X-Python-Version: >= 2.6
diff -upNr magics++-2.18.15-orig/debian/rules magics++-2.18.15/debian/rules
--- magics++-2.18.15-orig/debian/rules	2014-07-22 18:02:34.000000000 +0200
+++ magics++-2.18.15/debian/rules	2014-07-30 09:53:00.000000000 +0200
@@ -16,11 +16,7 @@ CFLAGS += -fPIC
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-# Don't use emoslib on mips
 WITH_EMOSLIB:= --with-emos-libraries=/usr/lib --enable-bufr
-ifeq ($(ARCH), mips)
-  WITH_EMOSLIB:=
-endif
 
 override_dh_auto_clean:
 	find . -type l -exec rm {} \;

Reply via email to