public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: David Stacey <drstacey@tiscali.co.uk>
To: cygwin-apps@cygwin.com
Subject: Re: [RFU] ruby-puppet-lint-2.0.2-1
Date: Thu, 24 Nov 2016 21:08:00 -0000	[thread overview]
Message-ID: <eea61656-312d-4e27-35f4-ba2c1845189a@tiscali.co.uk> (raw)
In-Reply-To: <20161124083537.GD1220@calimero.vinschen.de>

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.

      reply	other threads:[~2016-11-24 21:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5808359D010C534D@ms13gb1.int.opaltelecom.net>
2016-11-11  0:49 ` David Stacey
2016-11-11  0:53   ` David Stacey
2016-11-24  8:25     ` Corinna Vinschen
2016-11-24  8:35       ` Corinna Vinschen
2016-11-24 21:08         ` David Stacey [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eea61656-312d-4e27-35f4-ba2c1845189a@tiscali.co.uk \
    --to=drstacey@tiscali.co.uk \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).