From: Johannes Sixt <j.sixt@viscovery.net>
To: Brandon Casey <casey@nrlssc.navy.mil>
Cc: gitster@pobox.com, git@vger.kernel.org, c@gryning.com,
Brandon Casey <drafnel@gmail.com>
Subject: Re: [PATCH v2] perl/Makefile.PL: detect MakeMaker versions incompatible with DESTDIR
Date: Thu, 08 Oct 2009 15:21:48 +0200 [thread overview]
Message-ID: <4ACDE76C.4040307@viscovery.net> (raw)
In-Reply-To: <FE_WTi0YAHrCrSdGFemlb7ALatFkdSu5V7Yfb5CUgyoxfv3ZFXdFABKbT1boP7aeGWli-gJPcBA@cipher.nrlssc.navy.mil>
Brandon Casey schrieb:
> From: Brandon Casey <drafnel@gmail.com>
>
> It appears that ExtUtils::MakeMaker versions older than 6.11 do not
> implement the DESTDIR mechanism. So add a test to the generated perl.mak
> to detect when DESTDIR is used along with a too old ExtUtils::MakeMaker and
> abort with a message suggesting the use of NO_PERL_MAKEMAKER.
>
> Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
> ---
>
>
> This just reverses the logic in the test on $(MM_VERSION) so that the test
> will also fail if MM_VERSION is unset. Who knows if ancient versions set
> it. Sorry for the quick v2.
>
> -brandon
>
>
> perl/Makefile.PL | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/perl/Makefile.PL b/perl/Makefile.PL
> index 320253e..0b9deca 100644
> --- a/perl/Makefile.PL
> +++ b/perl/Makefile.PL
> @@ -5,6 +5,14 @@ sub MY::postamble {
> instlibdir:
> @echo '$(INSTALLSITELIB)'
>
> +ifneq (,$(DESTDIR))
> +ifeq (0,$(shell expr '$(MM_VERSION)' '>' 6.10))
I don't think the test works as intended, because 6.2 *is* greater than
6.10 (aka 6.1).
(Found while staring at git diff v1.6.5-rc2..v1.6.5-rc3 in a spare minute.)
> +$(error ExtUtils::MakeMaker version "$(MM_VERSION)" is older than 6.11 and so \
> + is likely incompatible with the DESTDIR mechanism. Try setting \
> + NO_PERL_MAKEMAKER=1 instead)
> +endif
> +endif
> +
> MAKE_FRAG
> }
-- Hannes
next prev parent reply other threads:[~2009-10-08 13:24 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 [this message]
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=4ACDE76C.4040307@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=c@gryning.com \
--cc=casey@nrlssc.navy.mil \
--cc=drafnel@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).