-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
gh-104692: Include commoninstall as a prerequisite for bininstall #104693
Conversation
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed.
When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: python/cpython#104693 Fixes: openwrt#19241 Signed-off-by: Jeffery To <[email protected]>
When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: python/cpython#104693 Fixes: openwrt#19241 Signed-off-by: Jeffery To <[email protected]>
When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: python/cpython#104693 Fixes: openwrt#19241 Signed-off-by: Jeffery To <[email protected]>
When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: python/cpython#104693 Fixes: #19241 Signed-off-by: Jeffery To <[email protected]>
When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: python/cpython#104693 Fixes: openwrt#19241 Signed-off-by: Jeffery To <[email protected]> (cherry picked from commit 67e47f1)
When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: python/cpython#104693 Fixes: openwrt#19241 Signed-off-by: Jeffery To <[email protected]> (cherry picked from commit 67e47f1) Signed-off-by: Jeffery To <[email protected]>
When doing parallel builds, host Python can install the python3 symlink before the Python standard library is installed completely. When this occurs, it is possible for other packages to detect the python3 symlink and try to use host Python before it is fully installed. This adds a patch to make commoninstall (where the standard library is installed) a prerequisite of bininstall (where the python3 symlink is installed), so that commoninstall is fully completed before bininstall begins. Patch has been submitted upstream: python/cpython#104693 Fixes: openwrt#19241 Signed-off-by: Jeffery To <[email protected]>
Add an explanation for why commoninstall is made a prerequisite of bininstall. Co-authored-by: Zachary Ware <[email protected]>
Thanks @jefferyto for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry @jefferyto and @ambv, I had trouble checking out the |
Sorry, @jefferyto and @ambv, I could not cleanly backport this to |
…ininstall (pythonGH-104693) This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed. Co-authored-by: Zachary Ware <[email protected]> (cherry picked from commit 990cb36) Co-authored-by: Jeffery To <[email protected]>
GH-105428 is a backport of this pull request to the 3.12 branch. |
GH-105429 is a backport of this pull request to the 3.11 branch. |
GH-105428 is a backport of this pull request to the 3.12 branch. |
…ininstall (pythonGH-104693) This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed. Co-authored-by: Zachary Ware <[email protected]>. (cherry picked from commit 990cb36) Co-authored-by: Jeffery To <[email protected]>
GH-105429 is a backport of this pull request to the 3.11 branch. |
Is there anything else I should do to have the backports merged? |
…all (GH-104693) (#105429) This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed. . (cherry picked from commit 990cb36) Co-authored-by: Erlend E. Aasland <[email protected]>
I merged them. |
960-fix-parallel-make.patch: fixed upstream python/cpython#104693
Includes fix for CVE-2023-40217 (Bypass TLS handshake on closed sockets). This also: * Remove 027-install-python3-symlink-after-stdlib.patch This was merged upstream in python/cpython#104693. * Remove fix for unnecessary linking with libbsd (60bf01c) This was fixed upstream in python/cpython#105236. Signed-off-by: Jeffery To <[email protected]>
Includes fix for CVE-2023-40217 (Bypass TLS handshake on closed sockets). This also: * Remove 027-install-python3-symlink-after-stdlib.patch This was merged upstream in python/cpython#104693. * Remove fix for unnecessary linking with libbsd (60bf01c) This was fixed upstream in python/cpython#105236. Signed-off-by: Jeffery To <[email protected]>
Includes fix for CVE-2023-40217 (Bypass TLS handshake on closed sockets). This also: * Remove 027-install-python3-symlink-after-stdlib.patch This was merged upstream in python/cpython#104693. * Remove fix for unnecessary linking with libbsd (60bf01c) This was fixed upstream in python/cpython#105236. Signed-off-by: Jeffery To <[email protected]>
Includes fix for CVE-2023-40217 (Bypass TLS handshake on closed sockets). This also: * Remove 027-install-python3-symlink-after-stdlib.patch This was merged upstream in python/cpython#104693. * Remove fix for unnecessary linking with libbsd (60bf01c) This was fixed upstream in python/cpython#105236. Signed-off-by: Jeffery To <[email protected]> (cherry picked from commit e42c845)
Includes fix for CVE-2023-40217 (Bypass TLS handshake on closed sockets). This also: * Remove 027-install-python3-symlink-after-stdlib.patch This was merged upstream in python/cpython#104693. * Remove fix for unnecessary linking with libbsd (60bf01c) This was fixed upstream in python/cpython#105236. Signed-off-by: Jeffery To <[email protected]> (cherry picked from commit e42c845)
Includes fix for CVE-2023-40217 (Bypass TLS handshake on closed sockets). This also: * Remove 027-install-python3-symlink-after-stdlib.patch This was merged upstream in python/cpython#104693. * Remove fix for unnecessary linking with libbsd (60bf01c) This was fixed upstream in python/cpython#105236. Signed-off-by: Jeffery To <[email protected]>
This ensures that
commoninstall
is completed beforebininstall
is started when parallel builds are used (make -j install
), and so thepython3
symlink is only installed after all standard library modules are installed.