Hello community, here is the log from the commit of package tls for openSUSE:Factory checked in at 2018-02-01 21:31:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tls (Old) and /work/SRC/openSUSE:Factory/.tls.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tls" Thu Feb 1 21:31:25 2018 rev:21 rq:571800 version:1.7.14 Changes: -------- --- /work/SRC/openSUSE:Factory/tls/tls.changes 2015-10-12 10:02:34.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.tls.new/tls.changes 2018-02-01 21:31:54.346007980 +0100 @@ -1,0 +2,13 @@ +Thu Feb 1 17:56:43 UTC 2018 - [email protected] + +- Fix the logic to fail on unexpected testsuite failures. + +------------------------------------------------------------------- +Fri Dec 29 10:15:09 UTC 2017 - [email protected] + +- Update to version 1.7.14 for compatibility with OpenSSL 1.1. +- Add tls-fix-channel-state.patch to prevent implicit changes of + encoding, translation and blocking mode when importing a socket. + https://core.tcl.tk/tcltls/info/f798e2ea12 + +------------------------------------------------------------------- Old: ---- tls1.6.7-src.tar.gz New: ---- tcltls-1.7.14.tar.gz tls-fix-channel-state.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tls.spec ++++++ --- /var/tmp/diff_new_pack.hJNtH9/_old 2018-02-01 21:31:54.909981596 +0100 +++ /var/tmp/diff_new_pack.hJNtH9/_new 2018-02-01 21:31:54.909981596 +0100 @@ -1,7 +1,7 @@ # # spec file for package tls # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,52 +17,42 @@ Name: tls -BuildRequires: openssl-devel -BuildRequires: tcl-devel Summary: Tcl Binding for the OpenSSL Library License: BSD-3-Clause Group: Development/Libraries/Tcl -Version: 1.6.7 +Version: 1.7.14 Release: 0 Url: http://tls.sourceforge.net -Source0: %name%version-src.tar.gz +Source0: tcl%name-%version.tar.gz +Patch0: tls-fix-channel-state.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(tcl) %description -This extension provides a generic binding for Tcl to OpenSSL, utilizing -the new Tcl_StackChannel API for Tcl 8.2 and higher. The sockets behave +This Tcl extension provides a generic binding to OpenSSL, utilizing +the Tcl_StackChannel API for Tcl 8.2 and higher. The sockets behave exactly the same as channels created using Tcl's built-in socket command with additional options for controlling the SSL session. - - -Authors: --------- - Matt Newman <[email protected]> - Jeff Hobbs <[email protected]> - %prep -%setup -q -n %name%version +%setup -q -n tcl%name-%version +%patch0 %build -CFLAGS="$RPM_OPT_FLAGS" \ -./configure \ - --libdir=%_libdir \ - --prefix=/usr \ - --with-ssl-dir=/usr \ - --with-tcl=%_libdir -make +%configure \ + --enable-deterministic \ + --enable-ssl-fastpath +make %{?_smp_mflags} %check -# Disable for now, because changed defaults in openssl make it fail -#exit 0 cat > known-failures <<EOF ciphers-1.4 ciphers-1.3 tls-bug58-1.0 EOF make test 2>&1 | tee testresults -grep FAILED testresults | grep -Fqvf known-failures && exit 1 +grep FAILED testresults | grep -Fqvf known-failures && exit 1 ||: %install make install \ @@ -70,9 +60,6 @@ PKG_HEADERS= \ libdir=%_libdir/tcl -%clean -rm -rf %buildroot - %files %defattr(-,root,root,-) %doc ChangeLog README.txt license.terms tls.htm ++++++ tls-fix-channel-state.patch ++++++ --- tls.c.orig +++ tls.c @@ -880,14 +880,6 @@ ImportObjCmd(clientData, interp, objc, o statePtr->ctx = ctx; - /* - * We need to make sure that the channel works in binary (for the - * encryption not to get goofed up). - * We only want to adjust the buffering in pre-v2 channels, where - * each channel in the stack maintained its own buffers. - */ - Tcl_SetChannelOption(interp, chan, "-translation", "binary"); - Tcl_SetChannelOption(interp, chan, "-blocking", "true"); dprintf("Consuming Tcl channel %s", Tcl_GetChannelName(chan)); statePtr->self = Tcl_StackChannel(interp, Tls_ChannelType(), (ClientData) statePtr, (TCL_READABLE | TCL_WRITABLE), chan); dprintf("Created channel named %s", Tcl_GetChannelName(statePtr->self));
