Hello community,

here is the log from the commit of package python-Twisted for openSUSE:Factory 
checked in at 2020-12-12 20:29:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Twisted (Old)
 and      /work/SRC/openSUSE:Factory/.python-Twisted.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Twisted"

Sat Dec 12 20:29:47 2020 rev:42 rq:854874 version:20.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Twisted/python-Twisted.changes    
2020-10-29 09:47:57.464148872 +0100
+++ /work/SRC/openSUSE:Factory/.python-Twisted.new.2328/python-Twisted.changes  
2020-12-12 20:32:14.269844120 +0100
@@ -1,0 +2,11 @@
+Fri Dec 11 00:02:02 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Add twisted-pr1369-remove-pyopenssl-npn.patch to support 
+  pyOpenSSL 20
+- Add twisted-pr1487-increase-ffdh-keysize.patch to support
+  crpytography 3.3
+- Fix the update-alternatives setup
+  * manpages were cloned but never registerd with u-a
+  * install alternatives as master and slave links now
+
+-------------------------------------------------------------------

New:
----
  twisted-pr1369-remove-pyopenssl-npn.patch
  twisted-pr1487-increase-ffdh-keysize.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Twisted.spec ++++++
--- /var/tmp/diff_new_pack.ecLHWI/_old  2020-12-12 20:32:15.349845247 +0100
+++ /var/tmp/diff_new_pack.ecLHWI/_new  2020-12-12 20:32:15.353845250 +0100
@@ -36,6 +36,10 @@
 # PATCH-FIX-UPSTREAM no-test_successResultOfWithFailureHasTraceback.patch 
https://twistedmatrix.com/trac/ticket/9665 mc...@suse.com
 # skip over the test test_successResultOfWithFailureHasTraceback
 Patch8:         no-test_successResultOfWithFailureHasTraceback.patch
+# PATCH-FIX-UPSTREAM gh#twisted/twisted#1369 
https://twistedmatrix.com/trac/ticket/9928
+Patch9:         twisted-pr1369-remove-pyopenssl-npn.patch
+# PATCH-FIX-UPSTRAM gh#twisted/twisted#1487 
https://twistedmatrix.com/trac/ticket/10061
+Patch10:        twisted-pr1487-increase-ffdh-keysize.patch
 BuildRequires:  %{python_module Automat >= 0.3.0}
 BuildRequires:  %{python_module PyHamcrest >= 1.9.0}
 BuildRequires:  %{python_module appdirs >= 1.4.0}
@@ -129,24 +133,15 @@
 %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m 
twisted.trial twisted
 
 %post
-%python_install_alternative twist
-%python_install_alternative trial
-%python_install_alternative tkconch
-%python_install_alternative pyhtmlizer
-%python_install_alternative conch
-%python_install_alternative ckeygen
-%python_install_alternative cftp
-%python_install_alternative twistd
+# these were master alternatives until Dec 2020. Remove before the install as 
slave links
+for f in cftp ckeygen conch pyhtmlizer tkconch trial twist; do
+  (update-alternatives --quiet --list $f 2>&1 >/dev/null) && 
update-alternatives --remove-all $f
+done
+%{python_install_alternative twistd cftp ckeygen conch pyhtmlizer tkconch 
trial twist 
+                             twistd.1 cftp.1 ckeygen.1 conch.1 pyhtmlizer.1 
tkconch.1 trial.1}
 
 %postun
-%python_uninstall_alternative twist
-%python_uninstall_alternative trial trial.1
-%python_uninstall_alternative tkconch tkconch.1
-%python_uninstall_alternative pyhtmlizer pyhtmlizer.1
-%python_uninstall_alternative conch conch.1
-%python_uninstall_alternative ckeygen ckeygen.1
-%python_uninstall_alternative cftp cftp.1
-%python_uninstall_alternative twistd twistd.1
+%python_uninstall_alternative twistd
 
 %files -n %{name}-doc
 %doc docs/*
@@ -169,6 +164,7 @@
 %python_alternative %{_mandir}/man1/pyhtmlizer.1%{?ext_man}
 %python_alternative %{_mandir}/man1/tkconch.1%{?ext_man}
 %python_alternative %{_mandir}/man1/trial.1%{?ext_man}
-%{python_sitearch}/*
+%{python_sitearch}/twisted
+%{python_sitearch}/Twisted-%{version}*-info
 
 %changelog

++++++ twisted-pr1369-remove-pyopenssl-npn.patch ++++++
From 895a9a0c7141646847a8c798f695c92e543af035 Mon Sep 17 00:00:00 2001
From: Alex Gaynor <alex.gay...@gmail.com>
Date: Mon, 3 Aug 2020 21:00:25 -0400
Subject: [PATCH] Make the twisted tests work when pyOpenSSL deletes NPN

---
 src/twisted/newsfragments/9928.misc | 0
 src/twisted/test/test_sslverify.py  | 7 +++++--
 2 files changed, 5 insertions(+), 2 deletions(-)
 create mode 100644 src/twisted/newsfragments/9928.misc

diff --git a/src/twisted/newsfragments/9928.misc 
b/src/twisted/newsfragments/9928.misc
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/src/twisted/test/test_sslverify.py 
b/src/twisted/test/test_sslverify.py
index 4a1e082737f..a8992741d55 100644
--- a/src/twisted/test/test_sslverify.py
+++ b/src/twisted/test/test_sslverify.py
@@ -62,8 +62,11 @@
     try:
         ctx = SSL.Context(SSL.SSLv23_METHOD)
         ctx.set_npn_advertise_callback(lambda c: None)
-    except NotImplementedError:
-        skipNPN = "OpenSSL 1.0.1 or greater required for NPN support"
+    except (NotImplementedError, AttributeError):
+        skipNPN = (
+            "NPN is deprecated (and OpenSSL 1.0.1 or greater required for NPN"
+            " support)"
+        )
 
     try:
         ctx = SSL.Context(SSL.SSLv23_METHOD)
++++++ twisted-pr1487-increase-ffdh-keysize.patch ++++++
From d3a97b7f9e536af0103940afe670817fd2ff1393 Mon Sep 17 00:00:00 2001
From: Paul Kehrer <paul.l.keh...@gmail.com>
Date: Sat, 28 Nov 2020 22:56:28 -0600
Subject: [PATCH] increase size of FFDH keys for conch testing

---
 src/twisted/conch/test/test_transport.py | 29 ++++++++++++++++++------
 src/twisted/newsfragments/10061.misc     |  0
 2 files changed, 22 insertions(+), 7 deletions(-)
 create mode 100644 src/twisted/newsfragments/10061.misc

Index: Twisted-20.3.0/src/twisted/conch/test/test_transport.py
===================================================================
--- Twisted-20.3.0.orig/src/twisted/conch/test/test_transport.py
+++ Twisted-20.3.0/src/twisted/conch/test/test_transport.py
@@ -2267,6 +2267,21 @@ class ClientSSHTransportDHGroupExchangeB
     Diffie-Hellman group exchange tests for SSHClientTransport.
     """
 
+    """
+    1536-bit modulus from RFC 3526
+    """
+    P1536 = int(
+        "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1"
+        "29024E088A67CC74020BBEA63B139B22514A08798E3404DD"
+        "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245"
+        "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED"
+        "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D"
+        "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F"
+        "83655D23DCA3AD961C62F356208552BB9ED529077096966D"
+        "670C354E4ABC9804F1746C08CA237327FFFFFFFFFFFFFFFF",
+        16,
+    )
+
     def test_KEXINIT_groupexchange(self):
         """
         KEXINIT packet with a group-exchange key exchange results
@@ -2286,14 +2301,14 @@ class ClientSSHTransportDHGroupExchangeB
         KEX_DH_GEX_INIT message with the client's Diffie-Hellman public key.
         """
         self.test_KEXINIT_groupexchange()
-        self.proto.ssh_KEX_DH_GEX_GROUP(
-            b'\x00\x00\x00\x03\x00\xfe\xf3\x00\x00\x00\x01\x02')
-        self.assertEqual(self.proto.p, 65267)
+        self.proto.ssh_KEX_DH_GEX_GROUP(common.MP(self.P1536) + common.MP(2))
+        self.assertEqual(self.proto.p, self.P1536)
         self.assertEqual(self.proto.g, 2)
         x = self.proto.dhSecretKey.private_numbers().x
-        self.assertEqual(common.MP(x)[5:], b'\x99' * 2)
-        self.assertEqual(self.proto.dhSecretKeyPublicMP,
-                         common.MP(pow(2, x, 65267)))
+        self.assertEqual(common.MP(x)[5:], b"\x99" * 192)
+        self.assertEqual(
+            self.proto.dhSecretKeyPublicMP, common.MP(pow(2, x, self.P1536))
+        )
         self.assertEqual(self.packets[1:], [(transport.MSG_KEX_DH_GEX_INIT,
                                              self.proto.dhSecretKeyPublicMP)])
 
@@ -2322,7 +2337,7 @@ class ClientSSHTransportDHGroupExchangeB
         # Here is the wire format for advertised min, pref and max DH sizes.
         h.update(b'\x00\x00\x04\x00\x00\x00\x08\x00\x00\x00\x20\x00')
         # And the selected group parameters.
-        h.update(b'\x00\x00\x00\x03\x00\xfe\xf3\x00\x00\x00\x01\x02')
+        h.update(common.MP(self.P1536) + common.MP(2))
         h.update(self.proto.dhSecretKeyPublicMP)
         h.update(fMP)
         h.update(sharedSecret)
_______________________________________________
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org

Reply via email to