[From nobody Wed Jul  8 12:23:05 2026
Received: (at submit) by bugs.debian.org; 7 Jul 2026 23:16:00 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-119.6 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,MD5_SHA1_SUM,
 SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 42; hammy, 150; neutral, 143; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;bunk@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:53280)
 by buxtehude.debian.org with utf8esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;bunk@debian.org&gt;) id 1whF1E-00BWjE-0s
 for submit@bugs.debian.org; Tue, 07 Jul 2026 23:16:00 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
 Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=wUABI3IY4evVYm3oV5qdXPKWBF84GNoa9FJgRZAsvsA=; b=lxN3x7acwpOtVTkS1sd4YKs/c7
 36NuwOVBYKCKrruMlXIHaYwQrFXDEYlnq/PWReLNJkzJau7wnvbI37VHX8WEHMpt417WDBcCO4cWU
 aIeJknjVM10tXA4Wmlhse1wzUnRs8+l9USvHFbzzljd0k7Bo54e4T6QpVBxHHunZ1U70zjLpeRUja
 XPYVGf/e6M4ScvPqeNUp8gtDZc3eJ+PD0UmQa8o9axn3ov7f3t+dhBaoCmH0c7Lt6QpqSeZapwWAG
 0hgJNYRkzcvb+Q6i1qFXyC3wp9MjQMZReHiZuNGoDflLPChnIAepgJu4XVO+9qX4GibzWV3kzz9Mu
 /GKxXkOQ==;
Received: from authenticated-user by stravinsky.debian.org with utf8esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;bunk@debian.org&gt;) id 1whF1B-002Wzf-17
 for submit@bugs.debian.org; Tue, 07 Jul 2026 23:15:58 +0000
Date: Wed, 8 Jul 2026 02:15:56 +0300
From: Adrian Bunk &lt;bunk@debian.org&gt;
To: submit@bugs.debian.org
Subject: pagekite: diff for NMU version 1.5.2.201011-5.1
Message-ID: &lt;ak2IrKqGzppc38yf@localhost&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;52pUHK3zkZfK8LV/&quot;
Content-Disposition: inline
X-Debian-User: bunk
Delivered-To: submit@bugs.debian.org


--52pUHK3zkZfK8LV/
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

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

--52pUHK3zkZfK8LV/
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment;
	filename=&quot;pagekite-1.5.2.201011-5.1-nmu.diff&quot;

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 &lt;bunk@debian.org&gt;  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: &quot;Bjarni R. Einarsson&quot; &lt;bre@beanstalks-project.net&gt;
+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: &lt;http://www.gnu.org/licenses/&gt;
+ 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 &lt; 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

--52pUHK3zkZfK8LV/--
]