Bug 92567 - Difficult to build debug version of pycairo
Summary: Difficult to build debug version of pycairo
Status: RESOLVED FIXED
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Steve Chaplin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-21 13:26 UTC by alexandru.balut
Modified: 2017-07-05 15:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Attempt at creating a python3-cairo-dbg package in Debian (3.23 KB, text/plain)
2015-10-21 13:26 UTC, alexandru.balut
Details

Description alexandru.balut 2015-10-21 13:26:55 UTC
Created attachment 119029 [details]
Attempt at creating a python3-cairo-dbg package in Debian

When developing a Gtk app in Python, it's useful to be able to debug segfaults taking place in the C backend. The Python backtrace provided by gdb is pretty useless unless the debug packages are installed, for example: https://packages.debian.org/search?keywords=python3-dbg Without the debug packages, useful info like the method names are "optimized out" and are not displayed.

In Debian, debugging Gtk apps with python3-dbg does not seem to be possible because there is no debug version of python3-cairo. For example, there is a debug version of python-cairo called python-cairo-dbg, but there is no python3-cairo-dbg for python3-cairo.

I poked about this in oftc.net #debian-python and I was told:
<p1otr> add binary package in debian/control, add python3-all-dbg to Build-Depends and if you use pybuild, that's all
<p1otr> my first try was: 315465 but then I realized it's waf so I give up, life is too short for waf
<p1otr> (if you want to continue: the problem is with waf using some options from dbg interpreter and some from regular one, f.e. it calls pythnon3.5-config instead of python3.5-dbg-config)

See the attachment for the attempt at creating python3-cairo-dbg.
Comment 1 Bryce Harrington 2015-10-27 02:02:11 UTC
This is probably more a Debian bug than pycairo, but assigning to the pycairo project since it's definitely not a core Cairo issue.

However I think pycairo may be a bit moribund presently, so you'll likely have better luck interfacing with Debian on this.
Comment 2 Christoph Reiter 2017-07-05 15:03:32 UTC
Looks like there is a python3-cairo-dbgsym in the Debian debug repos now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.