unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Hardcoded ruby interpreter location
@ 2009-12-15  3:48 Russell Branca
  2009-12-15  4:09 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Russell Branca @ 2009-12-15  3:48 UTC (permalink / raw)
  To: mongrel-unicorn

---Had some issues posting this, reposting, sorry if it does duplicate.

Hello,

I'm not sure if this is the correct send this bug report, but the 'Bug
Tracker' link on gemcutter links to this mailing list.
I just saw this in gem version 0.95.2, in the shebang line of both
bin/unicorn and bin/unicorn_rails the ruby interpreter is hard coded
to:

#!/home/ew/bin/ruby

Which obviously isn't correct.


-Russell
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Hardcoded ruby interpreter location
  2009-12-15  3:48 Hardcoded ruby interpreter location Russell Branca
@ 2009-12-15  4:09 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2009-12-15  4:09 UTC (permalink / raw)
  To: unicorn list

Russell Branca <chewbranca@gmail.com> wrote:
> ---Had some issues posting this, reposting, sorry if it does duplicate.
> 
> Hello,
> 
> I'm not sure if this is the correct send this bug report, but the 'Bug
> Tracker' link on gemcutter links to this mailing list.

Hi Russell, yes, the mailing list is a bug tracker here.

> I just saw this in gem version 0.95.2, in the shebang line of both
> bin/unicorn and bin/unicorn_rails the ruby interpreter is hard coded
> to:
> 
> #!/home/ew/bin/ruby
> 
> Which obviously isn't correct.

It doesn't matter, no matter what the source tree sets it to it's wrong
for somebody.  Which is why RubyGems installs its own bin wrapper for
all bins, and setup.rb rewrites the shebang line for you.

And using the generic:

  #!/usr/bin/env ruby

...is even worse, since it can setup an incorrect $0 on some platforms
so SIGUSR2 upgrade method fails.

I might as well make it:

  #!/shebang/will/be/rewritten/or/wrapped/anyways/ruby

So it's very wrong for everyone :)

-- 
Eric Wong
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-15  4:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-15  3:48 Hardcoded ruby interpreter location Russell Branca
2009-12-15  4:09 ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

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).