From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 23 02:16:51 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47F4476E; Sun, 23 Dec 2012 02:16:51 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id E9D8B8FC0A; Sun, 23 Dec 2012 02:16:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1Tmb7K-0003qf-4R; Sun, 23 Dec 2012 05:16:42 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:In-Reply-To:Subject:Cc:To:From; bh=ujnpPemVe13rlc+LZBiRniPc11hh48h4eG+2sqGcp4M=; b=WBqJjjtfXb9nWlWBnnLTrN+6X1hSRbNu2BbsKro3YSYv532tiYV2rP0m9GF6ThEUQjjeQKQQ9LvZo01Xg/HteaBWknQo2aY9gquRdKnJGWwj3eL6LrJEeJfUl9u29ncx+XlSCw6w3+0otLsOJTh1HFbyJoTGpkmJL2xjmXOPuRc=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1Tmb5f-000Jy5-CT; Sun, 23 Dec 2012 02:15:00 +0000 From: Jan Beich To: Ed Maste Subject: Re: [PATCH] Add WITH_DEBUG_FILES knob to enable separate debug files In-Reply-To: <20121222164602.GB32022@sandvine.com> (Ed Maste's message of "Sat, 22 Dec 2012 16:46:02 +0000") Date: Sat, 22 Dec 2012 19:14:42 -0700 References: <20121222164602.GB32022@sandvine.com> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1Tmb5f-000Jy5-CT@internal.tormail.org> X-Mailman-Approved-At: Sun, 23 Dec 2012 02:34:57 +0000 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 02:16:51 -0000 Ed Maste writes: > When this knob is set standalone debug files for shared objects are > built and installed in /usr/lib/debug/.debug. GDB > searches this path for debug data. [...] > - Change GDB's standalone debug file path to the default /usr/lib/debug. [...] > diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist > index 336d055..7b428d5 100644 > --- a/etc/mtree/BSD.usr.dist > +++ b/etc/mtree/BSD.usr.dist > @@ -18,6 +18,22 @@ > aout > .. > .. > + debug > + boot > + .. > + lib > + geom > + .. > + .. > + usr > + lib > + engines > + .. > + .. > + lib32 > + .. > + .. > + .. > dtrace > .. > engines What about ports? They are not allowed to install outside of PREFIX. $ cd multimedia/cuse4bsd-kmod $ make install PREFIX=/tmp/aaa PKG_DBDIR=/tmp/pkg WITH_DEBUG= [...] install -C -o root -g wheel -m 444 libcuse4bsd.a /tmp/aaa/lib install -s -o root -g wheel -m 444 libcuse4bsd.so.1 /tmp/aaa/lib install -o root -g wheel -m 444 libcuse4bsd.so.1.debug /usr/lib/debug/tmp/aaa/lib install: /usr/lib/debug/tmp/aaa/lib: No such file or directory *** [_libinstall] Error code 71