Bug 1725787 - YafaRay fails to build with Python 3.8
Summary: YafaRay fails to build with Python 3.8
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: YafaRay
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
Reported: 2019-07-01 12:58 UTC by Miro Hrončok
Modified: 2019-08-21 17:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github YafaRay Core pull 114 None None None 2019-07-02 11:09:38 UTC

Description Miro Hrončok 2019-07-01 12:58:00 UTC
YafaRay fails to build with Python 3.8.0b1:

PYTHON_wrap.cxx:5223:1: error: cannot convert 'std::nullptr_t' to 'Py_ssize_t' {aka 'long int'} in initialization

For the build logs, see:

For all our attempts to build YafaRay with Python 3.8, see:

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8:

Let us know here if you have any questions.

Comment 1 Victor Stinner 2019-07-01 13:12:25 UTC
> https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00951672-YafaRay/


BUILDSTDERR: cd /builddir/build/BUILD/Core-67f658698ad46d9cc0b69288782aa2ffe4c8bcf1/src/xml_loader && /usr/builddir/build/BUILD/Core-67f658698ad46d9cc0b69288782aa2ffe4c8bcf1/src/bindings/yafaray_v3_interfacePYTHON_wrap.cxx:5223:1: error: cannot convert 'std::nullptr_t' to 'Py_ssize_t' {aka 'long int'} in initialization
BUILDSTDERR:  5223 | };
BUILDSTDERR:       | ^
BUILDSTDERR: make[2]: *** [src/bindings/CMakeFiles/_yafaray_v3_interface.dir/build.make:70: src/bindings/CMakeFiles/_yafaray_v3_interface.dir/yafaray_v3_interfacePYTHON_wrap.cxx.o] Error 1

Source file:

Oh, it looks like a SWIG binding. Maybe SWIG isn't fully compatible with Python 3.8.

Comment 2 Luya Tshimbalanga 2019-07-01 19:29:23 UTC
Filed the issue upstream: http://www.yafaray.org/node/831

Comment 3 Petr Viktorin 2019-07-02 11:09:38 UTC
In Python 3.8, the reserved "tp_print" slot was changed from a function pointer to a number, `Py_ssize_t tp_vectorcall_offset`.
In C, there is no "nullptr"; either a 0 or NULL casts automatically to both pointers and numbers.

Please use 0 instead of "nullptr" in the slot to be source-compatible both with Python 3.8 and previous versions.

Upstream PR: https://github.com/YafaRay/Core/pull/114

Comment 4 Ben Cotton 2019-08-13 16:49:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 5 Miro Hrončok 2019-08-14 22:24:35 UTC
The coordinated rebuild of Python 3.8 has started in the `f32-python` side tag.

If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:

    on branch master:
    $ fedpkg build --target=f32-python

To wait for a build to show up in the side tag, do:

    $ koji wait-repo f32-python --build=<nvr>

Where <nvr> is name-version-release of the source package, e.g. python-foo-1.1-2.fc32.

An updated mock config is posted at:

Note that it will take a while before the essential packages are rebuilt, so don't expect all your dependencies to be available right away.

Thanks. Let us know if you need up to date info, or if you have any questions.

PS this message is mass posted to all the bugs that block the PYTHON38 bug. If this is also a Fedora 31 FTBFS bug and you manage to fix it, you can do a f31 build as usual:

    on branch f31:
    $ fedpkg build

Comment 6 Miro Hrončok 2019-08-21 16:35:20 UTC
The f32-python side tag has been merged. In order to rebuild the package, do it in regular rawhide, but please wait until python3-3.8 is tagged:

  $ koji wait-repo f32-build --build python3-3.8.0~b3-3.fc32

If your built already started in f32-python, after it is finished, please tag it to rawhide with:

  $ koji tag-build f32-pending <nvr>

For example:

  $ koji tag-build f32-pending libreoffice-


(This comment is mass posted to all bugzillas blocking the PYTHON38 tracking bug.)

Comment 7 Miro Hrončok 2019-08-21 17:29:22 UTC
(Python 3.8 has landed in the rawhide buildroot.)

Note You need to log in before you can comment on or make changes to this bug.