Make building RPMS and other Linux packages easier #17

Merged
merged 4 commits into from Dec 29, 2012

Conversation

Projects
None yet
2 participants
Contributor

hoelzro commented Dec 20, 2012

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.

hoelzro added some commits Dec 18, 2012

@hoelzro hoelzro Remove DESTDIR prefix from bin-install line
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.
5d804c4
@hoelzro hoelzro Set PERL6LIB to destination dir when precompiling
This allows package managers to install modules to a staging
directory with the process blowing up
428f9a8
@hoelzro hoelzro Explicitly specify module path when building debugger cd13191
@hoelzro hoelzro Set --dynext when building debugger
This requires a fairly new version of NQP
b2e6559

@pmichaud pmichaud added a commit that referenced this pull request Dec 29, 2012

@pmichaud pmichaud Merge pull request #17 from hoelzro/master
Make building RPMS and other Linux packages easier
173db46

@pmichaud pmichaud merged commit 173db46 into rakudo:master Dec 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment