johnl/deb-passenger — pull request #5 by patdowney (2012-04-05 09:50:18+00:00)
Title: Be explicit about the ruby version used when calling rake.

The scenario we ran into (maybe an edge case) was that update-alternatives had been used to change the default ruby version from /usr/bin/ruby1.8 to /usr/bin/ruby1.9.1. In this case packaging of one of the debs would fail while running debuild because it was trying to install files to usr/lib/ruby/1.9.1/ twice.

This commit changes debian/rules to call rake using ruby1.8 explicitly to avoid this situation. Patch has been tested on with Ubuntu 12.04 and Debian 6, and by test I mean 'debuild -uc -us' has run successfully on each of the platforms both with the default ruby version being 1.8 and also 1.9.1