can't use erlang as a stage package

Bug #1621659 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Invalid
Undecided
Unassigned
erlang (Ubuntu)
New
Undecided
Unassigned

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.

Revision history for this message
Leo Arias (elopio) wrote :
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Why is this logged against snapcraft, then?

Revision history for this message
Leo Arias (elopio) wrote :

It affects people trying to do an earlang snap with snapcraft. But you are right, this probably should be a won't fix in snapcraft.

Changed in snapcraft:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.