Bug 2137823 - mapserver: FTBFS with SWIG 4.1.0
Summary: mapserver: FTBFS with SWIG 4.1.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mapserver
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Lisý
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:24 UTC by Jitka Plesnikova
Modified: 2022-10-30 09:47 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-10-30 09:47:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jitka Plesnikova 2022-10-26 10:24:41 UTC
Description of problem:
Package mapserver fails to build from source in Fedora Rawhide with SWIG 4.1.0.

RPM build errors:
    File not found: /builddir/build/BUILDROOT/mapserver-8.0.0-2.fc38.x86_64/usr/lib64/php/modules/mapscript.php
Child return code was: 1

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 ***


Mapserver source code was fixed in version 8.0.0.
https://github.com/MapServer/MapServer/commit/a3d65f412e58bd7611830db49c92e2e6fb67caf3

The file mapscript.php must be also removed from the section '%files -n php-%{name}' in spec file.

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

Comment 1 Sandro Mani 2022-10-30 09:47:54 UTC
Thanks, fixed.


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