From f44d4acbfb0aa19facde0f13d5ba33314e39ad59 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Wed, 15 Mar 2023 22:28:55 +1100 Subject: [PATCH] Fix permissions of python 3.1->3.4 For some reason these also install non-writable files breaking bubblewrap mode. --- sysc/python-3.1.5/patches/install-perms.patch | 19 +++++++++++++++++++ sysc/python-3.3.7/patches/install-perms.patch | 19 +++++++++++++++++++ .../python-3.4.10/patches/install-perms.patch | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 sysc/python-3.1.5/patches/install-perms.patch create mode 100644 sysc/python-3.3.7/patches/install-perms.patch create mode 100644 sysc/python-3.4.10/patches/install-perms.patch diff --git a/sysc/python-3.1.5/patches/install-perms.patch b/sysc/python-3.1.5/patches/install-perms.patch new file mode 100644 index 0000000..7a22347 --- /dev/null +++ b/sysc/python-3.1.5/patches/install-perms.patch @@ -0,0 +1,19 @@ +SPDX-FileCopyrightText: 2023 fosslinux + +SPDX-License-Identifier: PSF-2.0 + +Install libraries with 755 instead of 555 so we can strip them. (This +is what is in modern versions of python). + +--- Makefile.pre.in 2023-03-15 21:49:08.274186777 +1100 ++++ Makefile.pre.in 2023-03-15 21:50:02.466143662 +1100 +@@ -54,8 +54,7 @@ + INSTALL_DATA= @INSTALL_DATA@ + # Shared libraries must be installed with executable mode on some systems; + # rather than figuring out exactly which, we always give them executable mode. +-# Also, making them read-only seems to be a good idea... +-INSTALL_SHARED= ${INSTALL} -m 555 ++INSTALL_SHARED= ${INSTALL} -m 755 + + MAKESETUP= $(srcdir)/Modules/makesetup + diff --git a/sysc/python-3.3.7/patches/install-perms.patch b/sysc/python-3.3.7/patches/install-perms.patch new file mode 100644 index 0000000..7a22347 --- /dev/null +++ b/sysc/python-3.3.7/patches/install-perms.patch @@ -0,0 +1,19 @@ +SPDX-FileCopyrightText: 2023 fosslinux + +SPDX-License-Identifier: PSF-2.0 + +Install libraries with 755 instead of 555 so we can strip them. (This +is what is in modern versions of python). + +--- Makefile.pre.in 2023-03-15 21:49:08.274186777 +1100 ++++ Makefile.pre.in 2023-03-15 21:50:02.466143662 +1100 +@@ -54,8 +54,7 @@ + INSTALL_DATA= @INSTALL_DATA@ + # Shared libraries must be installed with executable mode on some systems; + # rather than figuring out exactly which, we always give them executable mode. +-# Also, making them read-only seems to be a good idea... +-INSTALL_SHARED= ${INSTALL} -m 555 ++INSTALL_SHARED= ${INSTALL} -m 755 + + MAKESETUP= $(srcdir)/Modules/makesetup + diff --git a/sysc/python-3.4.10/patches/install-perms.patch b/sysc/python-3.4.10/patches/install-perms.patch new file mode 100644 index 0000000..7a22347 --- /dev/null +++ b/sysc/python-3.4.10/patches/install-perms.patch @@ -0,0 +1,19 @@ +SPDX-FileCopyrightText: 2023 fosslinux + +SPDX-License-Identifier: PSF-2.0 + +Install libraries with 755 instead of 555 so we can strip them. (This +is what is in modern versions of python). + +--- Makefile.pre.in 2023-03-15 21:49:08.274186777 +1100 ++++ Makefile.pre.in 2023-03-15 21:50:02.466143662 +1100 +@@ -54,8 +54,7 @@ + INSTALL_DATA= @INSTALL_DATA@ + # Shared libraries must be installed with executable mode on some systems; + # rather than figuring out exactly which, we always give them executable mode. +-# Also, making them read-only seems to be a good idea... +-INSTALL_SHARED= ${INSTALL} -m 555 ++INSTALL_SHARED= ${INSTALL} -m 755 + + MAKESETUP= $(srcdir)/Modules/makesetup +