commit:     51de3cc6e49f194e44660b145e92034c33b94610
Author:     Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Thu Apr 15 04:40:12 2021 +0000
Commit:     Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Thu Apr 15 07:09:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51de3cc6

dev-python/pyinstaller: don't pre-strip binaries

Closes: https://bugs.gentoo.org/780984
Signed-off-by: Theo Anderson <telans <AT> posteo.de>

 .../files/pyinstaller-4.2-dont-pre-strip.patch     | 23 ++++++++++++++++++++++
 dev-python/pyinstaller/pyinstaller-4.2.ebuild      |  2 ++
 2 files changed, 25 insertions(+)

diff --git a/dev-python/pyinstaller/files/pyinstaller-4.2-dont-pre-strip.patch 
b/dev-python/pyinstaller/files/pyinstaller-4.2-dont-pre-strip.patch
new file mode 100644
index 000000000..ec6dcbbd4
--- /dev/null
+++ b/dev-python/pyinstaller/files/pyinstaller-4.2-dont-pre-strip.patch
@@ -0,0 +1,23 @@
+--- a/bootloader/wscript
++++ b/bootloader/wscript
+@@ -652,11 +652,6 @@ def configure(ctx):
+     if ctx.env.DEST_OS == 'linux' and ctx.check_cc(cflags='-Wl,--as-needed'):
+         ctx.env.append_value('LINKFLAGS', '-Wl,--as-needed')
+ 
+-    if ctx.env.CC_NAME != 'msvc':
+-        # This tool allows reducing the size of executables.
+-        ctx.find_program([assoc_programm(ctx, 'strip')], var='STRIP')
+-        ctx.load('strip', tooldir='tools')
+-
+     def windowed(name, baseenv):
+         """Setup windowed environment based on `baseenv`."""
+         ctx.setenv(name, baseenv)  # Inherit from `baseenv`.
+@@ -731,7 +726,7 @@ def build(ctx):
+             includes='zlib')
+ 
+     # By default strip final executables to make them smaller.
+-    features = 'strip'
++    features = ''
+     if ctx.env.CC_NAME == 'msvc':
+         # Do not strip bootloaders when using MSVC.
+         features = ''

diff --git a/dev-python/pyinstaller/pyinstaller-4.2.ebuild 
b/dev-python/pyinstaller/pyinstaller-4.2.ebuild
index 568465d34..4eeffc3d6 100644
--- a/dev-python/pyinstaller/pyinstaller-4.2.ebuild
+++ b/dev-python/pyinstaller/pyinstaller-4.2.ebuild
@@ -15,3 +15,5 @@ 
SRC_URI="https://files.pythonhosted.org/packages/b4/83/9f6ff034650abe9778c9a4f86
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64"
+
+PATCHES=( "${FILESDIR}/${PN}-4.2-dont-pre-strip.patch" )

Reply via email to