Bug 2137815 - libkolabxml: FTBFS with SWIG 4.1.0
Summary: libkolabxml: FTBFS with SWIG 4.1.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libkolabxml
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Timotheus Pokorra
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F38FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-10-26 10:05 UTC by Jitka Plesnikova
Modified: 2022-11-07 13:29 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-11-07 13:29:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix for SWIG 4.1.0 (502 bytes, patch)
2022-10-26 10:05 UTC, Jitka Plesnikova
no flags Details | Diff

Description Jitka Plesnikova 2022-10-26 10:05:41 UTC
Created attachment 1920462 [details]
Fix for SWIG 4.1.0

Description of problem:
Package libkolabxml fails to build from source in Fedora Rawhide.

CMake Error at redhat-linux-build/src/php/cmake_install.cmake:85 (file):
  file INSTALL cannot find
  "/builddir/build/BUILD/libkolabxml-1.2.0/redhat-linux-build/src/php/kolabformat.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 ***


Possible fix of libkolabxml's code is attached.
Using of kolabformat.php has to be also removed from spec file.

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

Comment 1 Timotheus Pokorra 2022-11-03 08:37:03 UTC
Thanks for the patch, I am working on applying it.

Comment 2 Timotheus Pokorra 2022-11-03 08:50:56 UTC
After applying the patch, I still get the same build error.

What do you mean with: Using of kolabformat.php has to be also removed from spec file

Comment 4 Timotheus Pokorra 2022-11-07 13:29:39 UTC
Thanks for the help! It was built now for rawhide.


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