* George Danchev <danc...@spnet.net> [2012-06-11 12:37:59 CEST]:
> On Monday 11 June 2012 10:51:34 Gerfried Fuchs wrote:
> > * George Danchev <danc...@spnet.net> [2012-06-09 12:31:08 CEST]:
> > > dropping libwxgtk2.8-dbg from build-depends and also dropping the
> > > configure option --enable-debug is enough to get pgadmin3 stripped and
> > > not depending on any *dbg packages, as well as providing detached
> > > debugging symbols with pgadmin3-dbg. The simple patch is now attached.
> > 
> >  Actually, no, it isn't.  Have you tried it?  That will bring us back
> > #652099, an empty -dbg package.
> 
> Actually, I haven't tried to load the symbols in gdb, but now I did and I can 
> see that there are none to load from /usr/lib/debug/usr/bin/pgadmin3.
> This is due to -g not being passed if BUILD_DEBUG is not defined, since 
> --enable-debug is not passed. So far so good, the "offending" snippet found 
> in 
> acinclude.m4 and configure is:
> 
> CFLAGS=`echo $CFLAGS | sed -e "s/-g //g"`
> CXXFLAGS=`echo $CXXFLAGS | sed -e "s/-g //g"`

 Yes, that's why I went the (wrong) way of using --enable-debug in the
first place. :)

> A possibly annoying detail for the debug package (pgadmin3-dbg)would be that 
> a 
> single build is used for both debug and non-debug variants and build with -O2 
> (-ggdb -O2) which may lead to unexpected results for the debugging variant 
> [1]. Of course, this could be dealt with by unconditionally building the 
> source package with -O0.

 I wonder how that is any different to any other -dbg package.  From
what I understand, -O2 is the default to compile with unless
DEB_BUILD_OPTIONS does include "noopt".  See debian-policy 4.9.1
"debian/rules and DEB_BUILD_OPTIONS".

 If you want to have that changed it should be done on higher grounds,
not on specific package levels.

* George Danchev <danc...@spnet.net> [2012-06-11 12:56:10 CEST]:
> > CFLAGS = -Wall -ggdb
> > CXXFLAGS = -Wall -ggdb
> 
> Actually bypassing their sed by using the default level -g2 would be more 
> appropriate as a match for -g.

 Thanks for that suggestion, I'm giving it a try and in case it works
like expected (which I assume) I'll upload it ASAP.

 Enjoy,
Rhonda
-- 
Fühlst du dich mutlos, fass endlich Mut, los      |
Fühlst du dich hilflos, geh raus und hilf, los    | Wir sind Helden
Fühlst du dich machtlos, geh raus und mach, los   | 23.55: Alles auf Anfang
Fühlst du dich haltlos, such Halt und lass los    |



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to