1 |
commit: 51de3cc6e49f194e44660b145e92034c33b94610 |
2 |
Author: Theo Anderson <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Thu Apr 15 04:40:12 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Thu Apr 15 07:09:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51de3cc6 |
7 |
|
8 |
dev-python/pyinstaller: don't pre-strip binaries |
9 |
|
10 |
Closes: https://bugs.gentoo.org/780984 |
11 |
Signed-off-by: Theo Anderson <telans <AT> posteo.de> |
12 |
|
13 |
.../files/pyinstaller-4.2-dont-pre-strip.patch | 23 ++++++++++++++++++++++ |
14 |
dev-python/pyinstaller/pyinstaller-4.2.ebuild | 2 ++ |
15 |
2 files changed, 25 insertions(+) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 000000000..ec6dcbbd4 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pyinstaller/files/pyinstaller-4.2-dont-pre-strip.patch |
22 |
@@ -0,0 +1,23 @@ |
23 |
+--- a/bootloader/wscript |
24 |
++++ b/bootloader/wscript |
25 |
+@@ -652,11 +652,6 @@ def configure(ctx): |
26 |
+ if ctx.env.DEST_OS == 'linux' and ctx.check_cc(cflags='-Wl,--as-needed'): |
27 |
+ ctx.env.append_value('LINKFLAGS', '-Wl,--as-needed') |
28 |
+ |
29 |
+- if ctx.env.CC_NAME != 'msvc': |
30 |
+- # This tool allows reducing the size of executables. |
31 |
+- ctx.find_program([assoc_programm(ctx, 'strip')], var='STRIP') |
32 |
+- ctx.load('strip', tooldir='tools') |
33 |
+- |
34 |
+ def windowed(name, baseenv): |
35 |
+ """Setup windowed environment based on `baseenv`.""" |
36 |
+ ctx.setenv(name, baseenv) # Inherit from `baseenv`. |
37 |
+@@ -731,7 +726,7 @@ def build(ctx): |
38 |
+ includes='zlib') |
39 |
+ |
40 |
+ # By default strip final executables to make them smaller. |
41 |
+- features = 'strip' |
42 |
++ features = '' |
43 |
+ if ctx.env.CC_NAME == 'msvc': |
44 |
+ # Do not strip bootloaders when using MSVC. |
45 |
+ features = '' |
46 |
|
47 |
diff --git a/dev-python/pyinstaller/pyinstaller-4.2.ebuild b/dev-python/pyinstaller/pyinstaller-4.2.ebuild |
48 |
index 568465d34..4eeffc3d6 100644 |
49 |
--- a/dev-python/pyinstaller/pyinstaller-4.2.ebuild |
50 |
+++ b/dev-python/pyinstaller/pyinstaller-4.2.ebuild |
51 |
@@ -15,3 +15,5 @@ SRC_URI="https://files.pythonhosted.org/packages/b4/83/9f6ff034650abe9778c9a4f86 |
52 |
LICENSE="GPL-2" |
53 |
SLOT="0" |
54 |
KEYWORDS="~amd64" |
55 |
+ |
56 |
+PATCHES=( "${FILESDIR}/${PN}-4.2-dont-pre-strip.patch" ) |