perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject Re: [mp2] $(ABSPERLRUN) in src/modules/perl/Makefile
Date Wed, 08 Dec 2004 05:39:42 GMT
On Tue, 7 Dec 2004, Stas Bekman wrote:

> Randy Kobes wrote:
>
> >>>In Apache::BuildConfig, there's some functions (eg, mv) that
> >>>are defined within the generated Makefile as
> >>>    $(ABSPERLRUN) -MExtUtils::Command -e mv
> >>>(for those platforms for which a system 'mv' isn't
> >>>available). However, src/modules/perl/Makefile.PL doesn't
> >>>define $(ABSPERLRUN) (it does define $(MODPERL_PERLPATH)).
> >>>I'm not sure of the desired way to fix this - define
> >>>$(ABSPERLRUN), or use $(MODPERL_PERLPATH)?
> [...]
>
> Please try:
>
> Index: lib/Apache/Build.pm
> ===================================================================
> --- lib/Apache/Build.pm	(revision 110107)
> +++ lib/Apache/Build.pm	(working copy)
> @@ -1322,6 +1322,8 @@
>
>   #when we use a bit of MakeMaker, make it use our values for these vars
>   my %perl_config_pm_alias = (
> +    ABSPERL      => 'perlpath',
> +    ABSPERLRUN   => 'perlpath',
>       PERL         => 'perlpath',
>       PERLRUN      => 'perlpath',
>       PERL_LIB     => 'privlibexp',
> @@ -1330,9 +1332,8 @@
>
>   my $mm_replace = join '|', keys %perl_config_pm_alias;
>
> -my @perl_config_pm =
> -  (qw(cc cpprun rm ranlib lib_ext obj_ext cccdlflags lddlflags optimize),
> -   values %perl_config_pm_alias);
> +my @perl_config_pm = (values(%perl_config_pm_alias), qw(cc cpprun
> +    rm ranlib lib_ext obj_ext cccdlflags lddlflags optimize));
>
>   sub mm_replace {
>       my $val = shift;
> ------------------------

That works fine - thanks!

> once this is applied we need to clean
>
>    values(%perl_config_pm_alias)
>
> from dups.

-- 
best regards,
randy


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message