Bug 2333486

Summary: python-gradunwarp: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Sandro <gui1ty>
Component: python-gradunwarpAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: igor.raits, neuro-sig, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/python-gradunwarp
Whiteboard:
Fixed In Version: python-gradunwarp-1.2.3-2.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-24 10:55:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2332159    

Description Sandro 2024-12-20 11:33:25 UTC
Description of problem:
Package python-gradunwarp fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
1.2.2-6.fc41

Steps to Reproduce:
koji build --scratch f42 python-gradunwarp-1.2.2-6.fc41.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-gradunwarp

Reproducible: Always

Actual Results:  
  gradunwarp/core/interp3_ext.c: In function ‘interp3’:
  gradunwarp/core/interp3_ext.c:93:31: error: lvalue required as left operand of assignment
     93 |         PyArray_FLAGS(result) |= NPY_OWNDATA;
        |                               ^~
  gradunwarp/core/interp3_ext.c:97:51: warning: passing argument 1 of ‘(PyObject * (*)(PyObject *))*(PyArray_API + 784)’ from incompatible pointer type [-Wincompatible-pointer-types]
     97 |     itr_v = (PyArrayIterObject *) PyArray_IterNew(result);
        |                                                   ^~~~~~
        |                                                   |
        |                                                   PyArrayObject * {aka struct tagPyArrayObject_fields *}
  gradunwarp/core/interp3_ext.c:97:51: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject_fields *’}
  gradunwarp/core/interp3_ext.c:98:51: warning: passing argument 1 of ‘(PyObject * (*)(PyObject *))*(PyArray_API + 784)’ from incompatible pointer type [-Wincompatible-pointer-types]
     98 |     itr_r = (PyArrayIterObject *) PyArray_IterNew(R);
        |                                                   ^
        |                                                   |
        |                                                   PyArrayObject * {aka struct tagPyArrayObject_fields *}
  gradunwarp/core/interp3_ext.c:98:51: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject_fields *’}
  gradunwarp/core/interp3_ext.c:99:51: warning: passing argument 1 of ‘(PyObject * (*)(PyObject *))*(PyArray_API + 784)’ from incompatible pointer type [-Wincompatible-pointer-types]
     99 |     itr_c = (PyArrayIterObject *) PyArray_IterNew(C);
        |                                                   ^
        |                                                   |
        |                                                   PyArrayObject * {aka struct tagPyArrayObject_fields *}
  gradunwarp/core/interp3_ext.c:99:51: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject_fields *’}
  gradunwarp/core/interp3_ext.c:100:51: warning: passing argument 1 of ‘(PyObject * (*)(PyObject *))*(PyArray_API + 784)’ from incompatible pointer type [-Wincompatible-pointer-types]
    100 |     itr_s = (PyArrayIterObject *) PyArray_IterNew(S);
        |                                                   ^
        |                                                   |
        |                                                   PyArrayObject * {aka struct tagPyArrayObject_fields *}
  gradunwarp/core/interp3_ext.c:100:51: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject_fields *’}
  gradunwarp/core/interp3_ext.c:123:16: warning: returning ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject_fields *’} from a function with incompatible return type ‘PyObject *’ {aka ‘struct _object *’} [-Wincompatible-pointer-types]
    123 |         return result;
        |                ^~~~~~
  error: command '/usr/bin/gcc' failed with exit code 1

Comment 1 Sandro 2024-12-20 11:34:52 UTC
Upstream appears rather dormant. Last commit was half a year ago.

Comment 2 Fedora Update System 2024-12-24 10:52:46 UTC
FEDORA-2024-e564974f16 (python-gradunwarp-1.2.3-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e564974f16

Comment 3 Fedora Update System 2024-12-24 10:55:50 UTC
FEDORA-2024-e564974f16 (python-gradunwarp-1.2.3-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.