Bug 2413917 - python-giacpy FTBFS with Cython 3.2.0
Summary: python-giacpy FTBFS with Cython 3.2.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-giacpy
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Antonio T. sagitter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2412614 2414622
TreeView+ depends on / blocked
 
Reported: 2025-11-10 23:00 UTC by Charalampos Stratakis
Modified: 2025-12-04 12:49 UTC (History)
1 user (show)

Fixed In Version: python-giacpy-0.7.4-1.fc44
Clone Of:
Environment:
Last Closed: 2025-12-04 12:49:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Charalampos Stratakis 2025-11-10 23:00:22 UTC
Hello,

Via doing an impact check for the latest Cython 3.2.0, python-giacpy failed to build from source.

Snippet:

File "../../giacpy/giacpy.pyx", line 266, in giacpy.pyx
Failed example:
    A[0][0]=A[0][0]+1; A  # similar as A[0,0]=A[0,0]+1
Exception raised:
    Traceback (most recent call last):
      File "<doctest giacpy.pyx[54]>", line 1, in <module>
        A[0][0]=A[0][0]+1; A  # similar as A[0,0]=A[0,0]+1
        ~~~~^^^
      File "giacpy/giacpy.pyx", line 1027, in giacpy.giacpy.Pygen.__setitem__
    TypeError: Expected bool, got int
Trying:
    A.pcar(x)  # compute the characteristic polynomial of A
Expecting:
    x**2-48*x+170

Full build logs can be found here: https://copr.fedorainfracloud.org/coprs/cstratak/cython-3.2.0/package/python-giacpy/

The issue can be fixed with this patch, as Cython now explicitly expect a bool to be true:

--- a/giacpy/giacpy.pyx
+++ b/giacpy/giacpy.pyx
@@ -1024,10 +1024,10 @@ cdef class Pygen(GiacMethods_base):
         """
         cdef gen v
         cdef gen g = gen(<string>encstring23('GIACPY_TMP_NAME050268070969290100291003'),context_ptr)
-        GIAC_sto((<Pygen>self).gptr[0],g,1,context_ptr)
+        GIAC_sto((<Pygen>self).gptr[0],g,True,context_ptr)
         g=gen(<string>encstring23('GIACPY_TMP_NAME050268070969290100291003[%s]'%(str(key))),context_ptr)
         v=(<Pygen>(Pygen(value).eval())).gptr[0]
-        GIAC_sto(v,g,1,context_ptr)
+        GIAC_sto(v,g,True,context_ptr)
         Pygen('purge(GIACPY_TMP_NAME050268070969290100291003):;').eval()
         return

Reproducible: Always

Comment 1 Fedora Update System 2025-12-04 12:44:43 UTC
FEDORA-2025-e34676e725 (giac-2.0.0.17-1.fc44 and python-giacpy-0.7.4-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-e34676e725

Comment 2 Fedora Update System 2025-12-04 12:49:23 UTC
FEDORA-2025-e34676e725 (giac-2.0.0.17-1.fc44 and python-giacpy-0.7.4-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


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