Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python #13907

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Update python #13907

merged 1 commit into from
Jan 17, 2023

Conversation

tianon
Copy link
Member

@tianon tianon commented Jan 17, 2023

Changes:

Changes:

- docker-library/python@2592ad8: Merge pull request docker-library/python#785 from infosiftr/libpython
- docker-library/python@0db1a5b: Fix path to libpython shared-library in python binaries
@github-actions
Copy link

Diff for 1cdeddb:
diff --git a/_bashbrew-cat b/_bashbrew-cat
index 2c9f194..55ca37b 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -3,126 +3,126 @@ GitRepo: https://github.com/docker-library/python.git
 
 Tags: 3.7.16-alpine3.16, 3.7-alpine3.16
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 9dacd07bff4576c2ae58c8d9302c6a43560f723d
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.7/alpine3.16
 
 Tags: 3.7.16-alpine3.17, 3.7-alpine3.17, 3.7.16-alpine, 3.7-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 9dacd07bff4576c2ae58c8d9302c6a43560f723d
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.7/alpine3.17
 
 Tags: 3.7.16-bullseye, 3.7-bullseye
 SharedTags: 3.7.16, 3.7
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 9dacd07bff4576c2ae58c8d9302c6a43560f723d
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.7/bullseye
 
 Tags: 3.7.16-buster, 3.7-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 9dacd07bff4576c2ae58c8d9302c6a43560f723d
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.7/buster
 
 Tags: 3.7.16-slim-bullseye, 3.7-slim-bullseye, 3.7.16-slim, 3.7-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 9dacd07bff4576c2ae58c8d9302c6a43560f723d
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.7/slim-bullseye
 
 Tags: 3.7.16-slim-buster, 3.7-slim-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 9dacd07bff4576c2ae58c8d9302c6a43560f723d
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.7/slim-buster
 
 Tags: 3.8.16-alpine3.16, 3.8-alpine3.16
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: f5b7b5a332bd4d2c1518325ab9647b09bf07412f
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.8/alpine3.16
 
 Tags: 3.8.16-alpine3.17, 3.8-alpine3.17, 3.8.16-alpine, 3.8-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: f5b7b5a332bd4d2c1518325ab9647b09bf07412f
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.8/alpine3.17
 
 Tags: 3.8.16-bullseye, 3.8-bullseye
 SharedTags: 3.8.16, 3.8
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: f5b7b5a332bd4d2c1518325ab9647b09bf07412f
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.8/bullseye
 
 Tags: 3.8.16-buster, 3.8-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: f5b7b5a332bd4d2c1518325ab9647b09bf07412f
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.8/buster
 
 Tags: 3.8.16-slim-bullseye, 3.8-slim-bullseye, 3.8.16-slim, 3.8-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: f5b7b5a332bd4d2c1518325ab9647b09bf07412f
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.8/slim-bullseye
 
 Tags: 3.8.16-slim-buster, 3.8-slim-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: f5b7b5a332bd4d2c1518325ab9647b09bf07412f
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.8/slim-buster
 
 Tags: 3.9.16-alpine3.16, 3.9-alpine3.16
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: c65e0664a7a18ca566a744c6921eb66539337b0c
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.9/alpine3.16
 
 Tags: 3.9.16-alpine3.17, 3.9-alpine3.17, 3.9.16-alpine, 3.9-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: c65e0664a7a18ca566a744c6921eb66539337b0c
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.9/alpine3.17
 
 Tags: 3.9.16-bullseye, 3.9-bullseye
 SharedTags: 3.9.16, 3.9
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: c65e0664a7a18ca566a744c6921eb66539337b0c
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.9/bullseye
 
 Tags: 3.9.16-buster, 3.9-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: c65e0664a7a18ca566a744c6921eb66539337b0c
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.9/buster
 
 Tags: 3.9.16-slim-bullseye, 3.9-slim-bullseye, 3.9.16-slim, 3.9-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: c65e0664a7a18ca566a744c6921eb66539337b0c
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.9/slim-bullseye
 
 Tags: 3.9.16-slim-buster, 3.9-slim-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: c65e0664a7a18ca566a744c6921eb66539337b0c
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.9/slim-buster
 
 Tags: 3.10.9-alpine3.16, 3.10-alpine3.16
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.10/alpine3.16
 
 Tags: 3.10.9-alpine3.17, 3.10-alpine3.17, 3.10.9-alpine, 3.10-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.10/alpine3.17
 
 Tags: 3.10.9-bullseye, 3.10-bullseye
 SharedTags: 3.10.9, 3.10
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.10/bullseye
 
 Tags: 3.10.9-buster, 3.10-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.10/buster
 
 Tags: 3.10.9-slim-bullseye, 3.10-slim-bullseye, 3.10.9-slim, 3.10-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.10/slim-bullseye
 
 Tags: 3.10.9-slim-buster, 3.10-slim-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.10/slim-buster
 
 Tags: 3.10.9-windowsservercore-1809, 3.10-windowsservercore-1809
@@ -141,33 +141,33 @@ Constraints: windowsservercore-ltsc2022
 
 Tags: 3.11.1-alpine3.16, 3.11-alpine3.16, 3-alpine3.16, alpine3.16
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.11/alpine3.16
 
 Tags: 3.11.1-alpine3.17, 3.11-alpine3.17, 3-alpine3.17, alpine3.17, 3.11.1-alpine, 3.11-alpine, 3-alpine, alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.11/alpine3.17
 
 Tags: 3.11.1-bullseye, 3.11-bullseye, 3-bullseye, bullseye
 SharedTags: 3.11.1, 3.11, 3, latest
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.11/bullseye
 
 Tags: 3.11.1-buster, 3.11-buster, 3-buster, buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.11/buster
 
 Tags: 3.11.1-slim-bullseye, 3.11-slim-bullseye, 3-slim-bullseye, slim-bullseye, 3.11.1-slim, 3.11-slim, 3-slim, slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.11/slim-bullseye
 
 Tags: 3.11.1-slim-buster, 3.11-slim-buster, 3-slim-buster, slim-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 046374fd6a8186a58ef8099e8b5f43946487f5fa
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.11/slim-buster
 
 Tags: 3.11.1-windowsservercore-1809, 3.11-windowsservercore-1809, 3-windowsservercore-1809, windowsservercore-1809
@@ -186,33 +186,33 @@ Constraints: windowsservercore-ltsc2022
 
 Tags: 3.12.0a4-alpine3.16, 3.12-rc-alpine3.16
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: bff32fbfdbd737838c16c6b01ac910fb889e0767
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.12-rc/alpine3.16
 
 Tags: 3.12.0a4-alpine3.17, 3.12-rc-alpine3.17, 3.12.0a4-alpine, 3.12-rc-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: bff32fbfdbd737838c16c6b01ac910fb889e0767
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.12-rc/alpine3.17
 
 Tags: 3.12.0a4-bullseye, 3.12-rc-bullseye
 SharedTags: 3.12.0a4, 3.12-rc
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: bff32fbfdbd737838c16c6b01ac910fb889e0767
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.12-rc/bullseye
 
 Tags: 3.12.0a4-buster, 3.12-rc-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: bff32fbfdbd737838c16c6b01ac910fb889e0767
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.12-rc/buster
 
 Tags: 3.12.0a4-slim-bullseye, 3.12-rc-slim-bullseye, 3.12.0a4-slim, 3.12-rc-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: bff32fbfdbd737838c16c6b01ac910fb889e0767
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.12-rc/slim-bullseye
 
 Tags: 3.12.0a4-slim-buster, 3.12-rc-slim-buster
 Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: bff32fbfdbd737838c16c6b01ac910fb889e0767
+GitCommit: 0db1a5b346aab9304d0cfc4bf33268e1818ecc42
 Directory: 3.12-rc/slim-buster
 
 Tags: 3.12.0a4-windowsservercore-1809, 3.12-rc-windowsservercore-1809
diff --git a/python_3.10-alpine/Dockerfile b/python_3.10-alpine/Dockerfile
index 7648996..147fc27 100644
--- a/python_3.10-alpine/Dockerfile
+++ b/python_3.10-alpine/Dockerfile
@@ -84,7 +84,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.10-alpine3.16/Dockerfile b/python_3.10-alpine3.16/Dockerfile
index 3dd3b30..affda79 100644
--- a/python_3.10-alpine3.16/Dockerfile
+++ b/python_3.10-alpine3.16/Dockerfile
@@ -84,7 +84,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.10-bullseye/Dockerfile b/python_3.10-bullseye/Dockerfile
index 9eab04e..f5503d0 100644
--- a/python_3.10-bullseye/Dockerfile
+++ b/python_3.10-bullseye/Dockerfile
@@ -53,6 +53,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_3.10-buster/Dockerfile b/python_3.10-buster/Dockerfile
index 52625e7..cd98ac0 100644
--- a/python_3.10-buster/Dockerfile
+++ b/python_3.10-buster/Dockerfile
@@ -53,6 +53,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_3.10-slim-buster/Dockerfile b/python_3.10-slim-buster/Dockerfile
index 878165c..e049836 100644
--- a/python_3.10-slim-buster/Dockerfile
+++ b/python_3.10-slim-buster/Dockerfile
@@ -78,7 +78,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.10-slim/Dockerfile b/python_3.10-slim/Dockerfile
index c2b21e3..3532cd4 100644
--- a/python_3.10-slim/Dockerfile
+++ b/python_3.10-slim/Dockerfile
@@ -78,7 +78,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.12-rc-alpine/Dockerfile b/python_3.12-rc-alpine/Dockerfile
index d90ea26..2e071ba 100644
--- a/python_3.12-rc-alpine/Dockerfile
+++ b/python_3.12-rc-alpine/Dockerfile
@@ -84,7 +84,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.12-rc-alpine3.16/Dockerfile b/python_3.12-rc-alpine3.16/Dockerfile
index 1e499bb..5ce62ab 100644
--- a/python_3.12-rc-alpine3.16/Dockerfile
+++ b/python_3.12-rc-alpine3.16/Dockerfile
@@ -84,7 +84,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.12-rc-bullseye/Dockerfile b/python_3.12-rc-bullseye/Dockerfile
index 35f2794..c9d5c78 100644
--- a/python_3.12-rc-bullseye/Dockerfile
+++ b/python_3.12-rc-bullseye/Dockerfile
@@ -53,6 +53,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_3.12-rc-buster/Dockerfile b/python_3.12-rc-buster/Dockerfile
index 8c8c8cc..f20a5ca 100644
--- a/python_3.12-rc-buster/Dockerfile
+++ b/python_3.12-rc-buster/Dockerfile
@@ -53,6 +53,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_3.12-rc-slim-buster/Dockerfile b/python_3.12-rc-slim-buster/Dockerfile
index 3180be2..5ac1c14 100644
--- a/python_3.12-rc-slim-buster/Dockerfile
+++ b/python_3.12-rc-slim-buster/Dockerfile
@@ -78,7 +78,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.12-rc-slim/Dockerfile b/python_3.12-rc-slim/Dockerfile
index 37a56e4..66801a6 100644
--- a/python_3.12-rc-slim/Dockerfile
+++ b/python_3.12-rc-slim/Dockerfile
@@ -78,7 +78,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.7-alpine/Dockerfile b/python_3.7-alpine/Dockerfile
index 1090f9d..07d34f5 100644
--- a/python_3.7-alpine/Dockerfile
+++ b/python_3.7-alpine/Dockerfile
@@ -83,7 +83,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
 		PROFILE_TASK='-m test.regrtest --pgo \
 			test_array \
diff --git a/python_3.7-alpine3.16/Dockerfile b/python_3.7-alpine3.16/Dockerfile
index daf26d3..abd7638 100644
--- a/python_3.7-alpine3.16/Dockerfile
+++ b/python_3.7-alpine3.16/Dockerfile
@@ -83,7 +83,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
 		PROFILE_TASK='-m test.regrtest --pgo \
 			test_array \
diff --git a/python_3.7-bullseye/Dockerfile b/python_3.7-bullseye/Dockerfile
index 6ba7bf2..fc69647 100644
--- a/python_3.7-bullseye/Dockerfile
+++ b/python_3.7-bullseye/Dockerfile
@@ -52,6 +52,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
 		PROFILE_TASK='-m test.regrtest --pgo \
 			test_array \
diff --git a/python_3.7-buster/Dockerfile b/python_3.7-buster/Dockerfile
index 8b70d59..54309bf 100644
--- a/python_3.7-buster/Dockerfile
+++ b/python_3.7-buster/Dockerfile
@@ -52,6 +52,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
 		PROFILE_TASK='-m test.regrtest --pgo \
 			test_array \
diff --git a/python_3.7-slim-buster/Dockerfile b/python_3.7-slim-buster/Dockerfile
index de0bbdb..8069ab9 100644
--- a/python_3.7-slim-buster/Dockerfile
+++ b/python_3.7-slim-buster/Dockerfile
@@ -77,7 +77,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
 		PROFILE_TASK='-m test.regrtest --pgo \
 			test_array \
diff --git a/python_3.7-slim/Dockerfile b/python_3.7-slim/Dockerfile
index 7bf37f5..02fb002 100644
--- a/python_3.7-slim/Dockerfile
+++ b/python_3.7-slim/Dockerfile
@@ -77,7 +77,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
 		PROFILE_TASK='-m test.regrtest --pgo \
 			test_array \
diff --git a/python_3.8-alpine/Dockerfile b/python_3.8-alpine/Dockerfile
index 799ac40..a62ad1d 100644
--- a/python_3.8-alpine/Dockerfile
+++ b/python_3.8-alpine/Dockerfile
@@ -83,7 +83,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.8-alpine3.16/Dockerfile b/python_3.8-alpine3.16/Dockerfile
index cd0dd7e..0aecd15 100644
--- a/python_3.8-alpine3.16/Dockerfile
+++ b/python_3.8-alpine3.16/Dockerfile
@@ -83,7 +83,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.8-bullseye/Dockerfile b/python_3.8-bullseye/Dockerfile
index 671f566..66c323f 100644
--- a/python_3.8-bullseye/Dockerfile
+++ b/python_3.8-bullseye/Dockerfile
@@ -52,6 +52,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_3.8-buster/Dockerfile b/python_3.8-buster/Dockerfile
index 73e344e..e60029f 100644
--- a/python_3.8-buster/Dockerfile
+++ b/python_3.8-buster/Dockerfile
@@ -52,6 +52,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_3.8-slim-buster/Dockerfile b/python_3.8-slim-buster/Dockerfile
index f6583e9..b274c50 100644
--- a/python_3.8-slim-buster/Dockerfile
+++ b/python_3.8-slim-buster/Dockerfile
@@ -77,7 +77,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.8-slim/Dockerfile b/python_3.8-slim/Dockerfile
index 614094f..e6d9efc 100644
--- a/python_3.8-slim/Dockerfile
+++ b/python_3.8-slim/Dockerfile
@@ -77,7 +77,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.9-alpine/Dockerfile b/python_3.9-alpine/Dockerfile
index 15d4a3a..5604679 100644
--- a/python_3.9-alpine/Dockerfile
+++ b/python_3.9-alpine/Dockerfile
@@ -83,7 +83,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.9-alpine3.16/Dockerfile b/python_3.9-alpine3.16/Dockerfile
index 4a222ac..13e1ecf 100644
--- a/python_3.9-alpine3.16/Dockerfile
+++ b/python_3.9-alpine3.16/Dockerfile
@@ -83,7 +83,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.9-bullseye/Dockerfile b/python_3.9-bullseye/Dockerfile
index 56b859a..dfb6cfa 100644
--- a/python_3.9-bullseye/Dockerfile
+++ b/python_3.9-bullseye/Dockerfile
@@ -52,6 +52,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_3.9-buster/Dockerfile b/python_3.9-buster/Dockerfile
index 553b100..39e2b37 100644
--- a/python_3.9-buster/Dockerfile
+++ b/python_3.9-buster/Dockerfile
@@ -52,6 +52,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_3.9-slim-buster/Dockerfile b/python_3.9-slim-buster/Dockerfile
index eebe65b..d61c45e 100644
--- a/python_3.9-slim-buster/Dockerfile
+++ b/python_3.9-slim-buster/Dockerfile
@@ -77,7 +77,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_3.9-slim/Dockerfile b/python_3.9-slim/Dockerfile
index 1df0935..d0625c2 100644
--- a/python_3.9-slim/Dockerfile
+++ b/python_3.9-slim/Dockerfile
@@ -77,7 +77,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_alpine/Dockerfile b/python_alpine/Dockerfile
index 08d7332..94206b4 100644
--- a/python_alpine/Dockerfile
+++ b/python_alpine/Dockerfile
@@ -84,7 +84,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_alpine3.16/Dockerfile b/python_alpine3.16/Dockerfile
index 5182f56..9820e74 100644
--- a/python_alpine3.16/Dockerfile
+++ b/python_alpine3.16/Dockerfile
@@ -84,7 +84,10 @@ RUN set -eux; \
 # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit()
 # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0
 		EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_bullseye/Dockerfile b/python_bullseye/Dockerfile
index 5938265..84c6bba 100644
--- a/python_bullseye/Dockerfile
+++ b/python_bullseye/Dockerfile
@@ -53,6 +53,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_buster/Dockerfile b/python_buster/Dockerfile
index b363d72..12a30ca 100644
--- a/python_buster/Dockerfile
+++ b/python_buster/Dockerfile
@@ -53,6 +53,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \
 	; \
 	make install; \
 	\
diff --git a/python_slim-buster/Dockerfile b/python_slim-buster/Dockerfile
index eb607d6..f247000 100644
--- a/python_slim-buster/Dockerfile
+++ b/python_slim-buster/Dockerfile
@@ -78,7 +78,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\
diff --git a/python_slim/Dockerfile b/python_slim/Dockerfile
index fc57a2d..bbdbcfb 100644
--- a/python_slim/Dockerfile
+++ b/python_slim/Dockerfile
@@ -78,7 +78,10 @@ RUN set -eux; \
 	; \
 	nproc="$(nproc)"; \
 	make -j "$nproc" \
-		LDFLAGS="-Wl,--strip-all" \
+# \$ because of the double quotes in the shell to prevent interpolation
+# $$ for make to not interpret the $O
+# " because it needs the ' around the path, and '"'"' instead is 🤢
+		LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \
 	; \
 	make install; \
 	\

Relevant Maintainers:

@tianon tianon merged commit bda45a6 into docker-library:master Jan 17, 2023
@tianon tianon deleted the python branch January 17, 2023 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants