Fedora Rawhide recently moved to perl 5.22, and the polymake build is now broken. To complicate matters, we are currently stuck on Singular 3.x, since sagemath has not yet made the switch to Singular 4.x, so I cannot build polymake 2.14, but am instead stuck on the last 2.13 beta. I hope we can do something about this soon, but for the moment I need to figure out how to build that last beta with perl 5.22. I've come up with the attached patch. I suspect that the definition of SetPadnamesOfCurrentSub is wrong, but I'm not sure how. Certainly
something is wrong, as attempting to build the documentation fails like this:
/usr/bin/perl perl/polymake --ignore-config --script generate_docs /builddir/build/BUILDROOT/polymake-2.13-24.git20141013.fc23.x86_64/usr/share/polymake/doc common fulton polytope group graph ideal fan tropical matroid topaz
reference to an undeclared variable $VERSION at /usr/lib64/perl5/re.pm line 7.
Compilation failed in require at /builddir/build/BUILD/polymake-polymake-10d8dab/perllib/Polymake/utils.pl line 287.
BEGIN failed--compilation aborted at /builddir/build/BUILD/polymake-polymake-10d8dab/perllib/Polymake/utils.pl line 287.
Compilation failed in require at /builddir/build/BUILD/polymake-polymake-10d8dab/perllib/Polymake.pm line 62.
Compilation failed in require at perl/polymake line 168.
BEGIN failed--compilation aborted at perl/polymake line 168.
Makefile:179: recipe for target 'release-docs' failed
Any hints about how to fix the build with perl 5.22 would be most gratefully accepted. Thank you.