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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1621659

Title:
  can't use erlang as a stage package

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to