Bug 2137811

Summary: mlt: FTBFS with SWIG 4.1.0
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: mltAssignee: Sergio Basto <sergio>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mgansser, sergio
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/mlt
Whiteboard:
Fixed In Version: mlt-7.10.0-1.fc36 mlt-7.10.0-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-13 01:17:56 UTC Type: Bug
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: 2117176    

Description Jitka Plesnikova 2022-10-26 09:56:03 UTC
Description of problem:
Package mlt fails to build from source in Fedora Rawhide with SWIG 4.1.0.

CMake Error at redhat-linux-build/src/swig/php/cmake_install.cmake:56 (file):
  file INSTALL cannot find
  "/builddir/build/BUILD/mlt-7.8.0/redhat-linux-build/src/swig/php/mlt.php":
  No such file or directory.

The source of the failure is this change:
2021-05-04: olly
   [PHP] #1982 #1457 https://sourceforge.net/p/swig/bugs/1339/
   SWIG now only use PHP's C API to implement its wrappers, and no
   longer generates PHP code to define classes.  The wrappers should
   be almost entirely compatible with those generated before, but
   faster and without some previously hard-to-fix bugs.

   The main notable difference is SWIG no longer generates a .php
   wrapper at all by default (only if %pragma(php) code=... or
   %pragma(php) include=... are specified in the interface file).
   This also means you need to load the module via extension=...
   in php.ini, rather than letting the dl() in the generated
   .php wrapper load it (but dl() has only worked for command-line
   PHP for some years now).

   *** POTENTIAL INCOMPATIBILITY ***

mlt upstream already fixed it.
The file mlt.php must be also removed from the section '%files php' in spec file.

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

Comment 1 Sergio Basto 2022-11-04 10:50:59 UTC
SWIG 4.1.0 will go to F37 ?

Comment 2 Jitka Plesnikova 2022-11-04 11:51:13 UTC
(In reply to Sergio Basto from comment #1)
> SWIG 4.1.0 will go to F37 ?
No, because there is a lot of incompatible changes. 

SWIG 4.1.0 is available only as a module swig:4.1 for F37 and older.

Comment 3 Fedora Update System 2022-11-05 14:11:34 UTC
FEDORA-2022-7ac2e4b9de has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-7ac2e4b9de

Comment 4 Fedora Update System 2022-11-05 14:11:59 UTC
FEDORA-2022-fb45a750c5 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-fb45a750c5

Comment 5 Fedora Update System 2022-11-05 17:06:20 UTC
FEDORA-2022-fb45a750c5 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-fb45a750c5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-fb45a750c5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-11-06 17:55:08 UTC
FEDORA-2022-7ac2e4b9de has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-7ac2e4b9de`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-7ac2e4b9de

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-11-13 01:17:56 UTC
FEDORA-2022-fb45a750c5 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2022-11-14 01:13:19 UTC
FEDORA-2022-7ac2e4b9de has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.