GNU bug report logs - #54465
[PATCH] gnu: Added patch to python-w3lib for broken test.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Pradana Adrinusa AUMARS <paumars@HIDDEN>; Keywords: patch; dated Sat, 19 Mar 2022 13:57:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 54465 <at> debbugs.gnu.org:


Received: (at 54465) by debbugs.gnu.org; 21 Nov 2022 09:05:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 21 04:05:28 2022
Received: from localhost ([127.0.0.1]:45397 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ox2k4-0001aI-Fp
	for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 04:05:28 -0500
Received: from mail.42l.fr ([45.155.171.163]:46408)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <SRS0=ZCqo=3V=courrier.dev=paumars@HIDDEN>)
 id 1ox2k1-0001a1-6F
 for 54465 <at> debbugs.gnu.org; Mon, 21 Nov 2022 04:05:27 -0500
Message-ID: <0c9e39bc94e4ed8ecd7992fe5d19c549e8c0eea5.camel@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=courrier.dev; s=mail;
 t=1669021514; bh=7eLJeQjuTGdG1GH3KDGSCJVvL5brjuLFSx4r5ICzf+E=;
 h=Subject:From:To;
 b=dFwEXjylUrbss6Lh7XbNN3xsL2Mxnw3iLN1S+8Fy+AN5f5ljMWoqjxv9ZMDEkzlVR
 KoyN5MRBPUTUBuspJWSVVXumrR/DTZcu44ywo27cipPs2NmRVKWzqVkrdtaZbpnxef
 g61+OfKj59Tt4pe3AMfIPENlXlyy7isM1jGtOfgVBkd6VMcLEIEfxatMloFpY1s9K7
 gs0jFTZMmQJgktz9B0I1DwIivQrZLM5Vu1CvEUOHCVFEXxXTnmDXHiyuqvqNNtTDqs
 HoUqhJ4zxy/OChxdsxNiRfk3xcvxrE6sK8GPQtEjy+l1320O0pQfcENb5eEEvMWQP7
 USPZ1DURkmAHg==
Subject: [PATCH] gnu: Added patch to python-w3lib for broken test.
From: Pradana Adrinusa AUMARS <paumars@HIDDEN>
To: 54465 <at> debbugs.gnu.org
Date: Mon, 21 Nov 2022 10:05:12 +0100
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 54465
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Please close.

This issue has been fixed by issue 54697 by Felix Gruber.




Information forwarded to guix-patches@HIDDEN:
bug#54465; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Mar 2022 13:56:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 19 09:56:56 2022
Received: from localhost ([127.0.0.1]:60196 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nVZZg-0005Gg-7R
	for submit <at> debbugs.gnu.org; Sat, 19 Mar 2022 09:56:56 -0400
Received: from lists.gnu.org ([209.51.188.17]:36452)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <SRS0=tFWH=T6=courrier.dev=paumars@HIDDEN>)
 id 1nVZZe-0005GZ-OZ
 for submit <at> debbugs.gnu.org; Sat, 19 Mar 2022 09:56:55 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41956)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1)
 (envelope-from <SRS0=tFWH=T6=courrier.dev=paumars@HIDDEN>)
 id 1nVZZc-0007wd-DM
 for guix-patches@HIDDEN; Sat, 19 Mar 2022 09:56:53 -0400
Received: from mail.42l.fr ([45.155.171.163]:45362)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1)
 (envelope-from <SRS0=tFWH=T6=courrier.dev=paumars@HIDDEN>)
 id 1nVZZX-0006KE-Ln
 for guix-patches@HIDDEN; Sat, 19 Mar 2022 09:56:51 -0400
Message-ID: <3cc10d3afa3e4f9edd2adcf88618857e197a37b7.camel@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=courrier.dev; s=mail;
 t=1647698184; bh=f+kLovzp4TIXgeexO8KoSNVTDo2uqasfLXW8pBvtHJ8=;
 h=Subject:From:To;
 b=rXU/0luPO3TsBGYjlnsrmDGNVzCBy0MZwIJ5HKezvIZ0GFNXEpYdyOgFhHmCq/0cY
 6rY+tGXdq6O4dDkk2/8CJZ8hETwNapHaBTESe7AtG8wlnK7Z1rBUK9Reyseqb2cF21
 +Ao+qjgf8Mg4jXPkUwZABXOdMiy4SaySyfS0osWnhx70MOL2lCtgmuC/e3HJEUL1d3
 jkmnUZNDHTB4C0ZCjLNOaBnXlgl34ke0JmOOtUtGUeJOJ7KUrF77C0/oYbA42eSgqR
 KTrcDXmHOJ7eFwzXH5k9BpZOD6KzhA/Zaih5Xiqc4gZgCXmXY3KEWDCcStWCkwdNao
 Nmnhr6IR8efgA==
Subject: [PATCH] gnu: Added patch to python-w3lib for broken test.
From: Pradana Adrinusa AUMARS <paumars@HIDDEN>
To: guix-patches@HIDDEN
Date: Sat, 19 Mar 2022 14:56:21 +0100
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=45.155.171.163;
 envelope-from=SRS0=tFWH=T6=courrier.dev=paumars@HIDDEN; helo=mail.42l.fr
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

From 8aaddbdd5b5c51043b3ddfa4aefb72361f0f763f Mon Sep 17 00:00:00 2001
From: Pradana AUMARS <paumars@HIDDEN>
Date: Sat, 19 Mar 2022 14:51:22 +0100
Subject: [PATCH] gnu: Added patch to python-w3lib for broken test.

* gnu/packages/python-web.scm (python-w3lib): Added a patch for the broken test.
* gnu/packages/patches/python-w3lib-broken-test.patch: New file.
---
 .../patches/python-w3lib-broken-test.patch    | 31 +++++++++++++++++++
 gnu/packages/python-web.scm                   |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 gnu/packages/patches/python-w3lib-broken-test.patch

diff --git a/gnu/packages/patches/python-w3lib-broken-test.patch b/gnu/packages/patches/python-w3lib-broken-test.patch
new file mode 100644
index 0000000000..5b4a628268
--- /dev/null
+++ b/gnu/packages/patches/python-w3lib-broken-test.patch
@@ -0,0 +1,31 @@
+From 78054f19bfe20555792b0f336b423921fe88b994 Mon Sep 17 00:00:00 2001
+From: Anders Kaseorg <andersk@HIDDEN>
+Date: Mon, 1 Mar 2021 11:34:23 -0800
+Subject: [PATCH] Remove test broken by Python CVE-2021-23336 fix
+
+In Python 3.6.13, 3.7.10, 3.8.8, and 3.9.2, urllib.parse.parse_qsl no
+longer treats ; as a separator by default
+(https://bugs.python.org/issue42967).
+
+Fixes #164.
+
+Signed-off-by: Anders Kaseorg <andersk@HIDDEN>
+---
+ tests/test_url.py | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/tests/test_url.py b/tests/test_url.py
+index 3ff544e..e90065c 100644
+--- a/tests/test_url.py
++++ b/tests/test_url.py
+@@ -299,10 +299,6 @@ def test_add_or_replace_parameter(self):
+         self.assertEqual(add_or_replace_parameter(url, 'arg3', 'nv3'),
+                          'http://domain/test?arg1=v1&arg2=v2&arg3=nv3')
+ 
+-        url = 'http://domain/test?arg1=v1;arg2=v2'
+-        self.assertEqual(add_or_replace_parameter(url, 'arg1', 'v3'),
+-                         'http://domain/test?arg1=v3&arg2=v2')
+-
+         self.assertEqual(add_or_replace_parameter("http://domain/moreInfo.asp?prodID=", 'prodID', '20'),
+                          'http://domain/moreInfo.asp?prodID=20')
+         url = 'http://rmc-offers.co.uk/productlist.asp?BCat=2%2C60&CatID=60'
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 9c2a48166a..8b460075c0 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -6189,6 +6189,7 @@ (define-public python-w3lib
      (origin
        (method url-fetch)
        (uri (pypi-uri "w3lib" version))
+       (patches (search-patches "python-w3lib-broken-test.patch"))
        (sha256
         (base32
          "1pv02lvvmgz2qb61vz1jkjc04fgm4hpfvaj5zm4i3mjp64hd1mha"))))
-- 
2.34.0






Acknowledgement sent to Pradana Adrinusa AUMARS <paumars@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#54465; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 21 Nov 2022 09:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.