Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60775 - No support for debugging with Perl. "debug" in USE has no effect.
Summary: No support for debugging with Perl. "debug" in USE has no effect.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-18 07:24 UTC by Benoit Izac
Modified: 2004-09-27 04:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benoit Izac 2004-08-18 07:24:57 UTC
hello,
I would like support for Perl debugger:

% perl -D -e ''
Recompile perl with -DDEBUGGING to use -D switch

I tried to add "debug" in my USE but it has no effect.
The only way I found is to add "-g" in my CFLAGS. But I don't want this flag for other programs.

% grep '^debug' /usr/portage/profiles/use.desc
debug - Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too

Why this use flag doesn't work?

Reproducible: Always
Steps to Reproduce:
1. USE="debug" emerge dev-lang/perl
2. Perl -D -e ''

Actual Results:  
Recompile perl with -DDEBUGGING to use -D switch

Expected Results:  

EXECUTING...



Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8)
=================================================================
System uname: 2.6.8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa avi berkdb cap cdr chroot clamav crypt cscope cups
devfs26 dga directfb dvb dvd emacs encode esd fbcon foomaticdb gdbm gif gpm gtk
gtk2 guile imap imlib java jpeg ldap libg++ libwww linguas_en linguas_fr live
lm_sensors mad maildir matroska mbox mikmod mmx motif mozilla mpeg nas ncurses
nls nntp oggvorbis opengl oss pam pcre pda pdflib perl png python quicktime
radeon readline samba sasl sdl slang snmp spell sse ssl svga tcltk tcpd tetex
theora tiff truetype usb vanilla vda x86 xml2 xmms xv xvid zlib"
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2004-09-27 04:36:32 UTC
Added to perl and libperl, all ebuilds, using the CFLAGS=-g - simply using -DDEBUGGING resulted in a perl that had debugging in -V output, but that didn't actually do debugging (go figure)