Hello community,
here is the log from the commit of package octave-forge-netcdf for openSUSE:Factory checked in at 2015-06-23 11:58:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/octave-forge-netcdf (Old)
and /work/SRC/openSUSE:Factory/.octave-forge-netcdf.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "octave-forge-netcdf"
Changes:
--------
--- /work/SRC/openSUSE:Factory/octave-forge-netcdf/octave-forge-netcdf.changes 2015-06-16 15:12:52.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.octave-forge-netcdf.new/octave-forge-netcdf.changes 2015-06-23 11:58:42.000000000 +0200
@@ -1,0 +2,6 @@
+Sat Jun 20 10:26:13 UTC 2015 - dmitry_r@opensuse.org
+
+- Update to version 1.0.7
+ * Cross-compilation support
+
+-------------------------------------------------------------------
Old:
----
netcdf-1.0.6.tar.gz
New:
----
netcdf-1.0.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ octave-forge-netcdf.spec ++++++
--- /var/tmp/diff_new_pack.KjTv65/_old 2015-06-23 11:58:42.000000000 +0200
+++ /var/tmp/diff_new_pack.KjTv65/_new 2015-06-23 11:58:42.000000000 +0200
@@ -18,7 +18,7 @@
%define octpkg netcdf
Name: octave-forge-%{octpkg}
-Version: 1.0.6
+Version: 1.0.7
Release: 0
Summary: NetCDF interface for Octave
License: GPL-2.0+
++++++ netcdf-1.0.6.tar.gz -> netcdf-1.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netcdf/DESCRIPTION new/netcdf/DESCRIPTION
--- old/netcdf/DESCRIPTION 2015-02-22 21:00:47.000000000 +0100
+++ new/netcdf/DESCRIPTION 2015-06-10 14:37:24.000000000 +0200
@@ -1,6 +1,6 @@
Name: netcdf
-Version: 1.0.6
-Date: 2015-02-22
+Version: 1.0.7
+Date: 2015-06-10
Author: Alexander Barth
Maintainer: Alexander Barth
Title: netcdf
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netcdf/NEWS new/netcdf/NEWS
--- old/netcdf/NEWS 2015-02-22 21:00:47.000000000 +0100
+++ new/netcdf/NEWS 2015-06-10 14:37:24.000000000 +0200
@@ -1,3 +1,8 @@
+Summary of important user-visible changes for netcdf 1.0.7:
+-------------------------------------------------------------------
+
+ ** apply patch from John Donoghue to allow cross-compilation (bug #44837)
+
Summary of important user-visible changes for netcdf 1.0.6:
-------------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netcdf/src/Makeconf.in new/netcdf/src/Makeconf.in
--- old/netcdf/src/Makeconf.in 2013-07-03 16:10:35.000000000 +0200
+++ new/netcdf/src/Makeconf.in 2015-06-10 14:37:24.000000000 +0200
@@ -53,6 +53,8 @@
OCTAVE_VERSION = @OCTAVE_VERSION@
MKOCTFILE = @MKOCTFILE@ -DHAVE_OCTAVE_$(ver) -v
SHLEXT = @SHLEXT@
+NC_CONFIG = @NC_CONFIG@
+OCTAVE_CONFIG = @OCTAVE_CONFIG@
%.o: %.c ; $(MKOCTFILE) -c $<
%.o: %.f ; $(MKOCTFILE) -c $<
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netcdf/src/Makefile new/netcdf/src/Makefile
--- old/netcdf/src/Makefile 2014-05-26 16:16:57.000000000 +0200
+++ new/netcdf/src/Makefile 2015-06-10 14:37:24.000000000 +0200
@@ -1,10 +1,13 @@
-LIBS=$(shell nc-config --libs)
-AWK=awk
-MKOCTFILE=mkoctfile
-OCTAVE=octave
-NCHEADER=$(shell nc-config --includedir)/netcdf.h
+sinclude Makeconf
+
+AWK ?= awk
+MKOCTFILE ?= mkoctfile
+OCTAVE ?= octave
+NC_CONFIG ?= nc-config
+NCHEADER=$(shell $(NC_CONFIG) --includedir)/netcdf.h
SRC=__netcdf__.cc
-CFLAGS=$(shell nc-config --cflags)
+CFLAGS=$(shell $(NC_CONFIG) --cflags)
+LIBS=$(shell $(NC_CONFIG) --libs)
all: __netcdf__.oct
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netcdf/src/configure new/netcdf/src/configure
--- old/netcdf/src/configure 2015-02-22 21:47:43.000000000 +0100
+++ new/netcdf/src/configure 2015-06-10 14:37:53.000000000 +0200
@@ -601,6 +601,7 @@
mpath
subver
ver
+OCTAVE_CONFIG
MKOCTFILE
OBJEXT
EXEEXT
@@ -2610,6 +2611,46 @@
test -z "$MKOCTFILE" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no mkoctfile found on path" >&5
$as_echo "$as_me: WARNING: no mkoctfile found on path" >&2;}
+# Extract the first word of "octave-config", so it can be a program name with args.
+set dummy octave-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OCTAVE_CONFIG"; then
+ ac_cv_prog_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OCTAVE_CONFIG="octave-config"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG
+if test -n "$OCTAVE_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5
+$as_echo "$OCTAVE_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+test -z "$OCTAVE_CONFIG" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no octave-config found on path" >&5
+$as_echo "$as_me: WARNING: no octave-config found on path" >&2;}
+
@@ -2796,6 +2837,8 @@
+
+
# Extract the first word of "octave", so it can be a program name with args.
set dummy octave; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -2833,25 +2876,25 @@
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in Octave" >&5
-$as_echo_n "checking for OCTAVE_VERSION in Octave... " >&6; }
-OCTAVE_VERSION=`echo "disp(OCTAVE_VERSION)" | $OCTAVE -qf`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VERSION in octave-config" >&5
+$as_echo_n "checking for VERSION in octave-config... " >&6; }
+OCTAVE_VERSION=`$OCTAVE_CONFIG -p VERSION`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
$as_echo "$OCTAVE_VERSION" >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for octave_config_info('canonical_host_type') in Octave" >&5
-$as_echo_n "checking for octave_config_info('canonical_host_type') in Octave... " >&6; }
-canonical_host_type=`echo "disp(octave_config_info('canonical_host_type'))" | $OCTAVE -qf`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CANONICAL_HOST_TYPE in octave-config" >&5
+$as_echo_n "checking for CANONICAL_HOST_TYPE in octave-config... " >&6; }
+canonical_host_type=`$OCTAVE_CONFIG -p CANONICAL_HOST_TYPE`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $canonical_host_type" >&5
$as_echo "$canonical_host_type" >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for octave_config_info('SHLEXT') in Octave" >&5
-$as_echo_n "checking for octave_config_info('SHLEXT') in Octave... " >&6; }
-SHLEXT=`echo "disp(octave_config_info('SHLEXT'))" | $OCTAVE -qf`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHLEXT in octave-config" >&5
+$as_echo_n "checking for SHLEXT in octave-config... " >&6; }
+SHLEXT=`$OCTAVE_CONFIG -p SHLEXT`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLEXT" >&5
$as_echo "$SHLEXT" >&6; }
@@ -3020,8 +3063,9 @@
esac
-# Extract the first word of "nc-config", so it can be a program name with args.
-set dummy nc-config; ac_word=$2
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}nc-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nc-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NC_CONFIG+:} false; then :
@@ -3037,7 +3081,7 @@
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_NC_CONFIG="nc-config"
+ ac_cv_prog_NC_CONFIG="${ac_tool_prefix}nc-config"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
@@ -3057,12 +3101,66 @@
fi
+fi
+if test -z "$ac_cv_prog_NC_CONFIG"; then
+ ac_ct_NC_CONFIG=$NC_CONFIG
+ # Extract the first word of "nc-config", so it can be a program name with args.
+set dummy nc-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_NC_CONFIG+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_NC_CONFIG"; then
+ ac_cv_prog_ac_ct_NC_CONFIG="$ac_ct_NC_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_NC_CONFIG="nc-config"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_NC_CONFIG=$ac_cv_prog_ac_ct_NC_CONFIG
+if test -n "$ac_ct_NC_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NC_CONFIG" >&5
+$as_echo "$ac_ct_NC_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_NC_CONFIG" = x; then
+ NC_CONFIG="nc-config"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ NC_CONFIG=$ac_ct_NC_CONFIG
+ fi
+else
+ NC_CONFIG="$ac_cv_prog_NC_CONFIG"
+fi
+
if test -z "$NC_CONFIG"; then
as_fn_error 1 "nc-config not found" "$LINENO" 5;
fi
-NETCDF_LIBS="$NETCDF_LIBS `nc-config --libs`"
-NETCDF_CFLAGS="$NETCDF_CFLAGS `nc-config --cflags`"
+NETCDF_LIBS="$NETCDF_LIBS `$NC_CONFIG --libs`"
+NETCDF_CFLAGS="$NETCDF_CFLAGS `$NC_CONFIG --cflags`"
CONFIGURE_OUTPUTS="Makeconf"
@@ -3082,8 +3180,9 @@
headers: $includedir
octave-forge is configured with
- octave: $OCTAVE (version $OCTAVE_VERSION)
- mkoctfile: $MKOCTFILE for Octave $subver
+ octave: $OCTAVE (version $OCTAVE_VERSION)
+ mkoctfile: $MKOCTFILE for Octave $subver
+ octave-config: $OCTAVE_CONFIG for Octave $subver
netCDF compiler flags: $NETCDF_CFLAGS
netCDF libraries: $NETCDF_LIBS"
ac_config_files="$ac_config_files $CONFIGURE_OUTPUTS"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netcdf/src/configure.base new/netcdf/src/configure.base
--- old/netcdf/src/configure.base 2013-07-03 16:10:35.000000000 +0200
+++ new/netcdf/src/configure.base 2015-06-10 14:37:24.000000000 +0200
@@ -50,6 +50,9 @@
AC_CHECK_PROG(MKOCTFILE,mkoctfile,mkoctfile)
test -z "$MKOCTFILE" && AC_MSG_WARN([no mkoctfile found on path])
+AC_CHECK_PROG(OCTAVE_CONFIG,octave-config,octave-config)
+test -z "$OCTAVE_CONFIG" && AC_MSG_WARN([no octave-config found on path])
+
AC_SUBST(ver)
AC_SUBST(subver)
AC_SUBST(mpath)
@@ -252,6 +255,13 @@
AC_SUBST($2)
])
+AC_DEFUN(OCTAVE_CONFIG_EVAL,
+[AC_MSG_CHECKING([for $1 in octave-config])
+$2=`$OCTAVE_CONFIG -p $1`
+AC_MSG_RESULT($$2)
+AC_SUBST($2)
+])
+
dnl Check status of an octave variable
dnl
dnl OCTAVE_CHECK_EXIST(variable,action_if_true,action_if_false)
@@ -269,13 +279,13 @@
dnl should check that $(OCTAVE) --version matches $(MKOCTFILE) --version
AC_CHECK_PROG(OCTAVE,octave,octave)
-OCTAVE_EVAL(OCTAVE_VERSION,OCTAVE_VERSION)
+OCTAVE_CONFIG_EVAL(VERSION,OCTAVE_VERSION)
dnl grab canonical host type so we can write system specific install stuff
-OCTAVE_EVAL(octave_config_info('canonical_host_type'),canonical_host_type)
+OCTAVE_CONFIG_EVAL(CANONICAL_HOST_TYPE,canonical_host_type)
dnl grab SHLEXT from octave config
-OCTAVE_EVAL(octave_config_info('SHLEXT'),SHLEXT)
+OCTAVE_CONFIG_EVAL(SHLEXT,SHLEXT)
AC_PROG_LN_S
@@ -310,13 +320,14 @@
dnl checking for nc-config
-AC_CHECK_PROG(NC_CONFIG, nc-config, nc-config)
+dnl AC_CHECK_PROG(NC_CONFIG, nc-config, nc-config)
+AC_CHECK_TOOL(NC_CONFIG, nc-config, nc-config)
if test -z "$NC_CONFIG"; then
AC_MSG_ERROR([nc-config not found], 1);
fi
-NETCDF_LIBS="$NETCDF_LIBS `nc-config --libs`"
-NETCDF_CFLAGS="$NETCDF_CFLAGS `nc-config --cflags`"
+NETCDF_LIBS="$NETCDF_LIBS `$NC_CONFIG --libs`"
+NETCDF_CFLAGS="$NETCDF_CFLAGS `$NC_CONFIG --cflags`"
CONFIGURE_OUTPUTS="Makeconf"
@@ -336,7 +347,8 @@
headers: $includedir
octave-forge is configured with
- octave: $OCTAVE (version $OCTAVE_VERSION)
- mkoctfile: $MKOCTFILE for Octave $subver
+ octave: $OCTAVE (version $OCTAVE_VERSION)
+ mkoctfile: $MKOCTFILE for Octave $subver
+ octave-config: $OCTAVE_CONFIG for Octave $subver
netCDF compiler flags: $NETCDF_CFLAGS
netCDF libraries: $NETCDF_LIBS"