Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-64318

[RHEL10][CS10] dtc fails to build with Swig 4.3.0

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.0
    • rhel-10.0
    • dtc
    • dtc-1.7.0-12.el10
    • No
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      dtc fails to build with preparing Swig 4.3.0. I tested rebuild in Copr:
      https://copr.devel.redhat.com/coprs/jplesnik/swig43/build/117053/

      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."
      

      The fix is attached and it works also with older releases of swig.

              rhn-support-dgibson David Gibson (Inactive)
              jplesnik@redhat.com Jitka Plesnikova
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: