Package: ncview / 2.1.8+ds-3

netcdf-cc.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: Disable NetCDF compiler check.
 Check fails for compiler used to build new netcdf packages:
 .
  checking for nc-config... yes
  Netcdf library version: netCDF 4.4.0-rc2
  Netcdf library has version 4 interface present: yes
  Netcdf library was compiled with C compiler: /usr/bin/cc
  checking for /usr/bin/cc... no
  configure: error: in `/tmp/buildd/ncview-2.1.5+ds1':
  configure: error: no acceptable C compiler found in $PATH
Author: Bas Couwenberg <sebastic@debian.org>
Bug-Debian: https://bugs.debian.org/793902
Forwarded: not-needed

--- a/configure.in
+++ b/configure.in
@@ -30,7 +30,7 @@ fi
 # we have to specifically check if the same compiler used to compile the
 # netcdf library exists.
 #------------------------------------------------------------------------
-AC_PROG_CC( $NETCDF_CC )
+#AC_PROG_CC( $NETCDF_CC )
 AC_ISC_POSIX
 AC_HEADER_STDC
 
@@ -253,7 +253,8 @@ if test x$CC_TEST_SAME != x$NETCDF_CC_TE
 	echo "To do this, set environmental variable CC to $NETCDF_CC"
 	echo "and run ./configure again"
 	echo "==================================================================="
-	exit -1
+	#exit -1
+	echo "This error is ignored for the Debian package build"
 fi
 
 #----------------------------------------------------------------------------------