Public bug reported:

The nailgun client's executable has been renamed from its standard name,
`ng`, to `ng-nailgun` - presumably to avoid a conflict with the ng-
common package.

However, this causes the nailgun client to fail to work, because its
behaviour changes according to the name under which it's invoked. From
the nailgun source code:

  /* look at the command used to launch this program.  if it was "ng", then the 
actual
     command to issue to the server must be specified as another argument.  if 
it
     wasn't ng, assume that the desired command name was symlinked to ng in the 
user's
     filesystem, and use the symlink name (without path info) as the command 
for the server. */
  cmd = shortClientName(argv[0]);

  if (isNailgunClientName(cmd)) {
    cmd = NULL;
  }

The isNailgunClientName function compares against the
NAILGUN_CLIENT_NAME constant in the source code, and that constant was
not changed in the Ubuntu patches for the nailgun package. As a result,
nailgun assumes that `ng-nailgun` is actually the name of the Java class
to execute and it ignores the actual specified Java class. This renders
it impossible to use the nailgun client executable for any purpose.

** Affects: nailgun (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1217078

Title:
  Nailgun client fails to launch due to renamed executable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nailgun/+bug/1217078/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to