Environment with SWIG ≥4.1.0 cannot compile the portable source tarball
Steps to reproduce
- Install Fedora 38
- Install all the Graphviz deps, noting that Fedora 38’s package repos have SWIG 4.1.1
- Untar and compile the portable source tarball as CI would
Expected Behaviour
Successful compilation.
Actual Behaviour
Processing files: graphviz-lang-php-8.0.5~dev.20230425.0046-1.fc38.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/graphviz-8.0.5~dev.20230425.0046-1.fc38.x86_64/usr/share/php*/*
warning: File not found: /root/rpmbuild/BUILDROOT/graphviz-8.0.5~dev.20230425.0046-1.fc38.x86_64/usr/lib64/graphviz/php/*.php
…
File not found: /root/rpmbuild/BUILDROOT/graphviz-8.0.5~dev.20230425.0046-1.fc38.x86_64/usr/lib64/graphviz/php/*.php
RPM build errors:
File not found: /root/rpmbuild/BUILDROOT/graphviz-8.0.5~dev.20230425.0046-1.fc38.x86_64/usr/share/php*/*
OS Version
Fedora 38
Graphviz Version
Commit c376fc7f.
Additional info
What seems to be happening is that ./autogen.sh
is committing to a SWIG version. Seeing SWIG 3.0.12 during construction of the portable source on Ubuntu 18.04, it’s taking the true branch of the test against SWIG<4.1.0 and assigning SWIG_PHP_DATA
. Then later during compilation on Fedora 38, tclpkg/Makefile incorrectly has the WITH_SWIG_PHP_DATA
paths enabled.