[RFU] ruby-puppet-lint-2.0.2-1

David Stacey drstacey@tiscali.co.uk
Thu Nov 24 21:08:00 GMT 2016

On 24/11/2016 08:35, Corinna Vinschen wrote:
>> usr/bin/puppet-lint starts with a shebang line like this:
>>    #!/usr/bin/ruby.exe
>> .exe???
> Ok, never mind.  I just realized that other ruby gems packages already come with
> that, too.

How unpleasant! It looks as though the shebang is being altered by 'gem 
install'. There is a perfectly decent shebang when the gem is unpacked, 
but this gets nobbled during the install process, probably by the 
shebang() function in /usr/share/rubygems/rubygems/installer.rb 
(shebang() function starts at line 500). Ideally this should be patched 
if someone can work out how the '.exe' is creeping in, as that would fix 
all gem packages when they are rebuilt.

The other option is for each gem package to call ruby_fix_shebang() in 
src_install() of their respective cygport files. But it would be better 
to patch 'gem' if at all possible.

Anyway, thanks for taking the time to look at these packages.


More information about the Cygwin-apps mailing list