From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38223 invoked by alias); 24 Nov 2016 21:08:29 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 38213 invoked by uid 89); 24 Nov 2016 21:08:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_COUK,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=altered, H*Ad:D*co.uk, UD:co.uk X-HELO: smtp-d-1.tiscali.co.uk Received: from smtp-d-1.tiscali.co.uk (HELO smtp-d-1.tiscali.co.uk) (62.24.229.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Nov 2016 21:08:27 +0000 Received: from [10.8.8.82] ([62.210.140.96]) by smtp.talktalk.net with SMTP id A1FgcsiyvU65lA1Focb4T6; Thu, 24 Nov 2016 21:08:24 +0000 Subject: Re: [RFU] ruby-puppet-lint-2.0.2-1 To: cygwin-apps@cygwin.com References: <5808359D010C534D@ms13gb1.int.opaltelecom.net> <0ece74be-a412-2373-04f6-235bfbfc9c4e@tiscali.co.uk> <801a7127-9dc3-fdd6-8d08-2078a1076ebc@tiscali.co.uk> <20161124082503.GB1220@calimero.vinschen.de> <20161124083537.GD1220@calimero.vinschen.de> From: David Stacey Message-ID: Date: Thu, 24 Nov 2016 21:08:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <20161124083537.GD1220@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfA2hk8AnCV7Si/3Jwa1OyKQNOMR53NehxhbhiMY+JHzRPtncrIteYa+1OLh8vSN4gGxgA1smLiZPlKQgEXQiYH2lK9WHoObZpiTM85vX0h/gXXGihu+N XrMm300W+vETOV0U3NkL4r12P6+Piyg2mF4W4NKHT11nNma5+YI2lozOwOlCEiwklwiArqqTMuOpuQ== X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00028.txt.bz2 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.