Package: flexpart
Version: 9.02-7
Tags: sid patch
Severity: important
Justification: FTBFS
User: [email protected]
Usertags: mips-patch


While trying to build flexpart on mips/mipsel architecture,
build fails with an error:
> /usr/bin/make -f makefile.gfs_gfortran LDFLAGS=-Wl,-z,relro FCFLAGS=-g -O2
> make: Entering an unknown directory
> make: *** unknown output-sync type '2'.  Stop.

The reason for this behavior is the way
of forwarding flags ( LDFLAGS and  FCFLAGS )
in debian/rules file.

Package  flexpart builds on others architectures,
and it was built in past for mips and mipsel,
because of the different value of FCFLAGS.

Patch that fixes this issue is attached.

Could you please consider including this patch?

Best regards,
Dejan
--- flexpart-9.02.orig/debian/rules	2013-12-16 14:35:56.000000000 +0000
+++ flexpart-9.02/debian/rules	2014-07-16 11:00:09.000000000 +0000
@@ -13,9 +13,9 @@
 	dh $@
 
 override_dh_auto_build:
-	$(MAKE) -f makefile.gfs_gfortran LDFLAGS=$(LDFLAGS) FCFLAGS=$(FCFLAGS)
+	$(MAKE) -f makefile.gfs_gfortran LDFLAGS="$(LDFLAGS)" FCFLAGS="$(FCFLAGS)"
 	rm -f *.o *.mod
-	$(MAKE) -f makefile.ecmwf_gfortran LDFLAGS=$(LDFLAGS) FCFLAGS=$(FCFLAGS)
+	$(MAKE) -f makefile.ecmwf_gfortran LDFLAGS="$(LDFLAGS)" FCFLAGS="$(FCFLAGS)"
 	rm -f ./options/SPECIES/spec_overview
 	find options -type f -exec chmod -x {} \;
 

Reply via email to