23094058 Upgrade libssh2 to 1.7.0 s11u3-sru
authorYiteng Zhang <yiteng.zhang@oracle.com>
Wed, 26 Oct 2016 15:44:32 -0700
branchs11u3-sru
changeset 7164 b2abbab8e6d5
parent 7163 ee09edbd5876
child 7165 a091ecf5f82c
23094058 Upgrade libssh2 to 1.7.0 23133372 problem in LIBRARY/LIBSSH2 23133401 problem in LIBRARY/LIBSSH2
components/libssh2/Makefile
components/libssh2/libssh2.license
components/libssh2/libssh2.p5m
--- a/components/libssh2/Makefile	Wed Oct 26 13:19:33 2016 -0700
+++ b/components/libssh2/Makefile	Wed Oct 26 15:44:32 2016 -0700
@@ -23,16 +23,16 @@
 include ../../make-rules/shared-macros.mk
 
 COMPONENT_NAME=		libssh2
-COMPONENT_VERSION=	1.4.2
+COMPONENT_VERSION=	1.7.0
 COMPONENT_PROJECT_URL=	http://www.libssh2.org/
 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH=	\
-    sha256:418c09061fb9c3c26fec391a35a062780b21b3199885e3b27054619582469bd3
+	sha256:e4561fd43a50539a8c2ceb37841691baf03ecb7daf043766da1b112e4280d584
 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
 COMPONENT_BUGDB=	library/libssh2
 
-TPNO=			11357
+TPNO=			27245
 
 include $(WS_MAKE_RULES)/prep.mk
 include $(WS_MAKE_RULES)/configure.mk
@@ -49,6 +49,14 @@
          $(GSED) -i -e 's|3|3ssh2|g' \
          		$(PROTOUSRSHAREMAN3DIR)/libssh2_sftp_fstatvfs.3;
 
+# Needed for "gmake test" to work successfully.
+# If SHELLOPTS is exported (as it is by the userland makefiles),
+# then all shell options get exported to child invocations of bash,
+# which results in test failures due to nounset and xtrace being
+# set unexpectedly, and errors such as "$1: unbound variable" and
+# diffs failing due to script tracing in output files.
+unexport SHELLOPTS 
+
 # common targets
 build:		$(BUILD_32_and_64)
 
--- a/components/libssh2/libssh2.license	Wed Oct 26 13:19:33 2016 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/* Copyright (c) 2004-2007 Sara Golemon <[email protected]>
- * Copyright (c) 2005,2006 Mikhail Gusarov <[email protected]>
- * Copyright (c) 2006-2007 The Written Word, Inc.
- * Copyright (c) 2007 Eli Fant <[email protected]>
- * Copyright (c) 2009 Daniel Stenberg
- * Copyright (C) 2008, 2009 Simon Josefsson
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms,
- * with or without modification, are permitted provided
- * that the following conditions are met:
- *
- *   Redistributions of source code must retain the above
- *   copyright notice, this list of conditions and the
- *   following disclaimer.
- *
- *   Redistributions in binary form must reproduce the above
- *   copyright notice, this list of conditions and the following
- *   disclaimer in the documentation and/or other materials
- *   provided with the distribution.
- *
- *   Neither the name of the copyright holder nor the names
- *   of any other contributors may be used to endorse or
- *   promote products derived from this software without
- *   specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
- * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
- * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
- * OF SUCH DAMAGE.
- */
--- a/components/libssh2/libssh2.p5m	Wed Oct 26 13:19:33 2016 -0700
+++ b/components/libssh2/libssh2.p5m	Wed Oct 26 15:44:32 2016 -0700
@@ -134,6 +134,7 @@
 file path=usr/share/man/man3ssh2/libssh2_publickey_remove_ex.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_publickey_shutdown.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_scp_recv.3ssh2
+file path=usr/share/man/man3ssh2/libssh2_scp_recv2.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_scp_send.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_scp_send64.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_scp_send_ex.3ssh2
@@ -148,6 +149,7 @@
 file path=usr/share/man/man3ssh2/libssh2_session_free.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_get_blocking.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_get_timeout.3ssh2
+file path=usr/share/man/man3ssh2/libssh2_session_handshake.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_hostkey.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_init.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_init_ex.3ssh2
@@ -156,6 +158,7 @@
 file path=usr/share/man/man3ssh2/libssh2_session_method_pref.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_methods.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_set_blocking.3ssh2
+file path=usr/share/man/man3ssh2/libssh2_session_set_last_error.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_set_timeout.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_startup.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_session_supported_algs.3ssh2
@@ -166,6 +169,7 @@
 file path=usr/share/man/man3ssh2/libssh2_sftp_fstat.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_sftp_fstat_ex.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_sftp_fstatvfs.3ssh2
+file path=usr/share/man/man3ssh2/libssh2_sftp_fsync.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_sftp_get_channel.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_sftp_init.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_sftp_last_error.3ssh2
@@ -212,5 +216,6 @@
 file path=usr/share/man/man3ssh2/libssh2_userauth_publickey.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_userauth_publickey_fromfile.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_userauth_publickey_fromfile_ex.3ssh2
+file path=usr/share/man/man3ssh2/libssh2_userauth_publickey_frommemory.3ssh2
 file path=usr/share/man/man3ssh2/libssh2_version.3ssh2
-license libssh2.license license=BSD
+license COPYING license=BSD