public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "jano" <jano@portablehole.net>
To: <gentoo-dev@cvs.gentoo.org>
Subject: [gentoo-dev] destdir vs prefix
Date: Tue Jul 24 17:40:02 2001	[thread overview]
Message-ID: <63159.63.204.248.117.996018287.squirrel@www.portablehole.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]

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



[-- Attachment #2: Type: , Size: 2 bytes --]



             reply	other threads:[~2001-07-24 23:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-24 17:40 jano [this message]
2001-07-24 19:12 ` [gentoo-dev] destdir vs prefix tadpol

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=63159.63.204.248.117.996018287.squirrel@www.portablehole.net \
    --to=jano@portablehole.net \
    --cc=gentoo-dev@cvs.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox