diff options
Diffstat (limited to 'meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch')
| -rw-r--r-- | meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch new file mode 100644 index 0000000000..0d65ebb598 --- /dev/null +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4/wxgtk-fixup-build-scripts.patch | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | Fix issues in build scripts: | ||
| 2 | |||
| 3 | * remove hardcode lib path from buildtools/config.py which is not suitable for | ||
| 4 | cross build | ||
| 5 | * only build target 'build_py' in setup.py | ||
| 6 | * do not override self.install_lib with self.install_platlib which causes | ||
| 7 | package issue when multilib is enabled. | ||
| 8 | |||
| 9 | Upstream-Status: Pending [cross build specific] | ||
| 10 | |||
| 11 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 12 | --- | ||
| 13 | buildtools/config.py | 4 ++-- | ||
| 14 | setup.py | 4 ++-- | ||
| 15 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/buildtools/config.py b/buildtools/config.py | ||
| 18 | index c837e5d..d426005 100644 | ||
| 19 | --- a/buildtools/config.py | ||
| 20 | +++ b/buildtools/config.py | ||
| 21 | @@ -312,8 +312,8 @@ class Configuration(object): | ||
| 22 | # wx-config doesn't output that for some reason. For now, just | ||
| 23 | # add it unconditionally but we should really check if the lib is | ||
| 24 | # really found there or wx-config should be fixed. | ||
| 25 | - if self.WXPORT != 'msw': | ||
| 26 | - self.libdirs.append("/usr/X11R6/lib") | ||
| 27 | + #if self.WXPORT != 'msw': | ||
| 28 | + # self.libdirs.append("/usr/X11R6/lib") | ||
| 29 | |||
| 30 | # Move the various -I, -D, etc. flags we got from the config scripts | ||
| 31 | # into the distutils lists. | ||
| 32 | diff --git a/setup.py b/setup.py | ||
| 33 | index 64bec4b..fb29253 100644 | ||
| 34 | --- a/setup.py | ||
| 35 | +++ b/setup.py | ||
| 36 | @@ -130,7 +130,7 @@ class wx_build(orig_build): | ||
| 37 | 'message and the wxWidgets and Phoenix build steps in the future.\n') | ||
| 38 | |||
| 39 | # Use the same Python that is running this script. | ||
| 40 | - cmd = ['"{}"'.format(sys.executable), '-u', 'build.py', 'build'] | ||
| 41 | + cmd = ['"{}"'.format(sys.executable), '-u', 'build.py', 'build_py'] | ||
| 42 | cmd = ' '.join(cmd) | ||
| 43 | runcmd(cmd) | ||
| 44 | |||
| 45 | @@ -233,7 +233,7 @@ if haveWheel: | ||
| 46 | class wx_install(orig_install): | ||
| 47 | def finalize_options(self): | ||
| 48 | orig_install.finalize_options(self) | ||
| 49 | - self.install_lib = self.install_platlib | ||
| 50 | + #self.install_lib = self.install_platlib | ||
| 51 | |||
| 52 | def run(self): | ||
| 53 | self.run_command("build") | ||
