From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +Or1Oni2sl+4cAAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 17:27:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gKjINni2sl82bwAA1q6Kng (envelope-from ) for ; Mon, 16 Nov 2020 17:27:20 +0000 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 648BE940118 for ; Mon, 16 Nov 2020 17:27:20 +0000 (UTC) Received: from localhost ([::1]:48598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keiHf-0003K9-EB for larch@yhetil.org; Mon, 16 Nov 2020 12:27:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keiHP-0003Jt-N1 for guix-patches@gnu.org; Mon, 16 Nov 2020 12:27:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1keiHO-0001Av-Ay for guix-patches@gnu.org; Mon, 16 Nov 2020 12:27:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1keiHO-0006fG-6L for guix-patches@gnu.org; Mon, 16 Nov 2020 12:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44656] [PATCH] Upgrade pypy3 Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Nov 2020 17:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44656 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Lars-Dominik Braun Cc: 44656@debbugs.gnu.org Received: via spool by 44656-submit@debbugs.gnu.org id=B44656.160554760225592 (code B ref 44656); Mon, 16 Nov 2020 17:27:02 +0000 Received: (at 44656) by debbugs.gnu.org; 16 Nov 2020 17:26:42 +0000 Received: from localhost ([127.0.0.1]:57071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keiH3-0006eh-Mr for submit@debbugs.gnu.org; Mon, 16 Nov 2020 12:26:41 -0500 Received: from mira.cbaines.net ([212.71.252.8]:37664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keiH1-0006eY-Jk for 44656@debbugs.gnu.org; Mon, 16 Nov 2020 12:26:40 -0500 Received: from localhost (188.30.135.14.threembb.co.uk [188.30.135.14]) by mira.cbaines.net (Postfix) with ESMTPSA id B462A27BBF5; Mon, 16 Nov 2020 17:26:38 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 59e32ddb; Mon, 16 Nov 2020 17:26:36 +0000 (UTC) References: <20201115123911.GA1956@noor.fritz.box> <87zh3ibekx.fsf@cbaines.net> <20201115195549.GA1304@noor.fritz.box> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <20201115195549.GA1304@noor.fritz.box> Date: Mon, 16 Nov 2020 17:26:32 +0000 Message-ID: <874klpnrg7.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.61 X-TUID: +2vf2B+KFkgO --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Lars-Dominik Braun writes: >> If there are things that aren't essential to change when changing the >> version, they're fine to have in subsequent commits/patches. > the patches do not depend on each other. The second patch merely > contains quality of life improvements that work with or without bumping > the version. But I though I just send them in one go. Fair enough, the version upgrade works fine for me. Regarding the second patch: diff --git a/gnu/packages/patches/pypy3-7.3.1-ssl-paths.patch b/gnu/package= s/patches/pypy3-7.3.1-ssl-paths.patch new file mode 100644 index 0000000000..d21133b4ae =2D-- /dev/null +++ b/gnu/packages/patches/pypy3-7.3.1-ssl-paths.patch @@ -0,0 +1,41 @@ +Fix default certificate search path, still allowing the user to override it +with environment variables. + +--- a/lib_pypy/_cffi_ssl/_stdssl/__init__.py ++++ b/lib_pypy/_cffi_ssl/_stdssl/__init__.py +@@ -1679,20 +1679,9 @@ def get_default_verify_paths(): + https://golang.org/src/crypto/x509/root_linux.go (for the files) + ''' + certFiles =3D [ +- "/etc/ssl/certs/ca-certificates.crt", # Debian/Ubu= ntu/Gentoo etc. +- "/etc/pki/tls/certs/ca-bundle.crt", # Fedora/RHE= L 6 +- "/etc/ssl/ca-bundle.pem", # OpenSUSE +- "/etc/pki/tls/cacert.pem", # OpenELEC +- "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", # CentOS/RHE= L 7 +- "/etc/ssl/cert.pem", # Alpine Lin= ux + ] + certDirectories =3D [ +- "/etc/ssl/certs", # SLES10/SLES11 +- "/system/etc/security/cacerts", # Android +- "/usr/local/share/certs", # FreeBSD +- "/etc/pki/tls/certs", # Fedora/RHEL +- "/etc/openssl/certs", # NetBSD +- "/var/ssl/certs", # AIX ++ "@GUIX_CERT_PATH@", + ] I'm not sure about removing these bits. pypy3 from Guix may be used on Debian or Fedora, and maybe using certificates from those systems would be appropriate then? +=20 + # optimization: reuse the values from a local varaible +@@ -1707,9 +1696,10 @@ def get_default_verify_paths(): + ofile =3D _cstr_decode_fs(lib.X509_get_default_cert_file()) + odir =3D _cstr_decode_fs(lib.X509_get_default_cert_dir()) +=20 +- if os.path.exists(ofile) and os.path.exists(odir): +- get_default_verify_paths.retval =3D (ofile_env, ofile, odir_env, = odir) +- return get_default_verify_paths.retval ++ if not os.path.exists(ofile): ++ ofile =3D None ++ if not os.path.exists(odir): ++ odir =3D None +=20 + # OpenSSL didn't supply the goods. Try some other options + for f in certFiles: @@ -793,7 +806,12 @@ ease from the desktop to a microcontroller or embedded= system.") ; attribute 'IntFlag' (invoke "python2" "package.py" "--archive-name" "pypy-dist" =2D "--builddir" (getcwd))))) + "--builddir" (getcwd)) + ;; install pip and setuptools into the dist direct= ory. + ;; XXX: Breaks virtualenv, because it does not set= +w + ;; on files copied from the store. + ;(invoke "pypy-dist/bin/pypy3" "-m" "ensurepip") + ))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (if tests? I'm not quite sure what this would do if it's commented back in. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+ytkhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xf+Mw//aQ/+Diviku6g+NT49mB53Ib3bVIY44dD WxaXV042un+g8kIPnxhYc1HmpeseLfLWd3z236QGyryhLaIzIDTfX5PrxgQqO2gU jrNXZGyCrCPwlwGqSEIEn8KR0hWfjoyCPU+ib5dzdikK7KXwtYuLVCV8LXZapSgX 7HkvqeP5ytUxWgQDwayTW6MMKKneqABxUxPla5Kcee1U8+siyQb4g8N3jvdm182N v4UPk5rkBQG7zrrIp22cRxbLsEQr7K/Li/1+VFxQADQugpMzW87M4R1gvxMeSaW3 DmepcJbfSzTgdWFbAgUIvidZgcgwsgO1bfqfIyv9wb/iTMZISEQxEVwMSd3WjgRn 0KyNuNvasAIlNOX8G6X/E+Wuc1firhZa1XSmpAh53Vw+9h0LKnHIKnZztbDVta64 UI9/dGU1X6S8deRQTaaVcVvwd92T1OLh0kDVCBnTyJY1j8iq16Sj+4HuGD26gbGg uM69APwe+Q1hEDHS4g12H3GL4VevbblilsAgxBG5eDc0J/YSi6xVTZm7MXVCmElx WAU5G8KpBNpUpayrlFVC+5YcBMdZ5sS6ny1EM7chfGeRvQQMDkT5nZrvYqXVsCfd lwQfllK5OvB1Pi/ZIOZz3iyAV1H4KKG+3mRE27MVSOuXrHCM06UK+++sm8rxVIt3 kVeblHgIcEw= =SrMc -----END PGP SIGNATURE----- --=-=-=--