[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin-apps
Subject:    Re: [RFU] ruby-puppet-lint-2.0.2-1
From:       David Stacey <drstacey () tiscali ! co ! uk>
Date:       2016-11-24 21:08:18
Message-ID: eea61656-312d-4e27-35f4-ba2c1845189a () tiscali ! co ! uk
[Download RAW message or body]

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.

Dave.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic