mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Robin van der Gracht <robin@protonic.nl>
To: ptxdist@pengutronix.de
Cc: robin@protonic.nl
Subject: [ptxdist] [PATCH v2 1/5] python3: Version bumb to 3.11.2
Date: Tue, 28 Mar 2023 14:32:22 +0200	[thread overview]
Message-ID: <20230328123226.668075-2-robin@protonic.nl> (raw)
In-Reply-To: <20230328123226.668075-1-robin@protonic.nl>

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 ...-leak-host-path-into-target-binaries.patch | 23 ----------
 ...02-python3-prevent-host-path-leakage.patch | 43 -------------------
 patches/Python-3.10.4/series                  |  5 ---
 rules/python3.make                            |  7 +--
 4 files changed, 4 insertions(+), 74 deletions(-)
 delete mode 100644 patches/Python-3.10.4/0001-python3-don-t-leak-host-path-into-target-binaries.patch
 delete mode 100644 patches/Python-3.10.4/0002-python3-prevent-host-path-leakage.patch
 delete mode 100644 patches/Python-3.10.4/series

diff --git a/patches/Python-3.10.4/0001-python3-don-t-leak-host-path-into-target-binaries.patch b/patches/Python-3.10.4/0001-python3-don-t-leak-host-path-into-target-binaries.patch
deleted file mode 100644
index e59f7c649..000000000
--- a/patches/Python-3.10.4/0001-python3-don-t-leak-host-path-into-target-binaries.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-Date: Sun, 14 Oct 2018 18:51:17 +0200
-Subject: [PATCH] python3: don't leak host path into target binaries
-
-Without this the rpath of the _dbm module contains <sysroot>/usr/lib.
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- setup.py | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index bf90600eaad3..9250f5a1b691 100644
---- a/setup.py
-+++ b/setup.py
-@@ -1516,7 +1516,6 @@ class PyBuildExt(build_ext):
-                         if dbm_setup_debug: print("building dbm using bdb")
-                         dbmext = Extension('_dbm', ['_dbmmodule.c'],
-                                            library_dirs=dblib_dir,
--                                           runtime_library_dirs=dblib_dir,
-                                            include_dirs=db_incs,
-                                            define_macros=[
-                                                ('HAVE_BERKDB_H', None),
diff --git a/patches/Python-3.10.4/0002-python3-prevent-host-path-leakage.patch b/patches/Python-3.10.4/0002-python3-prevent-host-path-leakage.patch
deleted file mode 100644
index e4d5eed17..000000000
--- a/patches/Python-3.10.4/0002-python3-prevent-host-path-leakage.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From: Bastian Stender <bst@pengutronix.de>
-Date: Mon, 8 Jan 2018 16:11:23 +0100
-Subject: [PATCH] python3: prevent host path leakage
-
-If cross-compiling and host/target architecture match host paths are
-added to include_dirs and library_dirs in add_multiarch_paths() (e.g.
-/usr/lib/i386-linux-gnu, /usr/include/i386-linux-gnu). This leads to
-build failures for some extensions (at least _ssl and _socket).
-
-ptxdist does not support multiarch, so remove this addition when
-cross-compiling.
-
-Based on a patch by Alexandru Ardelean <ardeleanalex@gmail.com>.
-
-See these patches for reference:
-- https://github.com/openwrt/packages/pull/784
-- https://github.com/openwrt/packages/blob/master/lang/python/python/patches/006-remove-multi-arch-and-local-paths.patch
-- http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-devtools/python/python/host_include_contamination.patch
-
-Signed-off-by: Bastian Stender <bst@pengutronix.de>
----
- setup.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index 9250f5a1b691..3278aaf6e677 100644
---- a/setup.py
-+++ b/setup.py
-@@ -829,10 +829,12 @@ class PyBuildExt(build_ext):
-         if not CROSS_COMPILING:
-             add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
-             add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
-+
-+            self.add_multiarch_paths()
-+
-         # only change this for cross builds for 3.3, issues on Mageia
-         if CROSS_COMPILING:
-             self.add_cross_compiling_paths()
--        self.add_multiarch_paths()
-         self.add_ldflags_cppflags()
- 
-     def init_inc_lib_dirs(self):
-
diff --git a/patches/Python-3.10.4/series b/patches/Python-3.10.4/series
deleted file mode 100644
index 305ae1d73..000000000
--- a/patches/Python-3.10.4/series
+++ /dev/null
@@ -1,5 +0,0 @@
-# generated by git-ptx-patches
-#tag:base --start-number 1
-0001-python3-don-t-leak-host-path-into-target-binaries.patch
-0002-python3-prevent-host-path-leakage.patch
-# 9a6f885c0db25c8cff5dd088d9eff6af  - git-ptx-patches magic
diff --git a/rules/python3.make b/rules/python3.make
index b8cffc190..d3f872206 100644
--- a/rules/python3.make
+++ b/rules/python3.make
@@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_PYTHON3) += python3
 #
 # Paths and names
 #
-PYTHON3_VERSION		:= 3.10.4
-PYTHON3_MD5		:= 21f2e113e087083a1e8cf10553d93599
+PYTHON3_VERSION		:= 3.11.2
+PYTHON3_MD5		:= a957cffb58a89303b62124896881950b
 PYTHON3_MAJORMINOR	:= $(basename $(PYTHON3_VERSION))
 PYTHON3_SITEPACKAGES	:= /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages
 PYTHON3			:= Python-$(PYTHON3_VERSION)
@@ -76,7 +76,8 @@ PYTHON3_CONF_OPT	:= \
 	--without-dtrace \
 	--with-computed-gotos \
 	--without-ensurepip \
-	--with-openssl=$(SYSROOT)/usr
+	--with-openssl=$(SYSROOT)/usr \
+	--with-build-python=python$(PYTHON3_MAJORMINOR)
 
 # Keep dictionary order in .pyc files stable
 PYTHON3_MAKE_ENV := \
-- 
2.37.2




  reply	other threads:[~2023-03-28 12:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28 12:32 [ptxdist] [PATCH v2 0/5] Update to Python3.11 Robin van der Gracht
2023-03-28 12:32 ` Robin van der Gracht [this message]
2023-04-12  6:29   ` [ptxdist] [APPLIED] python3: Version bumb to 3.11.2 Michael Olbrich
2023-03-28 12:32 ` [ptxdist] [PATCH v2 2/5] python3-aiofiles: Version bumb to 0.8.0 Robin van der Gracht
2023-04-12  6:29   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-03-28 12:32 ` [ptxdist] [PATCH v2 3/5] python3-frozenlist: Version bumb 1.3.3 Robin van der Gracht
2023-04-12  6:29   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-03-28 12:32 ` [ptxdist] [PATCH v2 4/5] python3-aiohttp: Version bumb to 3.8.4 Robin van der Gracht
2023-04-12  6:29   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-03-28 12:32 ` [ptxdist] [PATCH v2 5/5] python3-yarl: Version bumb to 1.8.2 Robin van der Gracht
2023-04-12  6:29   ` [ptxdist] [APPLIED] " Michael Olbrich

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=20230328123226.668075-2-robin@protonic.nl \
    --to=robin@protonic.nl \
    --cc=ptxdist@pengutronix.de \
    /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