|
Home > Archive > Debian Developers > May 2007 > compiling packages
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
compiling packages
|
|
| Oliver Block 2007-05-26, 1:21 am |
| Hello list,
I am not very familiar with the debian developer tools. How to recompile a =
package with debuggin option (gcc -g)?
Thanks in advance.
Best Regards,
Oliver
| |
| Oliver Elphick 2007-05-26, 7:22 am |
| On Sat, 2007-05-26 at 03:29 +0200, Oliver Block wrote:
> Hello list,
>
> I am not very familiar with the debian developer tools. How to
> recompile a package with debuggin option (gcc -g)?
1. Change the Makefile and/or debian/rules as necessary to add -g to the
compilation options.
2. In debian/rules, comment out the instruction to strip the binaries
(such as dh_strip).
Packages are too diverse to give a method that will work for every one.
--
Oliver Elphick olly@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
========================================
Do you want to know God? http://www.lfix.co.uk/knowing_god.html
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Guillem Jover 2007-05-26, 7:22 am |
| On Sat, 2007-05-26 at 06:14:46 +0100, Oliver Elphick wrote:
> On Sat, 2007-05-26 at 03:29 +0200, Oliver Block wrote:
>
> 1. Change the Makefile and/or debian/rules as necessary to add -g to the
> compilation options.
Per policy all binaries should be compiled with debugging information.
> 2. In debian/rules, comment out the instruction to strip the binaries
> (such as dh_strip).
And most are going to support DEB_BUILD_OPTIONS=nostrip (if they don't
you could file a bug report).
> Packages are too diverse to give a method that will work for every one.
DEB_BUILD_OPTIONS is supposedly that method.
regards,
guillem
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| A Mennucc 2007-05-27, 7:18 am |
| Oliver Block ha scritto:
> Hello list,
>
> I am not very familiar with the debian developer tools. How to recompile a package with debuggin option (gcc -g)?
usually packages are compiled with -g, but are stripped afterwards; to
avoid that, see example:
as root
# apt-get build-dep mplayer
# apt-get install devscripts
as user
$ apt-get source mplayer
$ cd mplayer-1.0~rc1
$ DEB_BUILD_OPTIONS=nostrip debuild binary
when a package uses debhelper, the dh_strip command will respect your
request; but not all packages so; so in some cases you may need to edit
debian/rules to change the build rules
a.
| |
| Lennart Sorensen 2007-05-28, 1:19 pm |
| On Sat, May 26, 2007 at 06:14:46AM +0100, Oliver Elphick wrote:
> 1. Change the Makefile and/or debian/rules as necessary to add -g to the
> compilation options.
Most already do that.
> 2. In debian/rules, comment out the instruction to strip the binaries
> (such as dh_strip).
No, use the environment variable instead. Just set
DEB_BUILD_OPTIONS=nostrip and dh_strip won't actually strip anything.
> Packages are too diverse to give a method that will work for every one.
Well for most it is simply set that environment variable, and build the
package, and you should have what you want.
--
Len Sorensen
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|
|
|
|
|