git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: c^ <c@gryning.com>
To: git@vger.kernel.org
Subject: Re: install does not obey DESTDIR or --prefix for perl modules
Date: Tue, 22 Sep 2009 12:55:42 +0100	[thread overview]
Message-ID: <20090922115542.GP8173@gryning.com> (raw)
In-Reply-To: <7vocp4ulq2.fsf@alter.siamese.dyndns.org>

On Mon, Sep 21, 2009 at 12:44:05PM -0700, Junio C Hamano wrote:
> Craig Taylor <c@gryning.com> writes:
> 
> > Exactly as you describe here, different paths but same goal.
> > All binaries follow the DESTDIR path except the perl modules.
> >
> > To register this as a bug do I need to do more than send this email?
> 
> Do you use NO_PERL_MAKEMAKER in your build?
> 
> If not, we need to summon an expert on ExtUtils::MakeMaker to look into
> this issue, but if you do, perhaps you can try this patch and report how
> well it works for you.
> 
> ---
>  perl/Makefile |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/perl/Makefile b/perl/Makefile
> index e3dd1a5..4ab21d6 100644
> --- a/perl/Makefile
> +++ b/perl/Makefile
> @@ -29,11 +29,11 @@ $(makfile): ../GIT-CFLAGS Makefile
>  	'$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
>  	echo '	cp private-Error.pm blib/lib/Error.pm' >> $@
>  	echo install: >> $@
> -	echo '	mkdir -p "$(instdir_SQ)"' >> $@
> -	echo '	$(RM) "$(instdir_SQ)/Git.pm"; cp Git.pm "$(instdir_SQ)"' >> $@
> -	echo '	$(RM) "$(instdir_SQ)/Error.pm"' >> $@
> +	echo '	mkdir -p "$$(DESTDIR)$(instdir_SQ)"' >> $@
> +	echo '	$(RM) "$$(DESTDIR)$(instdir_SQ)/Git.pm"; cp Git.pm "$$(DESTDIR)$(instdir_SQ)"' >> $@
> +	echo '	$(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
>  	'$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
> -	echo '	cp private-Error.pm "$(instdir_SQ)/Error.pm"' >> $@
> +	echo '	cp private-Error.pm "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
>  	echo instlibdir: >> $@
>  	echo '	echo $(instdir_SQ)' >> $@
>  else

Frustratingly the last change forces the lib referenced in the perl
scripts to include the DESTDIR.
I will work around this for now, but would apprieciate it if someone
more familair could fix for the future.

CraigT

-- 

c^ [c%5e]

Failure is natural.

  parent reply	other threads:[~2009-09-22 11:56 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
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         ` c^ [this message]
2009-09-22 15:16           ` install does not obey DESTDIR or --prefix for perl modules 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=20090922115542.GP8173@gryning.com \
    --to=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).