Bug 2137832 - graphviz: FTBFS with SWIG 4.1.0
Summary: graphviz: FTBFS with SWIG 4.1.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: graphviz
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
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:55 UTC by Jitka Plesnikova
Modified: 2022-11-01 12:37 UTC (History)
4 users (show)

Fixed In Version: graphviz-7.0.0-2.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-01 12:37:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab graphviz graphviz issues 2277 0 None opened Rebuild of graphviz is failing with prepared SWIG 4.1.0 2022-10-26 10:55:38 UTC

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

libtool: warning: remember to run 'libtool --finish /usr/lib64/graphviz/perl'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/graphviz-7.0.0-1.fc38.x86_64/usr/lib64/graphviz/php'
 /usr/bin/install -p -m 644 ./gv.php '/builddir/build/BUILDROOT/graphviz-7.0.0-1.fc38.x86_64/usr/lib64/graphviz/php'
/usr/bin/install: cannot stat './gv.php': No such file or directory
make[5]: *** [Makefile:2711: install-pkgphpDATA] Error 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 ***

The error was reported to the upstream.

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

Comment 1 Jaroslav Škarvada 2022-11-01 12:15:38 UTC
Thanks for info, I will probably temporally drop the PHP support until resolved upstream.

Comment 2 Fedora Update System 2022-11-01 12:35:32 UTC
FEDORA-2022-01da25d816 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-01da25d816

Comment 3 Fedora Update System 2022-11-01 12:37:47 UTC
FEDORA-2022-01da25d816 has been pushed to the Fedora 38 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.