From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=DATE_IN_PAST_12_24, DMARC_MISSING,INVALID_DATE,MAILING_LIST_MULTI,PP_MIME_FAKE_ASCII_TEXT, RDNS_DYNAMIC,T_CTYPE_NULL autolearn=no autolearn_force=no version=4.0.0 Received: from lsanca1-ar15-112-012.elnk.dsl.gtei.net ([4.41.112.12] helo=portablehole.net) by cvs.gentoo.org with esmtp (Exim 3.30 #1) id 15PBm8-0007mF-00 for gentoo-dev@cvs.gentoo.org; Tue, 24 Jul 2001 17:39:40 -0600 Received: (qmail 24809 invoked by uid 48); 24 Jul 2001 23:44:47 -0000 Received: from 63.204.248.117 (SquirrelMail authenticated user jano) by www.portablehole.net with HTTP; Tue, 24 Jul 2001 16:44:47 -0700 (PDT) Message-ID: <63159.63.204.248.117.996018287.squirrel@www.portablehole.net> From: "jano" To: X-Mailer: SquirrelMail (version 1.1.3 [cvs]) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Bizpa1sBf'Szqh.GmT6k3)UbMwJ6v3u26-ZwM8eI?F)9Cj9XdPX6m=a?IzA9" Subject: [gentoo-dev] destdir vs prefix Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Tue Jul 24 17:40:02 2001 X-Original-Date: Tue, 24 Jul 2001 16:44:47 -0700 (PDT) X-Archives-Salt: 0ec53502-f707-4254-9d9c-1a568c0a3385 X-Archives-Hash: 73c481f124077ee0fd769917d0325bce ------=_Bizpa1sBf'Szqh.GmT6k3)UbMwJ6v3u26-ZwM8eI?F)9Cj9XdPX6m=a?IzA9 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, i've had this explained to me a few times already, but for some reason, I'm still having problems grasping the idea. program is typical autoconf tarball.. ./configure, make, make install. So when doing the "try make install" command within an .ebuild file, how do you know whether to use DESTDIR or PREFIX, or both? I check out the makefile for this particular program, which has the files depend on ${prefix} (e.g. mandir=${prefix}/man), and a sole line with "DESTDIR = " This particular program installs the biaries, docs, etc fine either way. If I do: try make PREFIX=${D} install however, when reading the /var/db/pkg/blah/CONTENTS file, i see only those files which I explicitly do a dodoc, dobin, doman, etc. So an unmerge/uninstall will not remove the whole program as it should. I tried to change it to PREFIX=${D}/usr as I've seen in some ebuilds, no worky worky. But when I do: try make DESTDIR=${D} install everything shows up the right way, including CONTENTS and stuff. I'm rendered confused. Why does it work this way? jano ------=_Bizpa1sBf'Szqh.GmT6k3)UbMwJ6v3u26-ZwM8eI?F)9Cj9XdPX6m=a?IzA9 Content-Type: ; name="" Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= ------=_Bizpa1sBf'Szqh.GmT6k3)UbMwJ6v3u26-ZwM8eI?F)9Cj9XdPX6m=a?IzA9--