Github messages for voidlinux
 help / color / mirror / Atom feed
From: leahneukirchen <leahneukirchen@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Move Python 2 to Active State cPython
Date: Wed, 14 Jul 2021 19:52:07 +0200	[thread overview]
Message-ID: <20210714175207.M4Cn8wL6spazvOc9dk4MLQG0FM3_F-Ttuh-wp1oN0BQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29308@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 537 bytes --]

There is an updated pull request by leahneukirchen against master on the void-packages repository

https://github.com/leahneukirchen/void-packages python2
https://github.com/void-linux/void-packages/pull/29308

Move Python 2 to Active State cPython
ActiveState is running a branch of cPython that has a bunch of security fixes, at
https://github.com/ActiveState/cpython/

This is very convenient to use for our python package, so let's do it.

A patch file from https://github.com/void-linux/void-packages/pull/29308.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python2-29308.patch --]
[-- Type: text/x-diff, Size: 4145 bytes --]

From 049df5b6ff6dfd8795e1771c89ce634aa9fa29e8 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Mon, 8 Mar 2021 11:55:53 +0100
Subject: [PATCH 1/2] python: update to 2.7.18.4.

Adopted.
---
 srcpkgs/python/template | 20 ++++++++++----------
 srcpkgs/python/update   |  3 +--
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/srcpkgs/python/template b/srcpkgs/python/template
index fc52e87228ea..3cbe4673172c 100644
--- a/srcpkgs/python/template
+++ b/srcpkgs/python/template
@@ -3,20 +3,20 @@
 # THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/python-tkinter".
 #
 pkgname=python
-version=2.7.18
-revision=3
-wrksrc="Python-${version}"
+version=2.7.18.4
+revision=1
+wrksrc="cpython-${version}"
 pycompile_dirs="usr/lib/python2.7"
 hostmakedepends="pkg-config"
 makedepends="libffi-devel readline-devel gdbm-devel openssl-devel expat-devel
  sqlite-devel bzip2-devel zlib-devel"
 depends="ca-certificates"
 short_desc="Interpreted, interactive, object-oriented programming language"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Leah Neukirchen <leah@vuxu.org>"
 license="Python-2.0"
 homepage="https://www.python.org"
-distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
-checksum=b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43
+distfiles="https://github.com/ActiveState/cpython/archive/v${version}.tar.gz"
+checksum=003a4fbd03fa0dbb3cf88d894c40311ef30dd17b2aa85291c3136393148b1362
 
 alternatives="
  python:idle:/usr/bin/idle2.7
@@ -85,13 +85,13 @@ post_install() {
 	rm -r ${DESTDIR}/usr/lib/python2.7/lib2to3/tests
 	# Remove references to the install(1) wrapper.
 	vsed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i \
-		${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \
-		${DESTDIR}/usr/lib/python${version%.*}/config/Makefile
+		${DESTDIR}/usr/lib/python${version%.*.*}/_sysconfigdata.py \
+		${DESTDIR}/usr/lib/python${version%.*.*}/config/Makefile
 	if [ "$CROSS_BUILD" ]; then
 		# Remove references to cross toolchain.
 		vsed -i "s/$XBPS_CROSS_TRIPLET-//g" \
-			${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \
-			${DESTDIR}/usr/lib/python${version%.*}/config/Makefile
+			${DESTDIR}/usr/lib/python${version%.*.*}/_sysconfigdata.py \
+			${DESTDIR}/usr/lib/python${version%.*.*}/config/Makefile
 	fi
 }
 
diff --git a/srcpkgs/python/update b/srcpkgs/python/update
index d3e3aa88cccd..cfb8828f7e49 100644
--- a/srcpkgs/python/update
+++ b/srcpkgs/python/update
@@ -1,2 +1 @@
-site="https://www.python.org/ftp/python/"
-pattern='"\K2\.[\d.]+(?=/")'
+pattern='v\K2\.7\.[\d.]*\d'

From 0853e00dec8247213bfa57cad080f06ea799ccb2 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Mon, 8 Mar 2021 11:55:56 +0100
Subject: [PATCH 2/2] python-tkinter: update to 2.7.18.4.

Adopted.
---
 srcpkgs/python-tkinter/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/python-tkinter/template b/srcpkgs/python-tkinter/template
index 51c2fd766500..58658eda5272 100644
--- a/srcpkgs/python-tkinter/template
+++ b/srcpkgs/python-tkinter/template
@@ -7,19 +7,19 @@
 _desc="Interpreted, interactive, object-oriented programming language"
 
 pkgname=python-tkinter
-version=2.7.18
-revision=3
-wrksrc="Python-${version}"
+version=2.7.18.4
+revision=1
+wrksrc="cpython-${version}"
 pycompile_dirs="usr/lib/python2.7/lib-tk"
 hostmakedepends="pkg-config"
 makedepends="libffi-devel readline-devel gdbm-devel openssl-devel expat-devel
  sqlite-devel bzip2-devel zlib-devel tk-devel"
 short_desc="${_desc} - GUI toolkit for Python2"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Leah Neukirchen <leah@vuxu.org>"
 license="Python-2.0"
 homepage="https://www.python.org"
-distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"
-checksum=b62c0e7937551d0cc02b8fd5cb0f544f9405bafc9a54d3808ed4594812edef43
+distfiles="https://github.com/ActiveState/cpython/archive/v${version}.tar.gz"
+checksum=003a4fbd03fa0dbb3cf88d894c40311ef30dd17b2aa85291c3136393148b1362
 
 pre_configure() {
 	# Ensure that internal copies of expat, libffi and zlib are not used.

  parent reply	other threads:[~2021-07-14 17:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-08 10:57 [PR PATCH] " leahneukirchen
2021-03-08 11:08 ` [PR PATCH] [Updated] " leahneukirchen
2021-07-14 17:50 ` [PR PATCH] [Closed]: " leahneukirchen
2021-07-14 17:50 ` [PR PATCH] [Updated] " leahneukirchen
2021-07-14 17:52 ` leahneukirchen [this message]
2021-07-16 19:19 ` [PR PATCH] [Merged]: " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210714175207.M4Cn8wL6spazvOc9dk4MLQG0FM3_F-Ttuh-wp1oN0BQ@z \
    --to=leahneukirchen@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).