Feature #3129

Generate the debug package

Added by Daniel Dehennin almost 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:08/04/2014
Priority:HighDue date:
Assignee:Javi Fontan% Done:

0%

Category:Packaging
Target version:Release 4.12
Resolution:fixed Pull request:

Description

Hello,

I'm having a SEGV issue with 4.7.80-1 on Debian Jessie AMD64 and would like to debug it.

Unfortunately, the debug package is not generated.

I attach a patch to generate it, here is its content:

dpkg --contents opennebula-dbg_4.7.80-2_all.deb 
drwxr-xr-x root/root         0 2014-08-04 10:52 ./
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/share/
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/share/doc/
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/share/doc/opennebula-dbg/
-rw-r--r-- root/root      8579 2014-08-04 10:45 ./usr/share/doc/opennebula-dbg/copyright
-rw-r--r-- root/root       255 2014-08-04 10:45 ./usr/share/doc/opennebula-dbg/changelog.Debian.gz
-rw-r--r-- root/root       353 2014-08-04 10:45 ./usr/share/doc/opennebula-dbg/NEWS.Debian.gz
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/lib/
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/lib/debug/
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/lib/debug/usr/
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/lib/debug/usr/lib/
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/lib/debug/usr/lib/one/
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/lib/debug/usr/lib/one/mads/
-rw-r--r-- root/root    153889 2014-08-04 10:52 ./usr/lib/debug/usr/lib/one/mads/collectd
drwxr-xr-x root/root         0 2014-08-04 10:52 ./usr/lib/debug/usr/bin/
-rw-r--r-- root/root  12060088 2014-08-04 10:52 ./usr/lib/debug/usr/bin/oned
-rw-r--r-- root/root   3669434 2014-08-04 10:52 ./usr/lib/debug/usr/bin/mm_sched
-rw-r--r-- root/root      9680 2014-08-04 10:52 ./usr/lib/debug/usr/bin/tty_expect

Regards.

0001-Add-debug-package.patch Magnifier - Debug package (1.61 KB) Daniel Dehennin, 08/04/2014 09:32 AM


Related issues

Related to Feature #3493: Disable debug stripping in debian packages Closed 01/08/2015

History

#1 Updated by Ruben S. Montero almost 7 years ago

  • Tracker changed from Request to Backlog
  • Priority changed from Normal to High

Thanks, we'll consider this for the next release

#2 Updated by Daniel Dehennin over 6 years ago

I create two packaging branches in my personal repository (1)(2):

  • pkg/debian/master: build on Debian unstable
  • pkg/debian/wheezy/master: backport on Debian Wheezy

I will provide branches for Ubuntu Precise and Trusty.

Regards.

(1) http://git.baby-gnu.net/gitweb/gitweb.cgi?p=opennebula.git;a=summary
(2) https://github.com/baby-gnu/one

#3 Updated by Ruben S. Montero over 6 years ago

  • Tracker changed from Backlog to Feature
  • Target version set to Release 4.12

#4 Updated by Ruben S. Montero over 6 years ago

  • Related to Feature #3493: Disable debug stripping in debian packages added

#5 Updated by Daniel Dehennin over 6 years ago

Daniel Dehennin wrote:

I will provide branches for Ubuntu Precise and Trusty.

I reworked my branches, now I have 4 branches

  • pkg/debian/master: build on Debian unstable
  • pkg/debian/wheezy/master: backport on Debian Wheezy
  • pkg/ubuntu/master: build on Trusty Tahr
  • pkg/ubuntu/precise/master: build on Precise Pangolin

I explain my branches management in the debian/README.source.

I think we could simplify the branch management by sharing the Debian and Ubuntu repositories per OpenNebula distributions, using reprepro.

This will permit to build once per “distribution generation”, as wheezy precise and jessie trusty, the only difference between them are the init scripts which are, in practice, identical:

for file in share/pkgs/Debian/*; do md5sum ${file} ${file/Debian/Ubuntu}; done
833d8fb8854b3b3e8f2fe4c64fe7421e  share/pkgs/Debian/opennebula
833d8fb8854b3b3e8f2fe4c64fe7421e  share/pkgs/Ubuntu/opennebula
cf6ba38b995cad67f4e8c56d80710833  share/pkgs/Debian/opennebula-econe
cf6ba38b995cad67f4e8c56d80710833  share/pkgs/Ubuntu/opennebula-econe
ff011e422f0c20b768ffb67ec77356d9  share/pkgs/Debian/opennebula-flow
ff011e422f0c20b768ffb67ec77356d9  share/pkgs/Ubuntu/opennebula-flow
a6d61c1dc42ee1a15d5ddb0702d728de  share/pkgs/Debian/opennebula-gate
a6d61c1dc42ee1a15d5ddb0702d728de  share/pkgs/Ubuntu/opennebula-gate
c450e1e1dff3e53ee2da2d2de92cee1d  share/pkgs/Debian/opennebula-novnc
c450e1e1dff3e53ee2da2d2de92cee1d  share/pkgs/Ubuntu/opennebula-novnc
3136bee107198ce880d4f461a4ec3a1f  share/pkgs/Debian/opennebula.sudoers
3136bee107198ce880d4f461a4ec3a1f  share/pkgs/Ubuntu/opennebula.sudoers
b910abe9a2e41c35cb87bf6709430740  share/pkgs/Debian/opennebula-sunstone
b910abe9a2e41c35cb87bf6709430740  share/pkgs/Ubuntu/opennebula-sunstone

If you are interested you can open a new request and assign it to me, I'll provide the reprepro configuration, explain the workflow and provide simple tools to prepare the repositories for a new OpenNebula version.

Regards.

#6 Updated by Jaime Melis over 6 years ago

  • Assignee set to Javi Fontan

#7 Updated by Javi Fontan over 6 years ago

We are thinking in adding debug in standard packages. This way when the problem arises the debug info is already there.

#8 Updated by Javi Fontan over 6 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

Now all deb packages come with debug info.

Also available in: Atom PDF