[Bug 1621659] [NEW] can't use erlang as a stage package

Leo Arias leo.arias at canonical.com
Thu Sep 8 23:00:24 UTC 2016


Public bug reported:

I'm trying to snap an erlang app. This would be really really simple if
I could use the erlang package in the snap, but it has a hardcoded path
outside of the snap.

To reproduce:

Run snapcraft on the attached file.
$ cat prime/usr/lib/erlang/erts-7.3/bin/erl | grep ROOTDIR
ROOTDIR=/usr/lib/erlang
BINDIR=$ROOTDIR/erts-7.3/bin
export ROOTDIR

When I try to run the app, it will fail saying:
/snap/tty2048/x3/usr/bin/erl: 29: exec: /usr/lib/erlang/erts-7.3/bin/erlexec: not found

As far as I understand, this is a bug in the erlang package, because it
shouldn't hardcode the location of the root dir.

** Affects: snapcraft
     Importance: Undecided
         Status: New

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

** Attachment added: "snapcraft.yaml"
   https://bugs.launchpad.net/bugs/1621659/+attachment/4737110/+files/snapcraft.yaml

** Also affects: erlang (Ubuntu)
   Importance: Undecided
       Status: New

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

Title:
  can't use erlang as a stage package

Status in Snapcraft:
  New
Status in erlang package in Ubuntu:
  New

Bug description:
  I'm trying to snap an erlang app. This would be really really simple
  if I could use the erlang package in the snap, but it has a hardcoded
  path outside of the snap.

  To reproduce:

  Run snapcraft on the attached file.
  $ cat prime/usr/lib/erlang/erts-7.3/bin/erl | grep ROOTDIR
  ROOTDIR=/usr/lib/erlang
  BINDIR=$ROOTDIR/erts-7.3/bin
  export ROOTDIR

  When I try to run the app, it will fail saying:
  /snap/tty2048/x3/usr/bin/erl: 29: exec: /usr/lib/erlang/erts-7.3/bin/erlexec: not found

  As far as I understand, this is a bug in the erlang package, because
  it shouldn't hardcode the location of the root dir.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1621659/+subscriptions



More information about the foundations-bugs mailing list