How to create -dbg packages for gnome

View: New views
4 Messages — Rating Filter:   Alert me  

How to create -dbg packages for gnome

by Johannes Rohr-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

what is the canonical way of building -dbg packages for gnome
programmes? I have looked at the rules files for evince and
evolution-data-server, however, I could not figure out how and where the
creation of the dbg package is triggered and what I need to do to create
one.

I am currently experiencing a segfault in yelp, and I would like to
submit a useful bug report, therefore I would like to know this.

--
http://www.infoe.de/


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: How to create -dbg packages for gnome

by Daniel Leidert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Freitag, den 01.05.2009, 08:38 +0200 schrieb Johannes Rohr:

> what is the canonical way of building -dbg packages for gnome
> programmes? I have looked at the rules files for evince and
> evolution-data-server, however, I could not figure out how and where the
> creation of the dbg package is triggered and what I need to do to create
> one.

The usual way to do this is

dh_strip --dbg-package=$package-dbg

However, this requires, that the dpg-package is listed in debian/control
to be built. There is an easier way for you:

> I am currently experiencing a segfault in yelp, and I would like to
> submit a useful bug report, therefore I would like to know this.

You can simply pass DEB_BUILD_OPTIONS="nostrip" to
debuild/dpkg-buildpackage. This will prevent dh_strip from stripping the
binaries. Install these packages and create the backtrace.

http://wiki.debian.org/HowToGetABacktrace#Rebuildingthepackageyou.2BIBk-redebugging

Regards, Daniel


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Parent Message unknown Re: How to create -dbg packages for gnome

by Johannes Rohr-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Daniel Leidert <daniel.leidert.spam@...> writes:

> Am Freitag, den 01.05.2009, 08:38 +0200 schrieb Johannes Rohr:
>
>> what is the canonical way of building -dbg packages for gnome
>> programmes? I have looked at the rules files for evince and
>> evolution-data-server, however, I could not figure out how and where the
>> creation of the dbg package is triggered and what I need to do to create
>> one.
>
> The usual way to do this is
>
> dh_strip --dbg-package=$package-dbg

Yes, I have seen this, however, the result was not as expected. The
resulting -dbg package was empty except for /usr/share/doc/* and the
other one also lacked most files, e.g. everything from /usr/lib and
/usr/share.

I tried to build in pbuilder.

> However, this requires, that the dpg-package is listed in debian/control
> to be built. There is an easier way for you:
>
>> I am currently experiencing a segfault in yelp, and I would like to
>> submit a useful bug report, therefore I would like to know this.
>
> You can simply pass DEB_BUILD_OPTIONS="nostrip" to
> debuild/dpkg-buildpackage. This will prevent dh_strip from stripping the
> binaries. Install these packages and create the backtrace.

I am aware of that, however, I should have mentioned that I am trying to
build with pbuilder, as I do not want all those -dev packages in my real
system.

Thanks,

Johannes
--
http://www.infoe.de/


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: How to create -dbg packages for gnome

by Daniel Leidert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Freitag, den 01.05.2009, 21:23 +0200 schrieb Johannes Rohr:
> Daniel Leidert <daniel.leidert.spam@...> writes:

[..]
> > You can simply pass DEB_BUILD_OPTIONS="nostrip" to
> > debuild/dpkg-buildpackage. This will prevent dh_strip from stripping the
> > binaries. Install these packages and create the backtrace.
>
> I am aware of that, however, I should have mentioned that I am trying to
> build with pbuilder, as I do not want all those -dev packages in my real
> system.

Where is the problem? Put

env_keep = "DEB_BUILD_OPTIONS"

into your /etc/sudoers file and

DEB_BUILD_OPTIONS="nostrip" pdebuild
DEB_BUILD_OPTIONS="nostrip" sudo pbuilder

will do fine.

Regards, Daniel


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...