Package: pagekite Version: 1.5.2.201011-5 Severity: normal Tags: patch pending
Dear maintainer, I've prepared an NMU for pagekite (versioned as 1.5.2.201011-5.1) and uploaded it to DELAYED/1. Please feel free to tell me if I should cancel it. cu Adrian
diffstat for pagekite-1.5.2.201011 pagekite-1.5.2.201011 changelog | 7 + patches/0001-Deal-with-Python-3.14-breaking-more-stuff-updated-si.patch | 57 ++++++++++ patches/series | 1 3 files changed, 65 insertions(+) diff -Nru pagekite-1.5.2.201011/debian/changelog pagekite-1.5.2.201011/debian/changelog --- pagekite-1.5.2.201011/debian/changelog 2026-06-17 19:01:43.000000000 +0300 +++ pagekite-1.5.2.201011/debian/changelog 2026-07-07 21:51:07.000000000 +0300 @@ -1,3 +1,10 @@ +pagekite (1.5.2.201011-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * Backport upstream fix for Python 3.14. (Closes: #1131796) + + -- Adrian Bunk <[email protected]> Tue, 07 Jul 2026 21:51:07 +0300 + pagekite (1.5.2.201011-5) unstable; urgency=medium * Team Upload diff -Nru pagekite-1.5.2.201011/debian/patches/0001-Deal-with-Python-3.14-breaking-more-stuff-updated-si.patch pagekite-1.5.2.201011/debian/patches/0001-Deal-with-Python-3.14-breaking-more-stuff-updated-si.patch --- pagekite-1.5.2.201011/debian/patches/0001-Deal-with-Python-3.14-breaking-more-stuff-updated-si.patch 1970-01-01 02:00:00.000000000 +0200 +++ pagekite-1.5.2.201011/debian/patches/0001-Deal-with-Python-3.14-breaking-more-stuff-updated-si.patch 2026-07-07 21:51:07.000000000 +0300 @@ -0,0 +1,57 @@ +From 19445143cc0ef44feedb3b93f438e39997383bd7 Mon Sep 17 00:00:00 2001 +From: "Bjarni R. Einarsson" <[email protected]> +Date: Sat, 10 Jan 2026 13:36:40 +0000 +Subject: Deal with Python 3.14 breaking more stuff: updated six, bundle cgi + +--- + pagekite/httpd.py | 5 ++++- + pagekite/pk.py | 7 +++---- + 2 files changed, 7 insertions(+), 5 deletions(-) + +diff --git a/pagekite/httpd.py b/pagekite/httpd.py +index 9e21f24..4132db3 100755 +--- a/pagekite/httpd.py ++++ b/pagekite/httpd.py +@@ -32,7 +32,10 @@ from six.moves import http_cookies + from six.moves.xmlrpc_server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler + + import base64 +-import cgi ++try: ++ import cgi ++except ImportError: ++ import legacy_cgi as cgi + import datetime + try: + from html import escape as escape_html +diff --git a/pagekite/pk.py b/pagekite/pk.py +index 4f524f2..5f92bf7 100755 +--- a/pagekite/pk.py ++++ b/pagekite/pk.py +@@ -30,12 +30,11 @@ along with this program. If not, see: <http://www.gnu.org/licenses/> + import six + from six.moves import range + from six.moves import xmlrpc_client +-from six.moves.urllib.request import URLopener, urlopen +-from six.moves.urllib.parse import urlencode + from six.moves.xmlrpc_server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler ++from six.moves.urllib.request import urlopen, urlretrieve ++from six.moves.urllib.parse import urlencode + + import base64 +-import cgi + import copy + try: + from html import escape as escape_html +@@ -1228,7 +1227,7 @@ class PageKite(object): + ((found == own_pemfile) and (newest < time.time() - 365*24*3600))): + # No bundle found or bundle old, download a new one from the cURL site. + try: +- URLopener().retrieve(CURL_CA_CERTS, filename=own_pemfile) ++ urlretrieve(CURL_CA_CERTS, own_pemfile) + return self.FindCACerts(use_curl_bundle=False) + except: + pass +-- +2.47.3 + diff -Nru pagekite-1.5.2.201011/debian/patches/series pagekite-1.5.2.201011/debian/patches/series --- pagekite-1.5.2.201011/debian/patches/series 2026-06-17 18:56:09.000000000 +0300 +++ pagekite-1.5.2.201011/debian/patches/series 2026-07-07 21:51:07.000000000 +0300 @@ -2,3 +2,4 @@ 0002-use-debian-certificates.patch 0003-fix-incoming-connections.patch 0004-fix-invalid-escape-sequences.patch +0001-Deal-with-Python-3.14-breaking-more-stuff-updated-si.patch

