[ncview] 01/02: Add patch to disable NetCDF compiler check.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Jul 31 19:57:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository ncview.

commit 47f5098dc3b908ef6684050ca8081d672148715a
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jul 31 21:41:31 2015 +0200

    Add patch to disable NetCDF compiler check.
---
 debian/changelog               |  7 +++++++
 debian/patches/netcdf-cc.patch | 34 ++++++++++++++++++++++++++++++++++
 debian/patches/series          |  1 +
 3 files changed, 42 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 52bab6d..0126766 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ncview (2.1.5+ds1-2) UNRELEASED; urgency=medium
+
+  * Add patch to disable NetCDF compiler check.
+    (closes: #793902)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 31 Jul 2015 21:40:58 +0200
+
 ncview (2.1.5+ds1-1) unstable; urgency=medium
 
   * Move from experimental to unstable.
diff --git a/debian/patches/netcdf-cc.patch b/debian/patches/netcdf-cc.patch
new file mode 100644
index 0000000..0406d33
--- /dev/null
+++ b/debian/patches/netcdf-cc.patch
@@ -0,0 +1,34 @@
+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 at debian.org>
+Bug-Debian: https://bugs.debian.org/793902
+
+--- 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
+ 
+ #----------------------------------------------------------------------------------
diff --git a/debian/patches/series b/debian/patches/series
index 37c4c6b..9c5ee03 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 auxiliary-typo.patch
 manpage.patch
 autoreconf.patch
+netcdf-cc.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/ncview.git



More information about the Pkg-grass-devel mailing list