git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
Cc: c@gryning.com, git@vger.kernel.org
Subject: Re: install does not obey DESTDIR or --prefix for perl modules
Date: Mon, 21 Sep 2009 10:58:20 -0700	[thread overview]
Message-ID: <7vskeguqmb.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <Ow6bpZou9Vi0tKlyAN-qfjlAAtXvMqpXEAiG54zZ3C8fLI_6_Bt3oA@cipher.nrlssc.navy.mil> (Brandon Casey's message of "Mon\, 21 Sep 2009 11\:58\:45 -0500")

Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil> writes:

> Craig Taylor wrote:
>> Hi all
>> 
>> I'm compiling/installing git in a Solaris environment without root.
>> Using 'make DESTDIR=<some path> install' to stage an install to an
>> alternate location.
>> The perl module component of 'make DESTDIR=<some path> install' installs
>> into the system perl lib path without prepending the forced install
>> destination or my '--prefix'.
>> This seems counter intuitive and I would consider a bug.
>
> Try 'make prefix=<some path>'.
>
> btw, this is in the first paragraph of the INSTALL document.

But is that what Craig is trying to do?

I think he wants to build git to be installed in /usr/bin/git or whatever,
and he would say "prefix=/usr".  He however wants "make install" to write
into /var/tmp/g/usr/bin/git, not /usr/bin/git, so that he can for example
make a tarball with "cd /var/tmp/g && tar cf ../git.tar .", and extract it
as root under the real '/'.  "make DESTDIR=/var/tmp/g" is exactly for
that, and if it is not working I would say it is a bug.

  reply	other threads:[~2009-09-21 17:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-21 16:05 install does not obey DESTDIR or --prefix for perl modules Craig Taylor
2009-09-21 16:58 ` Brandon Casey
2009-09-21 17:58   ` Junio C Hamano [this message]
2009-09-21 18:34     ` Brandon Casey
2009-09-21 19:19     ` Craig Taylor
2009-09-21 19:40       ` Ben Walton
2009-09-21 19:46         ` Craig Taylor
2009-09-21 19:44       ` Junio C Hamano
2009-09-21 19:54         ` Craig Taylor
2009-09-22 11:13         ` Craig Taylor
2009-09-22 11:31         ` Craig Taylor
2009-09-22 14:52           ` Brandon Casey
2009-09-22 15:21             ` Brandon Casey
2009-09-22 16:29             ` Junio C Hamano
2009-09-24 18:02               ` [PATCH] perl/Makefile.PL: detect MakeMaker versions incompatible with DESTDIR Brandon Casey
2009-09-24 18:21                 ` [PATCH v2] " Brandon Casey
2009-10-08 13:21                   ` Johannes Sixt
2009-10-08 13:34                     ` Brandon Casey
2009-10-08 16:58                       ` Brandon Casey
2009-10-09  6:51                         ` Junio C Hamano
2009-09-22 11:55         ` install does not obey DESTDIR or --prefix for perl modules c^
2009-09-22 15:16           ` Brandon Casey

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=7vskeguqmb.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=brandon.casey.ctr@nrlssc.navy.mil \
    --cc=c@gryning.com \
    --cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).