From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1EyCbc-0006vq-PM for garchives@archives.gentoo.org; Sun, 15 Jan 2006 18:27:57 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0FIRFLT027797; Sun, 15 Jan 2006 18:27:15 GMT Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k0FIPNd0019031 for ; Sun, 15 Jan 2006 18:25:24 GMT Received: by wproxy.gmail.com with SMTP id i28so1088376wra for ; Sun, 15 Jan 2006 10:25:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=p9TWc+7TqTsteqZyy3I8d1O8V+wG1K26/e3ZA05DfmAl+OxNkDMuelF2ZL3S1on0n59PYcNJXIXHxPJrUCpRp9xDB0PJW5BrY0MOhljSpg0K1kiNNXEfjuPnX5LgL0MolWKsysYaOm/+YTIsOVfky0/GCmF0pWAEWlhTB/6aqfg= Received: by 10.54.141.6 with SMTP id o6mr6996964wrd; Sun, 15 Jan 2006 10:25:20 -0800 (PST) Received: by 10.54.110.19 with HTTP; Sun, 15 Jan 2006 10:25:20 -0800 (PST) Message-ID: <46059ce10601151025u2e736ff9re3263ba6ef3b81d3@mail.gmail.com> Date: Sun, 15 Jan 2006 13:25:20 -0500 From: Dan Meltzer To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] fix binary debug support, part elevenity billion In-Reply-To: <200601150111.54995.vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline References: <200601150111.54995.vapier@gentoo.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by robin.gentoo.org id k0FIPNd0019031 X-Archives-Salt: f1faef45-0028-48f7-9d9d-34ebaa071886 X-Archives-Hash: 542913987183c9fcfcd4d5b2545c95cb On 1/15/06, Mike Frysinger wrote: > this topic has come up before too many times and has yet to be solved, and we > have too many hacks in place > > the issues: > - USE=debug is way too vague; sometimes it builds different code (i.e. > additional runtime checks, debugging output, yada yada) and sometimes it > forces debugging gcc flags into CFLAGS > - debug.eclass: it sucks, we all know it, enough said > - no easy way for users/developers to quickly emerge a package and have it > contain useful debugging information, running `FEATURES=nostrip CFLAGS="-g > -O" emerge booga` is petarded > > the one true solution: > - USE=debug *never* changes CFLAGS or LDFLAGS or what have you, it *only* > enables additional runtime code (such as assert()'s or helpful debug > output) ... if you're confused by what i mean, run `USE=debug emerge nano` > and then run `nano` > - we add an emerge flag (say '--debug-build') which adds "nostrip" to FEATURES > and auto sets CFLAGS to DEBUG_CFLAGS and LDFLAGS to DEBUG_LDFLAGS > - portage will add sane debug defaults to make.globals (DEBUG_CFLAGS="-O -g" > and DEBUG_LDFLAGS="") What would happen on subsequent merges or upgrades if --debug-build was omitted? Would there be a way (/etc/portage file perhaps?) to enable debug builds on a permanent basis? > > so what have i missed ? > -mike > -- > gentoo-dev@gentoo.org mailing list > > -- gentoo-dev@gentoo.org mailing list