Ubuntu

Erlang packages missing debug information

Reported by Jeremy Raymond on 2009-12-19
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
erlang (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: erlang

In response to Bug #385093 the debug information was stripped out of the Erlang install to save a little space. However this breaks some of the standard Erlang tool such as the debugger and dialyzer. Debian has restored the debug information as per the change below. Let's get Ubuntu fixed again as well.

erlang (1:13.b.1-dfsg-6) unstable; urgency=low

   * Restored debug info in beam files for default build. It's better to use
     more space than to ship broken modules (debugger, dialyzer).

Elliot Murphy (statik) wrote :

Thank you for the bug report, and for going to the work of tracking down what was happening.

Erlang debug info was deliberately stripped out in order to make the erlang runtime smaller so it could fit on the CD, as we shipped CouchDB on the CD in Ubuntu 9.10. I have not figured out whether it is possible to ship erlang debug info in a separate parallel package like we do for C programs. So the other solution I had come up with but not gotten around to setting up until tonight was to make a PPA with a rebuilt erlang package that included the debug info. This way we still have a small erlang that fits on the CD by default, but Erlang developers that want to use dialyzer and the debugger can easily get alternate erlang packages that include debug info.

I believe this bug should be closed as wontfix. I am aware that Sergei has changed the debian packages to build with debug info included by default, this is a reasonable choice for debian but not for Ubuntu. Sergei has kindly left the patch in place and just commented out because Ubuntu still needs the smaller erlang runtime, so we can still easily merge from debian to ubuntu.

I've now created a PPA including a rebuilt erlang with debug info here: https://edge.launchpad.net/~erlang-dev/+archive/ppa

The patch from stock ubuntu 9.10 is a trivial one-liner, commenting out a line in the quilt series file.
http://launchpadlibrarian.net/36985331/erlang_1:13.b.1-dfsg-2ubuntu1_1:13.b.1-dfsg-2ubuntu2~karmic1.diff.gz

To add this ppa to you Ubuntu 9.10 machine, type:
  sudo add-apt-respository ppa:erlang-dev/ppa

If it would be useful to people developing erlang programs, we could set up a parallel PPA that had even newer versions of Erlang in it with debug info turned on there also, so that it's easy to get the very latest erlang release to develop against.

Changed in erlang (Ubuntu):
status: New → Won't Fix
Jeremy Raymond (jeraymond) wrote :

Hello. Thanks for addressing the issue. The parallel ppa with the debug info should do fine (for me anyhow). It'd be awesome as well if you could also setup a ppa with the newer versions of Erlang as you suggested. Thanks a lot!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers