Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890953 - dev-python/wxpython does not compile with musl (error: invalid cast from type 'std::nullptr_t' to type 'wxPGProperty*')
Summary: dev-python/wxpython does not compile with musl (error: invalid cast from type...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2023-01-15 15:27 UTC by Tohka
Modified: 2023-02-17 08:40 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Files including emerge info and the build logs + patch (files.tar.gz,38.53 KB, application/gzip)
2023-01-15 15:27 UTC, Tohka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tohka 2023-01-15 15:27:26 UTC
Created attachment 848583 [details]
Files including emerge info and the build logs + patch

wxpython does not compile on musl. I have brought up this issue on #gentoo irc and was advised to try out a musl.patch for wxpython however that also failed. Build logs of the emerge without the patch (build_log.txt), Build log of emerge with the patch (build_log_with_patch.txt), emerge --info (info.txt) and the patch (musl.patch) can be found inside the attached folder. This is my first bug report so please let me know if I have made any mistakes.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-15 15:30:10 UTC
../../../../sip/cpp/sip_propgridwxPGPropArgCls.cpp: In function 'int convertTo_wxPGPropArgCls(PyObject*, void**, int*, PyObject*)':
../../../../sip/cpp/sip_propgridwxPGPropArgCls.cpp:320:45: error: invalid cast from type 'std::nullptr_t' to type 'wxPGProperty*'
  320 |             *sipCppPtr = new wxPGPropArgCls(reinterpret_cast< wxPGProperty * >(NULL));
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Waf: Leaving directory `/var/tmp/portage/dev-python/wxpython-4.0.7-r4/work/wxPython-4.0.7.post2-python3_10/build/waf/3.1/gtk3'
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-15 15:30:41 UTC
The patch is from https://github.com/wxWidgets/Phoenix/pull/1445 but it proved insufficient -- not sure if we need to force regeneration somehow..?
Comment 3 Larry the Git Cow gentoo-dev 2023-02-17 08:40:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6abcc6cb062e9d7625c9a96a0adb6a8a0fb19ded

commit 6abcc6cb062e9d7625c9a96a0adb6a8a0fb19ded
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-03 14:40:26 +0000
Commit:     Arsen Arsenović <arsen@gentoo.org>
CommitDate: 2023-02-17 08:38:30 +0000

    dev-python/wxpython: add 4.2.0
    
    Thanks to Ștefan Talpalaru <stefantalpalaru@yahoo.com> for his notes in the
    bump bug.
    
    Closes: https://bugs.gentoo.org/542672
    Closes: https://bugs.gentoo.org/766914
    Closes: https://bugs.gentoo.org/890953
    Signed-off-by: Sam James <sam@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/29407
    Signed-off-by: Arsen Arsenović <arsen@gentoo.org>

 dev-python/wxpython/Manifest                       |   1 +
 .../wxpython/files/wxpython-4.2.0-flags.patch      |  16 +++
 .../files/wxpython-4.2.0-no-attrdict.patch         |  13 +++
 .../wxpython/files/wxpython-4.2.0-no-webkit.patch  |  27 +++++
 dev-python/wxpython/wxpython-4.2.0.ebuild          | 125 +++++++++++++++++++++
 5 files changed, 182 insertions(+)