Skip Menu |

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 64638
Status: resolved
Priority: 0/
Queue: App-perlbrew

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.15
Fixed in: (no value)



Subject: Automatically apply build patches to old versions
5.8.8 and older will not build out of the box on many modern systems because of changes to GCC. This is usually solved by a patch to makedepend.SH. That's this problem: http://www.gossamer-threads.com/lists/perl/porters/225634 This means you can't build 5.8.8 with perlbrew. It would be extremely useful if perlbrew could apply basic build fix patches to the older versions of Perl. By default would be nice, people are more concerned with having a working install of Perl to test against than verifying that it doesn't build, with an option to turn it off. Architecturally, there could be a patches/ directory parallel to perls/ which contains patches for each version. patches/perl-5.8.8/ and so on. Perlbrew can come with the basics and users can add their own. These would be strictly limited to fixing the build process rather than runtime bug fixes. To get the ball rolling, I've supplied the makedepend patch for 5.8.8.
Subject: perl-5.8.8-makedepend.patch
--- a/makedepend.SH +++ b/makedepend.SH @@ -167,8 +167,11 @@ for file in `$cat .clist`; do -e '/^#.*<builtin>/d' \ -e '/^#.*<built-in>/d' \ -e '/^#.*<command line>/d' \ + -e '/^#.*<command-line>/d' \ -e '/^#.*"-"/d' \ + -e '/^#.*"\/.*\/"/d' \ -e '/: file path prefix .* never used$/d' \ + -e '/^#.*git_version\.h/d' \ -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \ -e 's/^[ ]*#[ ]*line/#/' \ -e '/^# *[0-9][0-9]* *[".\/]/!d' \
Here's a related pull request from rafl https://github.com/gugod/App-perlbrew/pull/48
delegates to patchperl