From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-118620-garchives=archives.gentoo.org@lists.gentoo.org>) id 1PcQpp-0001E5-4t for garchives@archives.gentoo.org; Mon, 10 Jan 2011 23:07:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40B0DE081D for <garchives@archives.gentoo.org>; Mon, 10 Jan 2011 23:07:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E5293E070D for <gentoo-user@lists.gentoo.org>; Mon, 10 Jan 2011 22:43:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 6DC0C1B4021 for <gentoo-user@lists.gentoo.org>; Mon, 10 Jan 2011 22:43:51 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -2.88 X-Spam-Level: X-Spam-Status: No, score=-2.88 required=5.5 tests=[AWL=-0.281, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vLsnl5+YlQbw for <gentoo-user@lists.gentoo.org>; Mon, 10 Jan 2011 22:43:44 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id AFAE41B4158 for <gentoo-user@gentoo.org>; Mon, 10 Jan 2011 22:43:43 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from <lnx-gentoo-user@m.gmane.org>) id 1PcQSg-0006VK-7q for gentoo-user@gentoo.org; Mon, 10 Jan 2011 23:43:38 +0100 Received: from athedsl-378184.home.otenet.gr ([79.131.29.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-user@gentoo.org>; Mon, 10 Jan 2011 23:43:38 +0100 Received: from realnc by athedsl-378184.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-user@gentoo.org>; Mon, 10 Jan 2011 23:43:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras <realnc@arcor.de> Subject: [gentoo-user] Re: Enabling debugging symbols only for specific packages Date: Tue, 11 Jan 2011 00:43:34 +0200 Organization: Lucas Barks Message-ID: <igg22d$evl$1@dough.gmane.org> References: <igfi46$kul$1@dough.gmane.org> <4D2B5DEC.9060907@kutulu.org> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-378184.home.otenet.gr User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110103 Thunderbird/3.1.7 In-Reply-To: <4D2B5DEC.9060907@kutulu.org> X-Archives-Salt: 21fa3ad2-4176-4be2-b4a9-9f01d6e5d0e5 X-Archives-Hash: c815be49fc8224ecbf013f9ff29cdd06 On 01/10/2011 09:28 PM, Mike Edenfield wrote: > On 1/10/2011 1:11 PM, Nikos Chantziaras wrote: >> Is there a way to enable debugging symbols only for some packages? I >> need to do that for about 15 packages. Currently, all I can do is edit >> make.conf all the time when emerging one of those and add "-g" to CFLAGS >> and "splitdebug" to FEATURES. But I *always* forget about it the first >> time, ending up building twice. > > I think you can drop a file in /etc/portage/env for these packages to > change the variables, something like: > > /etc/portage/env/sys-apps/portage/bashrc: > FEATURES="${FEATURES} splitdebug" > CFLAGS="${CFLAGS} -g" Doesn't seem to work. When emerging, I get: /usr/lib64/portage/bin/ebuild.sh: line 1676: source: /etc/portage/env/sys-apps/portage: is a directory