Bug 2319133 - libftdi fails to build with Swig 4.3.0
Summary: libftdi fails to build with Swig 4.3.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libftdi
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Dan Horák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-16 11:49 UTC by Jitka Plesnikova
Modified: 2024-10-18 12:04 UTC (History)
4 users (show)

Fixed In Version: libftdi-1.5-16.fc42
Clone Of:
Environment:
Last Closed: 2024-10-18 12:04:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources libftdi pull-request 4 0 None None None 2024-10-18 07:49:55 UTC

Description Jitka Plesnikova 2024-10-16 11:49:16 UTC
libftdi fails to build with preparing Swig 4.3.0. I tested build in Copr

https://copr.fedorainfracloud.org/coprs/jplesnik/swig-rebuild/build/8116832/

due to an incompatible change in Swig

https://github.com/swig/swig/blob/master/CHANGES.current

"[Python] #2907 Fix returning null from functions with output
            parameters.  Ensures OUTPUT and INOUT typemaps are handled
            consistently wrt return type.

            New declaration of SWIG_Python_AppendOutput is now:

              SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void);

            The 3rd parameter is new and the new $isvoid special variable
            should be passed to it, indicating whether or not the wrapped
            function returns void.

            Also consider replacing with:

              SWIG_AppendOutput(PyObject* result, PyObject* obj);

            which calls SWIG_Python_AppendOutput with same parameters but adding $isvoid
            for final parameter."

I prepared PR with fix
https://src.fedoraproject.org/rpms/libftdi/pull-request/4

Reproducible: Always

Comment 1 Dan Horák 2024-10-18 09:33:29 UTC
fix sent upstream as http://developer.intra2net.com/mailarchive/html/libftdi/2024/msg00024.html

Comment 2 Fedora Update System 2024-10-18 09:41:12 UTC
FEDORA-2024-5787b8e047 (libftdi-1.5-16.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-5787b8e047

Comment 3 Fedora Update System 2024-10-18 12:04:07 UTC
FEDORA-2024-5787b8e047 (libftdi-1.5-16.fc42) has been pushed to the Fedora 42 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.