From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aCWyM3EjlmbZGQAAe85BDQ:P1 (envelope-from ) for ; Tue, 16 Jul 2024 07:38:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aCWyM3EjlmbZGQAAe85BDQ (envelope-from ) for ; Tue, 16 Jul 2024 09:38:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721115505; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=KJF+zlogd2wpGEUcFNr6Uu77MwiAbuLe5i4S6UrMzAQ=; b=GxHXqwpa3zIYaIK7zLXalFXyg27/NW1FZBKqVqjeuXfKsuTnzlAXCLv7jjHJv8iHQwlTaN y9c4XEGwncWtT/iRrrt9VrMDp9OAkDrpSd6XdVnXwPTjtZHgb6XcCMeNbBAF9pvDNpcBgb 4w4jTo+2YJAB/8hIiEKEiingllxg4asUoBbOcmttKpcxSFN5CF/OobyA/XdUEmPJxkc72A N3zqgEouu/PYh6IMdtBfD7DSOpOw8Uq9VQuXYiXKAdlGdy0X6ZR0WD4UnbcNLvJvIxl1Qr 2JkrdRX0fPD6OxI20o93Ld2+dW2+5zEJXOPg4ndEV+j1u27Pp/s9Fodr6iVNIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721115505; a=rsa-sha256; cv=none; b=eBR9IOAbcwdn+Be1/ZiEN6EeVIL6HI9lMq6mRE41j4fD2fkiws9S6PM2di2KE5fVG7mi5O NFDp7jbJ1awQwOPy/Ny7k/tBzAfNxuX4eInFj6WdDhjhGh6Em7831ecuypOc1UABRjN3LN oRiEE9ONEXTJAEuEJ0a31QRgPhk0PAeRUXBwF1KgYruaY7QN88cF8rFRr3SGoamwcEDppb P2ERFyAV8C4LCpDMYVDA6iITtberWJxQJ2082k9qeUsI9PTK+mQxgylPsBda8nZIHXjU5N nbdEtOS9n7b7CKnNWcCne0LWCCa0fkYO938Ge6aWbKqB7Zn4aGbMz5QqO+gueA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 90E0F77A78 for ; Tue, 16 Jul 2024 09:38:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTckc-0003Le-8K; Tue, 16 Jul 2024 03:37:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTckW-0003AO-8a for guix-devel@gnu.org; Tue, 16 Jul 2024 03:37:24 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1sTckS-00084t-Pt for guix-devel@gnu.org; Tue, 16 Jul 2024 03:37:24 -0400 Received: from m (unknown [64.176.166.156]) by APP-01 (Coremail) with SMTP id qwCowACHjsofI5ZmiBeoAw--.19166S2; Tue, 16 Jul 2024 15:37:08 +0800 (CST) From: Zheng Junjie To: Ricardo Wurmus Cc: guix-devel@gnu.org, Efraim Flashner Subject: Re: [core-updates] Setting SSL_CERT_FILE in the build environment In-Reply-To: <87ttgqfu6r.fsf@iscas.ac.cn> (Zheng Junjie's message of "Tue, 16 Jul 2024 01:20:44 +0800") References: <877cdn3ph7.fsf@elephly.net> <87zfqi3gcv.fsf@elephly.net> <87sewa3eif.fsf@elephly.net> <87y162fxil.fsf@iscas.ac.cn> <87o76y39s1.fsf@elephly.net> <87ttgqfu6r.fsf@iscas.ac.cn> Date: Tue, 16 Jul 2024 15:37:00 +0800 Message-ID: <87plrdg543.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: qwCowACHjsofI5ZmiBeoAw--.19166S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Gr13ury5ZFWrArW7uF47CFg_yoWDKrXEgF WUAFnrK3y5KrWvka98Jr98CFZ7Ary7AF45Ja4Ivrsrt3ZavrsxWasrur1fW3WFyF4ftFn3 Kw1jgFW3JwnxujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbsAYjsxI4VWDJwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2vj62AExVA0xI801c8C04v26x02cVCv0xWle2I262IY c4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7AqF2xKxwAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJV W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF 1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x IIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvE x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnU UI43ZEXa7IUbc4S7UUUUU== X-Originating-IP: [64.176.166.156] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.21; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -8.70 X-Migadu-Queue-Id: 90E0F77A78 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.70 X-TUID: 6dDE7mv9ykJo --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Zheng Junjie writes: > Ricardo Wurmus writes: > >> Zheng Junjie writes: >> >>> This patch should fix it. >> >> Thank you for the patch! >> >>> From f41bf905cfb1395a53cfc0d79315148ac9ba0a79 Mon Sep 17 00:00:00 2001 >>> Message-ID: >>> From: Zheng Junjie >>> Date: Tue, 16 Jul 2024 00:06:39 +0800 >>> Subject: [PATCH] gnu: python-requests-next: Fix build. >>> >>> * gnu/packages/python-web.scm (python-requests-next): Fix build. >>> [native-inputs]: Add nss-certs. >>> [arguments]: Add set-SSL_CERT_FILE phase. >>> <#:modules>: Adjust it. >> >> This seems rather complicated for something that may have to be added to >> a number of packages. Would it make sense to create a package >> containing this bundle file, set a search path specification, and add >> that to the packages needing it? I checked it out and thought this patch might be a better way. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-python-requests-next-Fix-build.patch Content-Transfer-Encoding: quoted-printable From=208d7466eadcb543d538b1f40c4ec06a953c4aa45d Mon Sep 17 00:00:00 2001 Message-ID: <8d7466eadcb543d538b1f40c4ec06a953c4aa45d.1721115252.git.zhengj= unjie@iscas.ac.cn> From: Zheng Junjie Date: Tue, 16 Jul 2024 00:06:39 +0800 Subject: [PATCH] gnu: python-requests-next: Fix build. * gnu/packages/python-web.scm (python-requests-next): Fix build. [arguments]<#:phases>: Add add-check-DEFAULT_CA_BUNDLE_PATH-exists phase. Change-Id: I1592ef3329fdcd681df618bb12fbc205aa028be3 =2D-- gnu/packages/python-web.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index bca7da9139..2926d24b40 100644 =2D-- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -65,6 +65,7 @@ ;;; Copyright =C2=A9 2024 Sharlatan Hellseher ;;; Copyright =C2=A9 2024 normally_js ;;; Copyright =C2=A9 2024 Markku Korkeala +;;; Copyright =C2=A9 2024 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -3621,7 +3622,17 @@ (define-public python-requests-next python-urllib3)) (arguments ;; FIXME: Some tests require network access. =2D '(#:tests? #f)) + (list #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'add-check-DEFAULT_CA_BUNDLE_PATH-exists + (lambda _ + (substitute* "src/requests/adapters.py" + ((" _preloaded_ssl_context =3D create_urllib3_cont= ext\\(\\)") + " if os.path.exists(DEFAULT_CA_BUNDLE_PATH): + _preloaded_ssl_context =3D create_urllib3_context()") + (("_preloaded_ssl_context\\.load_verify_locations\\(") + " _preloaded_ssl_context.load_verify_locations(")))= )))) (home-page "http://python-requests.org/") (synopsis "Python HTTP library") (description base-commit: 05e6bd3efe1b03190839d2b91b09fa768c4ef83c =2D-=20 2.45.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmaWIxwACgkQO1qpk+Gi 3/DPxg/9EwsicS8U9G4xp+WFog9JiwNIXieuD1VOZP/HP9gxFmnRIAeP/3HwNFna PxmETfq8PmSis041MiRayitT2BIx4ZVMIodxTYdgz00hcpEC8fiXfqPATX03Zkn8 95TDh4ciIBIEOHVxeOvywLZ+GTQxKNYNAqxwimj4YjcN8oNsdZaKssvCsaURHVDO aPxzvjzAHUubE70TVHAjd1S4l9Vq659quX9BgF9Wc9dbTsXRR3fO2vLmhUuFwl5T mjDULGWRHvPC5gwz8yeMXWpoLruC2qOZy8CNkjrm47Ok+oVe1LCk0ylwLbtdtyp8 OvVQ62kYzO8120HbLJiTU55TpAy+scUD80b+EPUgIIHRYoIu0WCGP1bsWwmYhmus TLOusjvf7rPbMjSRhGrdRWSfiyIgHlMTJD+IP+XS/DzPpCVpBqfVMENxsPbtFMG6 hfCtcQ9Ygonr1ykSfjR8TaiFsuh/pco2hOvAB/22Ibmqu75NUlP/RNhAEADyCZms eX9qHFIBi6lPriE97NyboT88xclKglJ9IFvVAk3IvLHE2/Y8JhpfjshUMXqYrYSX MVNppbhPAHjsWoqI4PIfGDJwqQRRKETxHjLcKfXjZGn3isK59U1sH4lz0qz3NgMS Y4y1YM+v3nx4qwX78JGBw9Tn2HiLS4eOkzkMfOL5pWloFkespF0= =hv/R -----END PGP SIGNATURE----- --==-=-=--