[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fwd: Debug package request for libcoro-perl



Trying to forward this conversation again... I'm not very smart :)

I blame trying to reply via my phone.

Forwarded conversation
Subject: Debug package request for libcoro-perl
------------------------

From: Martin Pritchard <martin.pritchard@smoothwall.net>
Date: Mon, Oct 19, 2015 at 5:28 AM
To: pkg-perl-maintainers@lists.alioth.debian.org


Hey,

Recently I have been trying to diagnose a segfault issue in my Coro program and found that having the debug symbols for libcoro-perl was useful to help identify whether the underlying issue was directly in my code or Coro itself. I ended up building a 'libcoro-perl-dbg' package to do this and wondered whether it would be possible to get a Coro debug package included in Debian to help with issues like this in the future?

I have attached a patch which updates Coro's makefile to include debug symbols and I've also included updated examples for debian/control and debian/rules to build 'libcoro-perl-dbg'.

Thanks,
--

Martin Pritchard
Developer

smoothwall
martin.pritchard@smoothwall.com
www.smoothwall.com

Head Office : 1 John Charles Way, Leeds, LS12 6QA, United Kingdom
Tech Office : Eagle Point, Little Park Farm Road, Fareham, PO15 5TD, United Kingdom
US Office : 8008 Corporate Center Dr #410, Charlotte, NC 28226, United States

Telephone: UK: +44 870-199-9500 US: +1 800-959-3760

  http://s3-eu-west-1.amazonaws.com/smoothwallweb/twitter.png   http://s3-eu-west-1.amazonaws.com/smoothwallweb/googleplus.png   circle_test   linkedin_test

Smoothwall Limited is registered in England, Company Number: 4298247 and whose registered address is 1 John Charles Way, Leeds, LS12 6QA United Kingdom.
This email and any attachments transmitted with it are confidential to the intended recipient(s) and may not be communicated to any other person or published by any means without the permission of Smoothwall Ltd. Any opinions stated in this message are solely those of the author.


_______________________________________________
pkg-perl-maintainers mailing list
pkg-perl-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-maintainers

----------
From: Jonathan Yu <jawnsy@cpan.org>
Date: Mon, Oct 19, 2015 at 6:31 AM
To: Martin Pritchard <martin.pritchard@smoothwall.net>


Hi Martin,

Thanks for your note, and your patch!

Forwarding to the Debian Perl mailing list, which we use for discussion.

I would've thought that the debug symbols would already be included in the libcoro-perl package. I wonder how much of a size difference it makes, since that would seem to be the only difference. As far as my limited understanding, debug symbols wouldn't affect optimisation flags, right?


_______________________________________________
pkg-perl-maintainers mailing list
pkg-perl-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-maintainers

----------
From: Martin Pritchard <martin.pritchard@smoothwall.net>
Date: Mon, Oct 19, 2015 at 6:54 AM
To: Jonathan Yu <jawnsy@cpan.org>


Hi Jonathan,

I added '-g' to get debugging on, as that wasn't on by default. The build output continues to include '-O2' so it still gets optimisation (although I didn't find where the -O2 flags were actually coming from). After building with symbols in, they were still being stripped out by debhelper so I've just overridden dh_strip to include the stripped headers in an optional debug package :)

On reading further, it looks like the -g will by default set optimisation to 0 if it's not specified, but I don't see during build time. Modifying my patch to include "-g -O2" wouldn't hurt to be safe.

It looks like the resultant main package (libcoro-perl) does not change size after building an additional libcoro-perl-dbg package, so it looks pretty self contained. The debug package comes out at about 166K.

Thanks for your help,




--
Cheers,

Jonathan

Attachment: rules
Description: Binary data

Attachment: control
Description: Binary data

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -70,6 +70,7 @@
     NAME         => "Coro",
     VERSION_FROM => "Coro.pm",
     DIR          => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
+    OPTIMISE     => '-g',
     PREREQ_PM    => {
        common::sense    => 0,
        Scalar::Util	=> 0.00,

Reply to: