X-Loop: help-debbugs@HIDDEN Subject: [bug#54465] [PATCH] gnu: Added patch to python-w3lib for broken test. Resent-From: Pradana Adrinusa AUMARS <paumars@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Sat, 19 Mar 2022 13:57:01 +0000 Resent-Message-ID: <handler.54465.B.164769821620258 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 54465 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54465 <at> debbugs.gnu.org X-Debbugs-Original-To: guix-patches@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.164769821620258 (code B ref -1); Sat, 19 Mar 2022 13:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Mar 2022 13:56:56 +0000 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== From: Pradana Adrinusa AUMARS <paumars@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-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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Pradana Adrinusa AUMARS <paumars@HIDDEN> Subject: bug#54465: Acknowledgement ([PATCH] gnu: Added patch to python-w3lib for broken test.) Message-ID: <handler.54465.B.164769821620258.ack <at> debbugs.gnu.org> References: <3cc10d3afa3e4f9edd2adcf88618857e197a37b7.camel@HIDDEN> X-Gnu-PR-Message: ack 54465 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 54465 <at> debbugs.gnu.org Date: Sat, 19 Mar 2022 13:57:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 54465 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 54465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54465 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: [bug#54465] [PATCH] gnu: Added patch to python-w3lib for broken test. References: <3cc10d3afa3e4f9edd2adcf88618857e197a37b7.camel@HIDDEN> In-Reply-To: <3cc10d3afa3e4f9edd2adcf88618857e197a37b7.camel@HIDDEN> Resent-From: Pradana Adrinusa AUMARS <paumars@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Mon, 21 Nov 2022 09:06:02 +0000 Resent-Message-ID: <handler.54465.B54465.16690215286098 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 54465 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54465 <at> debbugs.gnu.org Received: via spool by 54465-submit <at> debbugs.gnu.org id=B54465.16690215286098 (code B ref 54465); Mon, 21 Nov 2022 09:06:02 +0000 Received: (at 54465) by debbugs.gnu.org; 21 Nov 2022 09:05:28 +0000 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== From: Pradana Adrinusa AUMARS <paumars@HIDDEN> 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-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.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.