rakudo/star — pull request #17 by hoelzro (2012-12-20 23:10:19+00:00)
Title: Make building RPMS and other Linux packages easier

This pull request includes several commits to make the creation of Linux distribution packages easier. Namely...

* If using DESTDIR to package up Rakudo Star in an RPM or similar format, the Makefile currently ends up writing the package build directory into the shebang line of the installed scripts. This is probably not a good idea.

* When installing into a packaging staging directory and precompiling modules, the compiler doesn't know where to find the modules it has installed thus far. I changed module-install.pl to help them figure it out.

* When building the Perl6 debugger, NQP has some trouble locating some resources that are in the staging directory but not in their final destination. This commit explicitly tells NQP where to find them.

The latest commit requires a fairly new version of NQP, so I understand if this can't be merged right away.

There are still things to do; there are annotations in the PIR output for the modules that indicate the staging directory, and hardcoded paths that point to the staging directory for loading dependencies in PIR. I hope to resolve these in later commits.