patch-jruby-launcher_jrubyexe_cpp 549 B

12345678910111213141516171819
  1. $OpenBSD: patch-jruby-launcher_jrubyexe_cpp,v 1.1 2011/12/09 21:46:15 jeremy Exp $
  2. Hardcode executable path so that the symlink in the standard PATH
  3. works correctly.
  4. --- jruby-launcher/jrubyexe.cpp.orig Fri Dec 2 09:34:43 2011
  5. +++ jruby-launcher/jrubyexe.cpp Fri Dec 2 09:35:02 2011
  6. @@ -57,8 +57,10 @@ const char *CON_ATTACH_MSG =
  7. #include "utilsfuncs.h"
  8. +char JRUBY_PATH[] = "${PREFIX}/jruby/bin/jruby";
  9. int main(int argc, char *argv[], char* envp[]) {
  10. + argv[0] = JRUBY_PATH;
  11. checkLoggingArg(argc, argv, true);
  12. #ifdef WIN32