FTBFS

Description:

Package fails to build from source. I couldnt not find upstream issue, but this is the commit that fixes issue: https://github.com/wxWidgets/Phoenix/commit/fd8781c97a8a74c6e4bc6a91a25b40f0a8f2728d
Gentoo fix for this uses sed to accomplish essentially the same: https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-python/wxpython/wxpython-4.2.1-r2.ebuild?id=ddd27285d37ae7e9ebc54367d1144079ae967529

I didn't open mr for this as I don't know what is preferred resolution here. upstream patch changes 1 more small thing.

Additional info:

  • package version: 1:4.2.1-2
  • config and/or log files: Below
  • link to upstream bug report, if any: N/A

Steps to reproduce:

  1. Get PKGBUILD
  2. TRY to build.
  3. Error:
/build/python-wxpython/src/wxPython-4.2.1/build.py:43: DeprecationWarning: dep_util is Deprecated. Use functions from setuptools instead.
  from distutils.dep_util import newer, newer_group
/build/python-wxpython/src/wxPython-4.2.1/sphinxtools/constants.py:226: SyntaxWarning: invalid escape sequence '\w'
  CONSTANT_RE = re.compile('^([\w\s,]+)=', re.M)
/build/python-wxpython/src/wxPython-4.2.1/build.py:1406: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
  tf.extractall(tmpdir)
Setting top to                           : /build/python-wxpython/src/wxPython-4.2.1 
Setting out to                           : /build/python-wxpython/src/wxPython-4.2.1/build/waf/3.12/gtk3 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for program 'python'            : /usr/bin/python 
Checking for python version >= 3.7.0     : 3.12.4 
python-config                            : /usr/bin/python-config 
Asking python-config for pyext '--cflags --libs --ldflags' flags : yes 
Testing pyext configuration                                      : yes 
Finding libs for WX                                              : yes 
Finding libs for WXADV                                           : yes 
Finding libs for WXSTC                                           : yes 
Finding libs for WXHTML                                          : yes 
Finding libs for WXGL                                            : yes 
Finding libs for WXWEBVIEW                                       : yes 
Finding libs for WXXML                                           : yes 
Finding libs for WXXRC                                           : yes 
Finding libs for WXRICHTEXT                                      : yes 
Finding libs for WXMEDIA                                         : yes 
Finding libs for WXRIBBON                                        : yes 
Finding libs for WXPROPGRID                                      : yes 
Finding libs for WXAUI                                           : yes 
'configure' finished successfully (1.729s)
Waf: Entering directory `/build/python-wxpython/src/wxPython-4.2.1/build/waf/3.12/gtk3'
**** Compiler: /usr/bin/cc --version
     cc (GCC) 14.2.1 20240802
     Copyright (C) 2024 Free Software Foundation, Inc.
     This is free software; see the source for copying conditions.  There is NO
     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Waf: Leaving directory `/build/python-wxpython/src/wxPython-4.2.1/build/waf/3.12/gtk3'
source not found: 'sip/siplib/bool.cpp' in bld(source=['sip/siplib/apiversions.c', 'sip/siplib/bool.cpp', 'sip/siplib/descriptors.c', 'sip/siplib/int_convertors.c', 'sip/siplib/objmap.c', 'sip/siplib/qtlib.c', 'sip/siplib/sip_array.c', 'sip/siplib/siplib.c', 'sip/siplib/threads.c', 'sip/siplib/voidptr.c'], target='siplib', meths=['process_rule', 'process_source', 'set_bundle', 'apply_bundle', 'init_pyext', 'apply_link', 'apply_implib', 'process_use', 'propagate_uselib_vars', 'apply_incpaths', 'apply_vnum', 'set_macosx_deployment_target'], features=['c', 'cxx', 'cshlib', 'cxxshlib', 'pyext'], path=/build/python-wxpython/src/wxPython-4.2.1, idx=1, tg_idx_count=1, uselib='siplib WX WXPY', posted=True) in /build/python-wxpython/src/wxPython-4.2.1
Will build using: "/usr/bin/python"
3.12.4 (main, Jun  7 2024, 06:33:07) [GCC 14.1.1 20240522]
Python's architecture is 64bit
cfg.VERSION: 4.2.1

Running command: sip
Removing folder: sip/siplib
sip-module --sdist --abi-version 12.8 --target-dir /tmp/tmp2sajexrr wx.siplib
Finished command: sip (0.496s)
Running command: build
Running command: build_wx
use_syswx option specified, skipping wxWidgets build
Finished command: build_wx (0.0s)
Running command: build_py
"/usr/bin/python" /usr/bin/waf --wx_config=wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/3.12/gtk3 configure build 
Command '"/usr/bin/python" /usr/bin/waf --wx_config=wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/3.12/gtk3 configure build ' failed with exit code 1.
Finished command: build_py (0m2.123s)
Finished command: build (0m2.123s)
==> ERROR: A failure occurred in build().
    Aborting...
Edited by Michał Wojdyła