Ubuntu

Erlang packages contain debug information

Reported by James Henstridge on 2009-06-09
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
erlang (Debian)
Won't Fix
Unknown
erlang (Ubuntu)
High
Ken VanDine

Bug Description

Binary package hint: erlang

The Erlang packages in Ubuntu are built with full debug information. While this is useful for development, it results in much larger packages than are necessary to deploy Erlang applications.

This is a problem if we want to include CouchDB on the install CD as a dependency of UbuntuOne. I put together an updated package for Karmic that omits the debug info, resulting in much smaller packages.

The build record along with the debdiff can be found here:

https://launchpad.net/~jamesh/+archive/ppa/+sourcepub/646524/+listing-archive-extra

The change still allows the package to be built with debug info through the use of DEB_BUILD_OPTIONS flags.

Martin Pitt (pitti) wrote :

Thanks James for your investigations.

Ideally we could install the debug symbols (and compiler) into erlang-dev, or create a new binary package "erlang-compiler". Since the debug symbols are integrated into the library files, I see two options here:

  * erlang-dev would divert the erlang-base libraries and install its own with debug symbols. Very ugly, but doable with Debian package means.
  * Figure out the search path(s) where the erlang runtime looks for libraries, and install the debug-ful libraries in a prefered alternative search path. (Would be much more robust and clean).

This change should be discussed with the Debian maintainers as well, to avoid getting wrong dependencies for erlang packages which we sync from Debian. I'll forward it to them now.

summary: - Erlang packages are huge
+ Erlang packages contain debug information
Changed in erlang (Ubuntu):
importance: Undecided → High
status: New → Triaged
Martin Pitt (pitti) wrote :

Tentatively assigning to Ken. Let's figure out the search path and how to strip a library with debug symbols, then we can throw this into the packaging.

Changed in erlang (Ubuntu):
assignee: nobody → Ken VanDine (ken-vandine)
Changed in erlang (Debian):
status: Unknown → New
Changed in erlang (Debian):
status: New → Won't Fix
Ken VanDine (ken-vandine) wrote :

This has been done, earlier in the cycle. Please re-open if more work is needed.

Changed in erlang (Ubuntu):
status: Triaged → Fix Released
Jeremy Raymond (jeraymond) wrote :

Were the binaries with the debug symbols ever included in another package that can installed on the system? It's really atypical to have Erlang distributed without them - and is an inconvenience for Ubuntu users to have to build/install Erlang from source.

Elliot Murphy (statik) wrote :

I don't think a separate package with debug symbols was figured out yet. I've now created a PPA including a rebuilt erlang with debug info here: https://edge.launchpad.net/~erlang-dev/+archive/ppa

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

Other bug subscribers

Remote bug watches

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