commit octave-forge-parallel for openSUSE:Factory
Hello community, here is the log from the commit of package octave-forge-parallel for openSUSE:Factory checked in at 2015-11-02 12:55:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/octave-forge-parallel (Old) and /work/SRC/openSUSE:Factory/.octave-forge-parallel.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "octave-forge-parallel" Changes: -------- --- /work/SRC/openSUSE:Factory/octave-forge-parallel/octave-forge-parallel.changes 2015-08-31 22:58:53.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.octave-forge-parallel.new/octave-forge-parallel.changes 2015-11-02 12:55:08.000000000 +0100 @@ -1,0 +2,6 @@ +Fri Oct 30 21:02:29 UTC 2015 - dmitry_r@opensuse.org + +- Update to version 3.0.3 + * Bugfix release + +------------------------------------------------------------------- Old: ---- parallel-3.0.2.tar.gz New: ---- parallel-3.0.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ octave-forge-parallel.spec ++++++ --- /var/tmp/diff_new_pack.mHrhwB/_old 2015-11-02 12:55:09.000000000 +0100 +++ /var/tmp/diff_new_pack.mHrhwB/_new 2015-11-02 12:55:09.000000000 +0100 @@ -18,7 +18,7 @@ %define octpkg parallel Name: octave-forge-%{octpkg} -Version: 3.0.2 +Version: 3.0.3 Release: 0 Summary: Parallel Computing for Octave License: GPL-3.0+ ++++++ parallel-3.0.2.tar.gz -> parallel-3.0.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/DESCRIPTION new/parallel-3.0.3/DESCRIPTION --- old/parallel-3.0.2/DESCRIPTION 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/DESCRIPTION 2015-10-29 14:16:11.000000000 +0100 @@ -1,6 +1,6 @@ Name: Parallel -Version: 3.0.2 -Date: 2015-07-16 +Version: 3.0.3 +Date: 2015-10-29 Author: Hayato Fujiwara, Jaroslav Hajek, Olaf Till Maintainer: Olaf Till <i7tiol@t-online.de> Title: Parallel Computing. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/NEWS new/parallel-3.0.3/NEWS --- old/parallel-3.0.2/NEWS 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/NEWS 2015-10-29 14:16:11.000000000 +0100 @@ -1,3 +1,10 @@ +parallel 3.0.3 +-------------- + + ** Fix bug in package building if SRP is not provided by gnutls. + + ** Documentation spelling and typo fixes. + parallel 3.0.2 -------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/doc/README new/parallel-3.0.3/doc/README --- old/parallel-3.0.2/doc/README 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/doc/README 2015-10-29 14:16:11.000000000 +0100 @@ -2,7 +2,7 @@ -- Functions for initialization of a cluster and execution of arbitrary commands on chosen remote machines. Please see e.g. the - documentation of "connect()", "pserver()", and of the functions + documentation of "pconnect()", "pserver()", and of the functions referenced therein. -- Higher level functions, based on the lower level parallel cluster diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/inst/__netcellfun_guardfun__.m new/parallel-3.0.3/inst/__netcellfun_guardfun__.m --- old/parallel-3.0.2/inst/__netcellfun_guardfun__.m 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/inst/__netcellfun_guardfun__.m 2015-10-29 14:16:11.000000000 +0100 @@ -30,8 +30,8 @@ try [varargout{1:nout}] = func (varargin{:}); catch + errs = lasterror (); errs.index = idx; - [errs.message, errs.identifier] = lasterr (); [varargout{1:nout}] = errh (errs, varargin{:}); end_try_catch diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/inst/parcellfun.m new/parallel-3.0.3/inst/parcellfun.m --- old/parallel-3.0.2/inst/parcellfun.m 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/inst/parcellfun.m 2015-10-29 14:16:11.000000000 +0100 @@ -263,8 +263,8 @@ try [res{:}] = fun (argsc{:}); catch + errs = lasterror (); # fields 'message', 'identifier', 'stack' errs.index = cmd; - [errs.message, errs.identifier] = lasterr (); [res{:}] = error_handler (errs, argsc{:}); end_try_catch endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/configure new/parallel-3.0.3/src/configure --- old/parallel-3.0.2/src/configure 2015-07-16 17:56:46.000000000 +0200 +++ new/parallel-3.0.3/src/configure 2015-10-29 14:16:24.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for parallel 3.0.2. +# Generated by GNU Autoconf 2.69 for parallel 3.0.3. # # Report bugs to <i7tiol@t-online.de>. # @@ -580,8 +580,8 @@ # Identity of this package. PACKAGE_NAME='parallel' PACKAGE_TARNAME='parallel' -PACKAGE_VERSION='3.0.2' -PACKAGE_STRING='parallel 3.0.2' +PACKAGE_VERSION='3.0.3' +PACKAGE_STRING='parallel 3.0.3' PACKAGE_BUGREPORT='i7tiol@t-online.de' PACKAGE_URL='' @@ -625,12 +625,12 @@ ac_subst_vars='LTLIBOBJS HAVE_GETPASS LIBOBJS -EGREP -GREP -CPP HAVE_GNUTLS_EXTRA HAVE_GNUTLS PKG_CONFIG +EGREP +GREP +CPP MKOCTFILE ac_ct_CC CFLAGS @@ -1236,7 +1236,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures parallel 3.0.2 to adapt to many kinds of systems. +\`configure' configures parallel 3.0.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1297,7 +1297,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of parallel 3.0.2:";; + short | recursive ) echo "Configuration of parallel 3.0.3:";; esac cat <<\_ACEOF @@ -1379,7 +1379,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -parallel configure 3.0.2 +parallel configure 3.0.3 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1469,52 +1469,6 @@ } # ac_fn_c_try_compile -# ac_fn_c_try_link LINENO -# ----------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link - # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. @@ -1716,6 +1670,52 @@ } # ac_fn_c_check_header_compile +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache @@ -1970,7 +1970,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by parallel $as_me 3.0.2, which was +It was created by parallel $as_me 3.0.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3409,183 +3409,6 @@ # Checks for libraries. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5 -$as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; } -if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgnutls $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gnutls_global_init (); -int -main () -{ -return gnutls_global_init (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_gnutls_gnutls_global_init=yes -else - ac_cv_lib_gnutls_gnutls_global_init=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5 -$as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; } -if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGNUTLS 1 -_ACEOF - - LIBS="-lgnutls $LIBS" - -fi - -if test "x$ac_cv_lib_gnutls_gnutls_global_init" = "xyes"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PKG_CONFIG"; then - ac_cv_prog_PKG_CONFIG="$PKG_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_PKG_CONFIG="pkg-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 -PKG_CONFIG=$ac_cv_prog_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - if test -z "$PKG_CONFIG"; then - HAVE_GNUTLS=no - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled since pkg-config not found" >&5 -$as_echo "$as_me: WARNING: TLS disabled since pkg-config not found" >&2;} - else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <gnutls/gnutls.h> - #include <stdio.h> -int -main () -{ -printf ("%u", gnutls_srp_2048_group_prime.size); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h - - HAVE_GNUTLS=yes - -else - HAVE_GNUTLS=no - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled since symbol gnutls_srp_2048_group_prime not found in gnutls library - built with --disable-srp-authentication?" >&5 -$as_echo "$as_me: WARNING: TLS disabled since symbol gnutls_srp_2048_group_prime not found in gnutls library - built with --disable-srp-authentication?" >&2;} -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init_extra in -lgnutls-extra" >&5 -$as_echo_n "checking for gnutls_global_init_extra in -lgnutls-extra... " >&6; } -if ${ac_cv_lib_gnutls_extra_gnutls_global_init_extra+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lgnutls-extra $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gnutls_global_init_extra (); -int -main () -{ -return gnutls_global_init_extra (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_gnutls_extra_gnutls_global_init_extra=yes -else - ac_cv_lib_gnutls_extra_gnutls_global_init_extra=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_extra_gnutls_global_init_extra" >&5 -$as_echo "$ac_cv_lib_gnutls_extra_gnutls_global_init_extra" >&6; } -if test "x$ac_cv_lib_gnutls_extra_gnutls_global_init_extra" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBGNUTLS_EXTRA 1 -_ACEOF - - LIBS="-lgnutls-extra $LIBS" - -fi - - if test "x$ac_cv_lib_gnutls_extra_gnutls_global_init_extra" = "xyes"; then - $as_echo "#define HAVE_LIBGNUTLS_EXTRA 1" >>confdefs.h - - HAVE_GNUTLS_EXTRA=yes - - else - HAVE_GNUTLS_EXTRA=no - - fi -else - HAVE_GNUTLS=no - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled since no gnutls library found" >&5 -$as_echo "$as_me: WARNING: TLS disabled since no gnutls library found" >&2;} -fi - -# Checks for header files. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3983,6 +3806,184 @@ done +ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" +if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : + +fi + + +if test "x$ac_cv_header_gnutls_gnutls_h" = "xno"; then + as_fn_error $? "gnutls/gnutls.h not found or not compilable" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5 +$as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; } +if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgnutls $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gnutls_global_init (); +int +main () +{ +return gnutls_global_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gnutls_gnutls_global_init=yes +else + ac_cv_lib_gnutls_gnutls_global_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5 +$as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; } +if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then : + echo -n "" +fi + +if test "x$ac_cv_lib_gnutls_gnutls_global_init" = "xyes"; then + LIBS="-lgnutls $LIBS" + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-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_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$PKG_CONFIG"; then + ac_cv_prog_PKG_CONFIG="$PKG_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_PKG_CONFIG="pkg-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 +PKG_CONFIG=$ac_cv_prog_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test -z "$PKG_CONFIG"; then + HAVE_GNUTLS=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled since pkg-config not found" >&5 +$as_echo "$as_me: WARNING: TLS disabled since pkg-config not found" >&2;} + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <gnutls/gnutls.h> + #include <stdio.h> +int +main () +{ +printf ("%u", gnutls_srp_2048_group_prime.size); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h + + HAVE_GNUTLS=yes + +else + HAVE_GNUTLS=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled since symbol gnutls_srp_2048_group_prime not found in gnutls library - built with --disable-srp-authentication?" >&5 +$as_echo "$as_me: WARNING: TLS disabled since symbol gnutls_srp_2048_group_prime not found in gnutls library - built with --disable-srp-authentication?" >&2;} +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init_extra in -lgnutls-extra" >&5 +$as_echo_n "checking for gnutls_global_init_extra in -lgnutls-extra... " >&6; } +if ${ac_cv_lib_gnutls_extra_gnutls_global_init_extra+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgnutls-extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gnutls_global_init_extra (); +int +main () +{ +return gnutls_global_init_extra (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_gnutls_extra_gnutls_global_init_extra=yes +else + ac_cv_lib_gnutls_extra_gnutls_global_init_extra=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_extra_gnutls_global_init_extra" >&5 +$as_echo "$ac_cv_lib_gnutls_extra_gnutls_global_init_extra" >&6; } +if test "x$ac_cv_lib_gnutls_extra_gnutls_global_init_extra" = xyes; then : + echo -n "" +fi + + if test "x$ac_cv_lib_gnutls_extra_gnutls_global_init_extra" = "xyes"; then + LIBS="-lgnutls-extra $LIBS" + $as_echo "#define HAVE_LIBGNUTLS_EXTRA 1" >>confdefs.h + + HAVE_GNUTLS_EXTRA=yes + + else + HAVE_GNUTLS_EXTRA=no + + fi +else + HAVE_GNUTLS=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled since no gnutls library found" >&5 +$as_echo "$as_me: WARNING: TLS disabled since no gnutls library found" >&2;} +fi + +# Checks for header files. for ac_header in arpa/inet.h fcntl.h limits.h malloc.h sys/malloc.h netdb.h netinet/in.h stdio_ext.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` @@ -5118,7 +5119,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by parallel $as_me 3.0.2, which was +This file was extended by parallel $as_me 3.0.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5180,7 +5181,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -parallel config.status 3.0.2 +parallel config.status 3.0.3 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/configure.ac new/parallel-3.0.3/src/configure.ac --- old/parallel-3.0.2/src/configure.ac 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/configure.ac 2015-10-29 14:16:11.000000000 +0100 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.62) -AC_INIT(parallel, 3.0.2, i7tiol@t-online.de) +AC_INIT(parallel, 3.0.3, i7tiol@t-online.de) AC_CONFIG_SRCDIR([pconnect.cc]) AC_CONFIG_HEADERS([config.h]) @@ -12,8 +12,13 @@ AC_CHECK_PROG(MKOCTFILE, mkoctfile, mkoctfile) # Checks for libraries. -AC_CHECK_LIB([gnutls], [gnutls_global_init], []) +AC_CHECK_HEADER([gnutls/gnutls.h]) +if test "x$ac_cv_header_gnutls_gnutls_h" = "xno"; then + AC_MSG_ERROR([gnutls/gnutls.h not found or not compilable]) +fi +AC_CHECK_LIB([gnutls], [gnutls_global_init], [[echo -n ""]]) if test "x$ac_cv_lib_gnutls_gnutls_global_init" = "xyes"; then + LIBS="-lgnutls $LIBS" AC_CHECK_PROG(PKG_CONFIG, pkg-config, pkg-config) if test -z "$PKG_CONFIG"; then AC_SUBST([HAVE_GNUTLS], [no]) @@ -28,8 +33,9 @@ [AC_SUBST([HAVE_GNUTLS], [no]) AC_MSG_WARN([TLS disabled since symbol gnutls_srp_2048_group_prime not found in gnutls library - built with --disable-srp-authentication?])]) fi - AC_CHECK_LIB([gnutls-extra], [gnutls_global_init_extra], []) + AC_CHECK_LIB([gnutls-extra], [gnutls_global_init_extra], [[echo -n ""]]) if test "x$ac_cv_lib_gnutls_extra_gnutls_global_init_extra" = "xyes"; then + LIBS="-lgnutls-extra $LIBS" AC_DEFINE([HAVE_LIBGNUTLS_EXTRA], 1) AC_SUBST([HAVE_GNUTLS_EXTRA], [yes]) else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/network_get_info.cc new/parallel-3.0.3/src/network_get_info.cc --- old/parallel-3.0.2/src/network_get_info.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/network_get_info.cc 2015-10-29 14:16:11.000000000 +0100 @@ -48,10 +48,26 @@ DEFUN_DLD (network_get_info, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} network_get_info (@var{connections})\n\ +@deftypefn {Loadable Function} {} network_get_info (@var{connections})\n\ Return an informational structure-array with one entry for each machine specified by @var{connections}.\n\ -This function can only be successfully called at the client machine. See @code{pconnect} for a description of the @var{connections} variable. @var{connections} can contain all connections of the network, a subset of them, or a single connection. For the local machine (client), if contained in @var{connections}, some fields of the returned structure may be empty.\n\n\ -The fields of the returned structure are @code{local_machine}: true for the connection representing the local machine, @code{nproc}: number of usable processors of the machine, @code{nlocaljobs}: configured number of local processes on the machine, @code{peername}: name of the machine (empty for local machine), @code{open}: true if the connection is open, @code{network_id}: uuid of the network, @code{real_node_id}: internal id assigned to node, @code{0} for client, servers starting with @code{1}.\n\n\ +\n\ +This function can only be successfully called at the client\n\ +machine. See @code{pconnect} for a description of the\n\ +@var{connections} variable. @var{connections} can contain all\n\ +connections of the network, a subset of them, or a single\n\ +connection. For the local machine (client), if contained in\n\ +@var{connections}, some fields of the returned structure may be\n\ +empty.\n\ +\n\ +The fields of the returned structure are @code{local_machine}: true\n\ +for the connection representing the local machine, @code{nproc}:\n\ +number of usable processors of the machine, @code{nlocaljobs}:\n\ +configured number of local processes on the machine, @code{peername}:\n\ +name of the machine (empty for local machine), @code{open}: true if\n\ +the connection is open, @code{network_id}: uuid of the network,\n\ +@code{real_node_id}: internal id assigned to node, @code{0} for\n\ +client, servers starting with @code{1}.\n\ +\n\ @seealso{pconnect, pserver, reval, psend, precv, sclose, parallel_generate_srp_data, select_sockets}\n\ @end deftypefn") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/network_set.cc new/parallel-3.0.3/src/network_set.cc --- old/parallel-3.0.2/src/network_set.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/network_set.cc 2015-10-29 14:16:11.000000000 +0100 @@ -48,10 +48,20 @@ DEFUN_DLD (network_set, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} network_set (@var{connections}, @var{key}, @var{val})\n\ +@deftypefn {Loadable Function} {} network_set (@var{connections}, @var{key}, @var{val})\n\ Set the property named by @var{key} to the value @var{val} for each machine specified by @var{connections}.\n\ -This function can only be successfully called at the client machine. See @code{pconnect} for a description of the @var{connections} variable. @var{connections} can contain all connections of the network, a subset of them, or a single connection.\n\n\ -Possible values of @var{key}: @code{'nlocaljobs'}: configured number of local processes on the machine (usable by functions for parallel execution); needs a non-negative integer in @var{val}, @code{0} means not specified.\n\n\ +\n\ +This function can only be successfully called at the client\n\ +machine. See @code{pconnect} for a description of the\n\ +@var{connections} variable. @var{connections} can contain all\n\ +connections of the network, a subset of them, or a single\n\ +connection.\n\ +\n\ +Possible values of @var{key}: @code{'nlocaljobs'}: configured number\n\ +of local processes on the machine (usable by functions for parallel\n\ +execution); needs a non-negative integer in @var{val}, @code{0} means\n\ +not specified.\n\ +\n\ @seealso{pconnect, pserver, reval, psend, precv, sclose, parallel_generate_srp_data, select_sockets}\n\ @end deftypefn") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/parallel_generate_srp_data.cc new/parallel-3.0.3/src/parallel_generate_srp_data.cc --- old/parallel-3.0.2/src/parallel_generate_srp_data.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/parallel_generate_srp_data.cc 2015-10-29 14:16:11.000000000 +0100 @@ -37,9 +37,19 @@ \n\ @code{fullfile (a = pkg (\"prefix\"), \"parallel-srp-data\")}\n\ \n\ -Server files are placed in subdirectory @code{server}. By default, a client authentication file is placed in subdirectory @code{client}. The latter contains the given @var{username} and the cleartext password. You do not nead this file if you prefer to be prompted for username and password at connection time. In this case, you can prevent the client authentication file from being written by passing as the argument @var{options} a structure with a value of @code{false} in the field @code{unattended}.\n\ -\n\ -For authentication, subdir @code{server}, and possibly subdir @code{client}, have to be placed together with their contents at the respective machines. They can either be placed under the directory given by:\n\ +Server files are placed in subdirectory @code{server}. By default, a\n\ +client authentication file is placed in subdirectory\n\ +@code{client}. The latter contains the given @var{username} and the\n\ +cleartext password. You do not need this file if you prefer to be\n\ +prompted for username and password at connection time. In this case,\n\ +you can prevent the client authentication file from being written by\n\ +passing as the argument @var{options} a structure with a value of\n\ +@code{false} in the field @code{unattended}.\n\ +\n\ +For authentication, subdir @code{server}, and possibly subdir\n\ +@code{client}, have to be placed together with their contents at the\n\ +respective machines. They can either be placed under the directory\n\ +given by:\n\ \n\ @code{fullfile (OCTAVE_HOME (), \"share\", \"octave\", \"parallel-srp-data\")}\n\ \n\ @@ -47,9 +57,14 @@ \n\ @code{fullfile (a = pkg (\"prefix\"), \"parallel-srp-data\")}\n\ \n\ -Files in the former directory will take precedence over those in the latter. The contents of the files @code{passwd} and @code{user_passwd} (if present) must be kept secret.\n\ -\n\ -This function zeroizes sensitive data before releasing its memory. Due to usage of external libraries, however, it still can't be excluded that sensitive data is still on the swap device after application shutdown.\n\ +Files in the former directory will take precedence over those in the\n\ +latter. The contents of the files @code{passwd} and @code{user_passwd}\n\ +(if present) must be kept secret.\n\ +\n\ +This function zeroizes sensitive data before releasing its memory. Due\n\ +to usage of external libraries, however, it still can't be excluded\n\ +that sensitive data is still on the swap device after application\n\ +shutdown.\n\ \n\ @seealso{pconnect, pserver, reval, psend, precv, sclose, select_sockets}\n\ @end deftypefn") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/pconnect.cc new/parallel-3.0.3/src/pconnect.cc --- old/parallel-3.0.2/src/pconnect.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/pconnect.cc 2015-10-29 14:16:11.000000000 +0100 @@ -53,15 +53,73 @@ @deftypefn {Loadable Function} {@var{connections} =} pconnect (@var{hosts})\n\ @deftypefnx {Loadable Function} {@var{connections} =} pconnect (@var{hosts}, @var{options})\n\ Connects to a network of parallel cluster servers.\n\ -As a precondition, a server must have been started at each machine of the cluster, see @code{pserver}.\n\n\ -@var{hosts} is a cell-array of strings, holding the names of all server machines. The machines must be unique, and their names must be resolvable to the correct addresses also at each server machine, not only at the client. This means e.g. that the name @code{localhost} is not acceptable (exception: @code{localhost} is acceptable as the first of all names).\n\n\ -Alternatively, but deprecated, @var{hosts} can be given as previously, as a character array with a machine name in each row. If it is given in this way, the first row must contain the name of the client machine (for backwards compatibility), so that there is one row more than the now prefered cell-array @var{hosts} would have entries.\n\n\ -@code{pconnect} returns an opaque variable holding the network connections. This variable can be indexed to obtain a subset of connections or even a single connection. (For backwards compatibility, a second index of @code{:} is allowed, which has no effect). At the first index position is the client machine, so this position does not correspond to a real connection. At the following index positions are the server machines in the same order as specified in the cell-array @var{hosts}. So in the whole the variable of network connections has one position more than the number of servers given in @var{hosts} (except if @var{hosts} was given in the above mentioned deprecated way). You can display the variable of network connections to see what is in it. The variable of network connections, or subsets of it, is passed to the other functions for parallel cluster excecution (@code{reval}, @code{psend}, @code{precv}, @code{sclose}, @code{select_sockets} among others -- see documentation of these functions).\n\n\ -@var{options}: structure of options; field @code{use_tls} is @code{true} by default (TLS with SRP authentication); if set to @code{false}, there will be no encryption or authentication. Field @code{password_file} can be set to an alternative path to the file with authentication information (see below). Field @code{user} can specify the username for authentication; if the username is so specified, no file with authentication information will be used at the client, but the password will be queried from the user.\n\n\ -The client and the server must both use or both not use TLS. If TLS is switched off, different measures must be taken to protect ports 12501 and 12502 at the servers and the client against unauthorized access; e.g. by a firewall or by physical isolation of the network.\n\n\ -For using TLS, authorization data must be present at the server machine. These data can conveniently be generated by @code{parallel_generate_srp_data}. By default, the client authentication file is created in the same run. The helptext of @code{parallel_generate_srp_data} documents the expected locations of the authentication data.\n\n\ -The SRP password will be sent over the encrypted TLS channel from the client to each server, to avoid permanently storing passwords at the server for server-to-server data connections. Due to inevitable usage of external libraries, memory with sensitive data can, however, be on the swap device even after shutdown of the application, both at the client and at the server machines.\n\n\ -Example (let data travel through all machines), assuming @code{pserver} was called on each remote machine and authentication data is present (e.g. generated with @code{parallel_generate_srp_data}):\n\n\ +\n\ +As a precondition, a server must have been started at each machine of\n\ +the cluster, see @code{pserver}.\n\ +\n\ +@var{hosts} is a cell-array of strings, holding the names of all\n\ +server machines. The machines must be unique, and their names must be\n\ +resolvable to the correct addresses also at each server machine, not\n\ +only at the client. This means e.g. that the name @code{localhost} is\n\ +not acceptable (exception: @code{localhost} is acceptable as the first\n\ +of all names).\n\ +\n\ +Alternatively, but deprecated, @var{hosts} can be given as previously,\n\ +as a character array with a machine name in each row. If it is given\n\ +in this way, the first row must contain the name of the client machine\n\ +(for backwards compatibility), so that there is one row more than the\n\ +now preferred cell-array @var{hosts} would have entries.\n\ +\n\ +@code{pconnect} returns an opaque variable holding the network\n\ +connections. This variable can be indexed to obtain a subset of\n\ +connections or even a single connection. (For backwards compatibility,\n\ +a second index of @code{:} is allowed, which has no effect). At the\n\ +first index position is the client machine, so this position does not\n\ +correspond to a real connection. At the following index positions are\n\ +the server machines in the same order as specified in the cell-array\n\ +@var{hosts}. So in the whole the variable of network connections has\n\ +one position more than the number of servers given in @var{hosts}\n\ +(except if @var{hosts} was given in the above mentioned deprecated\n\ +way). You can display the variable of network connections to see what\n\ +is in it. The variable of network connections, or subsets of it, is\n\ +passed to the other functions for parallel cluster excecution\n\ +(@code{reval}, @code{psend}, @code{precv}, @code{sclose},\n\ +@code{select_sockets} among others -- see documentation of these\n\ +functions).\n\ +\n\ +@var{options}: structure of options; field @code{use_tls} is\n\ +@code{true} by default (TLS with SRP authentication); if set to\n\ +@code{false}, there will be no encryption or authentication. Field\n\ +@code{password_file} can be set to an alternative path to the file\n\ +with authentication information (see below). Field @code{user} can\n\ +specify the username for authentication; if the username is so\n\ +specified, no file with authentication information will be used at the\n\ +client, but the password will be queried from the user.\n\ +\n\ +The client and the server must both use or both not use TLS. If TLS is\n\ +switched off, different measures must be taken to protect ports 12501\n\ +and 12502 at the servers and the client against unauthorized access;\n\ +e.g. by a firewall or by physical isolation of the network.\n\ +\n\ +For using TLS, authorization data must be present at the server\n\ +machine. These data can conveniently be generated by\n\ +@code{parallel_generate_srp_data}. By default, the client\n\ +authentication file is created in the same run. The helptext of\n\ +@code{parallel_generate_srp_data} documents the expected locations of\n\ +the authentication data.\n\ +\n\ +The SRP password will be sent over the encrypted TLS channel from the\n\ +client to each server, to avoid permanently storing passwords at the\n\ +server for server-to-server data connections. Due to inevitable usage\n\ +of external libraries, memory with sensitive data can, however, be on\n\ +the swap device even after shutdown of the application, both at the\n\ +client and at the server machines.\n\ +\n\ +Example (let data travel through all machines), assuming\n\ +@code{pserver} was called on each remote machine and authentication\n\ +data is present (e.g. generated with\n\ +@code{parallel_generate_srp_data}):\n\ +\n\ @example\n\ @group\n\ sockets = pconnect (@{'remote.machine.1', 'remote.machine.2'@});\n\ @@ -72,7 +130,8 @@ --> ans = some data\n\ sclose (sockets);\n\ @end group\n\ -@end example\n\n\ +@end example\n\ +\n\ @seealso{pserver, reval, psend, precv, sclose, parallel_generate_srp_data, select_sockets, rfefal}\n\ @end deftypefn") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/precv.cc new/parallel-3.0.3/src/precv.cc --- old/parallel-3.0.2/src/precv.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/precv.cc 2015-10-29 14:16:11.000000000 +0100 @@ -33,11 +33,27 @@ DEFUN_DLD (precv, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} precv (@var{single_connection})\n\ +@deftypefn {Loadable Function} {} precv (@var{single_connection})\n\ Receive a data value from the parallel cluster machine specified by @var{single_connection}.\n\ -This function can be called both at the client machine and (with @code{reval}) at a server machine. @var{single_connection} must be a single connection obtained by indexing the @var{connections} variable. Please see @code{pconnect} for a description of the @var{connections} variable, and @code{pserver} for a description of this variable (named @code{sockets}) at the server side. If @var{single_connection} corresponds to the machine at which @code{precv} was called, an error is thrown.\n\n\ -The value received with @code{precv} must be sent with @code{send} from another machine of the cluster. Note that data can be transfered this way between each pair of machines, even sent by a server and received by a different server.\n\n\ -if @code{precv} is called at the client machine, ac corresponding @code{send} should have been called before at the source machine, otherwise the client will hang.\n\n\ +\n\ +This function can be called both at the client machine and (with\n\ +@code{reval}) at a server machine. @var{single_connection} must be a\n\ +single connection obtained by indexing the @var{connections}\n\ +variable. Please see @code{pconnect} for a description of the\n\ +@var{connections} variable, and @code{pserver} for a description of\n\ +this variable (named @code{sockets}) at the server side. If\n\ +@var{single_connection} corresponds to the machine at which\n\ +@code{precv} was called, an error is thrown.\n\ +\n\ +The value received with @code{precv} must be sent with @code{psend}\n\ +from another machine of the cluster. Note that data can be transferred\n\ +this way between each pair of machines, even sent by a server and\n\ +received by a different server.\n\ +\n\ +If @code{precv} is called at the client machine, a corresponding\n\ +@code{psend} should have been called before at the source machine,\n\ +otherwise the client will hang.\n\ +\n\ @seealso{pconnect, pserver, reval, psend, sclose, parallel_generate_srp_data, select_sockets}\n\ @end deftypefn") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/psend.cc new/parallel-3.0.3/src/psend.cc --- old/parallel-3.0.2/src/psend.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/psend.cc 2015-10-29 14:16:11.000000000 +0100 @@ -36,11 +36,27 @@ DEFUN_DLD (psend, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} psend (@var{value}, @var{connections})\n\ +@deftypefn {Loadable Function} {} psend (@var{value}, @var{connections})\n\ Send the value in variable @var{value} to all parallel cluster machines specified by @var{connections}.\n\ -This function can be called both at the client machine and (with @code{reval}) at a server machine. See @code{pconnect} for a description of the @var{connections} variable, and @code{pserver} for a description of this variable (named @code{sockets}) at the server side. @var{connections} can contain all connections of the network, a subset of them, or a single connection. The machine at which @code{send} was called (client or server), if contained in the @var{connections} variable, is ignored.\n\n\ -The value sent with @code{psend} must be received with @code{recv} at the target machine. Note that values can be sent to each machine, even from a server machine to a different server machine.\n\n\ -If @code{psend} is called at the client machine, a corresponding @code{recv} should have been called before at the target machine, otherwise the client will hang if @var{value} contains large data (which can not be held by the operating systems socket buffers).\n\n\ +\n\ +This function can be called both at the client machine and (with\n\ +@code{reval}) at a server machine. See @code{pconnect} for a\n\ +description of the @var{connections} variable, and @code{pserver} for\n\ +a description of this variable (named @code{sockets}) at the server\n\ +side. @var{connections} can contain all connections of the network, a\n\ +subset of them, or a single connection. The machine at which\n\ +@code{psend} was called (client or server), if contained in the\n\ +@var{connections} variable, is ignored.\n\ +\n\ +The value sent with @code{psend} must be received with @code{precv} at\n\ +the target machine. Note that values can be sent to each machine, even\n\ +from a server machine to a different server machine.\n\ +\n\ +If @code{psend} is called at the client machine, a corresponding\n\ +@code{precv} should have been called before at the target machine,\n\ +otherwise the client will hang if @var{value} contains large data\n\ +(which can not be held by the operating systems socket buffers).\n\ +\n\ @seealso{pconnect, pserver, reval, precv, sclose, parallel_generate_srp_data, select_sockets}\n\ @end deftypefn") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/pserver.cc new/parallel-3.0.3/src/pserver.cc --- old/parallel-3.0.2/src/pserver.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/pserver.cc 2015-10-29 14:16:11.000000000 +0100 @@ -234,18 +234,65 @@ DEFUN_DLD (pserver, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} pserver ()\n\ -@deftypefnx {Loadable Function} pserver (@var{options})\n\ +@deftypefn {Loadable Function} {} pserver ()\n\ +@deftypefnx {Loadable Function} {} pserver (@var{options})\n\ This function starts a server of the parallel cluster and should be called once at any server machine.\n\ -It is important to call this function in a way assuring that Octave is quit as soon as the function returns, i.e. call it e.g. like @code{octave --eval \"pserver\"} or @code{octave --eval \"pserver (struct ('fieldname', value))\"}.\n\n\ -If a directory path corresponding to the current directory of the client exists on the server machine, it will be used as the servers current directory for the respective client (multiple clients are possible). Otherwise, @code{/tmp} will be used. The Octave functions the server is supposed to call and the files it possibly has to access must be available at the server machine. This can e.g. be achieved by having the server machine mount a network file system (which is outside the scope of this package documentation).\n\n\ -The parent server process can only be terminated by sending it a signal. The pid of this process, as long as it is running, will be stored in the file @code{/tmp/.octave-<hostname>.pid}.\n\n\ -If a connection is accepted from a client, the server collects a network identifier and the names of all server machines of the network from the client. Then, connections are automatically established between all machines of the network. Data exchange will be possible between all machines (client or server) in both directions. Commands can only be sent from the client to any server.\n\n\ -The opaque variable holding the network connections, in the same order as in the corresponding variable returned by @code{pconnect}, is accessible under the variable name @code{sockets} at the server side. Do not overwrite or clear this variable. The own server machine will also be contained at some index position of this variable, but will not correspond to a real connection. See @code{pconnect} for further information.\n\n\ -@var{options}: structure of options; field @code{use_tls} is @code{true} by default (TLS with SRP authentication); if set to @code{false}, there will be no encryption or authentication. Field @code{auth_file} can be set to an alternative path to the file with authentication information (see below).\n\n\ -The client and the server must both use or both not use TLS. If TLS is switched off, different measures must be taken to protect ports 12501 and 12502 at the servers and the client against unauthorized access; e.g. by a firewall or by physical isolation of the network.\n\n\ -For using TLS, authorization data must be present at the server machine. These data can conveniently be generated by @code{parallel_generate_srp_data}; the helptext of the latter function documents the expected location of these data.\n\n\ -The SRP password will be sent over the encrypted TLS channel from the client to each server, to avoid permanently storing passwords at the server for server-to-server data connections. Due to inevitable usage of external libraries, memory with sensitive data can, however, be on the swap device even after shutdown of the application.\n\n\ +\n\ +It is important to call this function in a way assuring that Octave is\n\ +quit as soon as the function returns, i.e. call it e.g. like\n\ +@code{octave --eval \"pserver\"} or @code{octave --eval \"pserver\n\ +(struct ('fieldname', value))\"}.\n\ +\n\ +If a directory path corresponding to the current directory of the\n\ +client exists on the server machine, it will be used as the servers\n\ +current directory for the respective client (multiple clients are\n\ +possible). Otherwise, @code{/tmp} will be used. The Octave functions\n\ +the server is supposed to call and the files it possibly has to access\n\ +must be available at the server machine. This can e.g. be achieved by\n\ +having the server machine mount a network file system (which is\n\ +outside the scope of this package documentation).\n\ +\n\ +The parent server process can only be terminated by sending it a\n\ +signal. The pid of this process, as long as it is running, will be\n\ +stored in the file @code{/tmp/.octave-<hostname>.pid}.\n\ +\n\ +If a connection is accepted from a client, the server collects a\n\ +network identifier and the names of all server machines of the network\n\ +from the client. Then, connections are automatically established\n\ +between all machines of the network. Data exchange will be possible\n\ +between all machines (client or server) in both directions. Commands\n\ +can only be sent from the client to any server.\n\ +\n\ +The opaque variable holding the network connections, in the same order\n\ +as in the corresponding variable returned by @code{pconnect}, is\n\ +accessible under the variable name @code{sockets} at the server\n\ +side. Do not overwrite or clear this variable. The own server machine\n\ +will also be contained at some index position of this variable, but\n\ +will not correspond to a real connection. See @code{pconnect} for\n\ +further information.\n\ +\n\ +@var{options}: structure of options; field @code{use_tls} is\n\ +@code{true} by default (TLS with SRP authentication); if set to\n\ +@code{false}, there will be no encryption or authentication. Field\n\ +@code{auth_file} can be set to an alternative path to the file with\n\ +authentication information (see below).\n\ +\n\ +The client and the server must both use or both not use TLS. If TLS is\n\ +switched off, different measures must be taken to protect ports 12501\n\ +and 12502 at the servers and the client against unauthorized access;\n\ +e.g. by a firewall or by physical isolation of the network.\n\ +\n\ +For using TLS, authorization data must be present at the server\n\ +machine. These data can conveniently be generated by\n\ +@code{parallel_generate_srp_data}; the helptext of the latter function\n\ +documents the expected location of these data.\n\ +\n\ +The SRP password will be sent over the encrypted TLS channel from the\n\ +client to each server, to avoid permanently storing passwords at the\n\ +server for server-to-server data connections. Due to inevitable usage\n\ +of external libraries, memory with sensitive data can, however, be on\n\ +the swap device even after shutdown of the application.\n\ +\n\ @seealso{pconnect, reval, psend, precv, sclose, parallel_generate_srp_data, select_sockets}\n\ @end deftypefn") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/reval.cc new/parallel-3.0.3/src/reval.cc --- old/parallel-3.0.2/src/reval.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/reval.cc 2015-10-29 14:16:11.000000000 +0100 @@ -48,9 +48,19 @@ DEFUN_DLD (reval, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} reval (@var{commands}, @var{connections})\n\ +@deftypefn {Loadable Function} {} reval (@var{commands}, @var{connections})\n\ Evaluate @var{commands} at all remote hosts specified by @var{connections}.\n\ -This function can only be successfully called at the client machine. @var{commands} must be a string containing Octave commands suitable for execution with Octaves @code{eval()} function. See @code{pconnect} for a description of the @var{connections} variable. @var{connections} can contain all connections of the network, a subset of them, or a single connection. The local machine (client), if contained in @var{connections}, is ignored. @var{commands} is executed in the same way at each specified machine.\n\n\ +\n\ +This function can only be successfully called at the client\n\ +machine. @var{commands} must be a string containing Octave commands\n\ +suitable for execution with Octaves @code{eval()} function. See\n\ +@code{pconnect} for a description of the @var{connections}\n\ +variable. @var{connections} can contain all connections of the\n\ +network, a subset of them, or a single connection. The local machine\n\ +(client), if contained in @var{connections}, is\n\ +ignored. @var{commands} is executed in the same way at each specified\n\ +machine.\n\ +\n\ @seealso{pconnect, pserver, psend, precv, sclose, parallel_generate_srp_data, select_sockets}\n\ @end deftypefn") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/sclose.cc new/parallel-3.0.3/src/sclose.cc --- old/parallel-3.0.2/src/sclose.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/sclose.cc 2015-10-29 14:16:11.000000000 +0100 @@ -48,9 +48,13 @@ DEFUN_DLD (sclose, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} sclose (@var{connections})\n\ +@deftypefn {Loadable Function} {} sclose (@var{connections})\n\ Close the parallel cluster network to which @var{connections} belongs.\n\ -See @code{pconnect} for a description of the @var{connections} variable. All connections of the network are closed, even if @var{connections} contains only a subnet or a single connection.\n\n\ +\n\ +See @code{pconnect} for a description of the @var{connections}\n\ +variable. All connections of the network are closed, even if\n\ +@var{connections} contains only a subnet or a single connection.\n\ +\n\ @seealso{pconnect, pserver, reval, psend, precv, parallel_generate_srp_data, select_sockets}\n\ @end deftypefn") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/select.cc new/parallel-3.0.3/src/select.cc --- old/parallel-3.0.2/src/select.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/select.cc 2015-10-29 14:16:11.000000000 +0100 @@ -30,6 +30,7 @@ "-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@var{n}, @var{ridx}, @var{widx}, @var{eidx}] =} select (@var{read_fids}, @var{write_fids}, @var{except_fids}, @var{timeout}[, @var{nfds}])\n\ Calls Unix @code{select}, see the respective manual.\n\ +\n\ The following interface was chosen:\n\ @var{read_fids}, @var{write_fids}, @var{except_fids}: vectors of stream-ids.\n\ @var{timeout}: seconds, negative for infinite.\n\ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/parallel-3.0.2/src/select_sockets.cc new/parallel-3.0.3/src/select_sockets.cc --- old/parallel-3.0.2/src/select_sockets.cc 2015-07-16 17:56:32.000000000 +0200 +++ new/parallel-3.0.3/src/select_sockets.cc 2015-10-29 14:16:11.000000000 +0100 @@ -42,16 +42,34 @@ DEFUN_DLD (select_sockets, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} select_sockets (@var{connections}, @var{timeout})\n\ -@deftypefnx {Loadable Function} select_sockets (@var{connections}, @var{timeout}, @var{nfds})\n\ -Calls Unix @code{select} for data connections in a parallel cluster.\n\n\ -This function is for advanced usage (and therefore has minimal documentation), typically the programming of schedulers. It can be called at the client or at a server.\n\n\ -@var{connections}: valid connections object (see @code{pconnect} and @code{pserver}, possibly indexed).\n\n\ -@var{timeout}: seconds, negative for infinite.\n\n\ -@var{nfds}: Passed to Unix @code{select} as first argument, see documentation of Uix @code{select}. Default: @code{FD_SETSIZE} (platform specific).\n\n\ -An error is returned if nfds or a watched filedescriptor plus one exceeds FD_SETSIZE.\n\n\ -Returns an index vector to @var{connections} indicating connections with pending input, readable with @code{precv}.\n\n\ -If called at the client, the command connections are included into the UNIX @code{select} call and checked for error flags, and @code{select_sockets} returns an error if a flag for a remote error is received.\n\n\ +@deftypefn {Loadable Function} {} select_sockets (@var{connections}, @var{timeout})\n\ +@deftypefnx {Loadable Function} {} select_sockets (@var{connections}, @var{timeout}, @var{nfds})\n\ +Calls Unix @code{select} for data connections in a parallel cluster.\n\ +\n\ +This function is for advanced usage (and therefore has minimal\n\ +documentation), typically the programming of schedulers. It can be\n\ +called at the client or at a server.\n\ +\n\ +@var{connections}: valid connections object (see @code{pconnect} and\n\ +@code{pserver}, possibly indexed).\n\ +\n\ +@var{timeout}: seconds, negative for infinite.\n\ +\n\ +@var{nfds}: Passed to Unix @code{select} as first argument, see\n\ +documentation of Uix @code{select}. Default: @code{FD_SETSIZE}\n\ +(platform specific).\n\ +\n\ +An error is returned if nfds or a watched filedescriptor plus one\n\ +exceeds FD_SETSIZE.\n\ +\n\ +Returns an index vector to @var{connections} indicating connections\n\ +with pending input, readable with @code{precv}.\n\ +\n\ +If called at the client, the command connections are included into the\n\ +UNIX @code{select} call and checked for error flags, and\n\ +@code{select_sockets} returns an error if a flag for a remote error is\n\ +received.\n\ +\n\ @seealso{pconnect, pserver, reval, psend, precv, sclose, parallel_generate_srp_data}\n\ @end deftypefn") {
participants (1)
-
root@hilbert.suse.de