| Summary: | net-im/bitlbee "debug" useflag is broken | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Artem Savkov <artem.savkov> |
| Component: | Current packages | Assignee: | Cédric Krier <cedk> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | radhermit, wired |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | bitlbee-3.0.3 "debug" useflag patch | ||
Close as invalid, if you want debug symbols you must add -g/-ggdb to your flags. Any USEFLAG should not provide to add any cflags. Created attachment 281827 [details, diff]
bitlbee-3.0.3 "debug" useflag patch
Ok, that makes sense. Sorry for misunderstanding.
But this "debug" flag still removes -DDEBUG, thus not adding intended extraoutput.
Fortunately this is much easier to handle. See attached patch.
Or should i open another bug with more accurate description?
(In reply to comment #2) > Created attachment 281827 [details, diff] > bitlbee-3.0.3 "debug" useflag patch > > Ok, that makes sense. Sorry for misunderstanding. > > But this "debug" flag still removes -DDEBUG, thus not adding intended > extraoutput. > Fortunately this is much easier to handle. See attached patch. > > Or should i open another bug with more accurate description? This should be fixed now in CVS. |
The "debug" flag in bitlbee-3.0.3(at least) ebuild is broken and doesn not affect bitlbee's configuration. Reproducible: Always Steps to Reproduce: 1. USE="debug" emerge bitlebee 2. gdb /usr/sbin/bitlbee 3. Reading symbols from /usr/sbin/bitlbee...(no debugging symbols found)...done. Actual Results: No debugging information added to the binary. Expected Results: Debbuging information added to the binary. This happens because of this code in the bitlbee-3.0.3.ebuild: 119 sed -i \ 120 -e "s/CFLAGS=.*$/CFLAGS=${CFLAGS}/" \ 121 -e "/^EFLAGS/s:=:&${LDFLAGS} :" \ 122 Makefile.settings || die "sed failed" which replaces the ./configure supplied "-g -DDEBUG" with user's CFLAGS. I understand that this might be tricky to make right because of possible conflicts between CFLAGS, so if there is no possible workaround the "debug" flag should probably be deleted.