tag 466776 patch
thanks

On Wed, Feb 20, 2008 at 11:12:11PM +0200, Niko Tyni wrote:
> Package: ming
> Version: 1:0.3.0-12
> Severity: important
> User: [EMAIL PROTECTED]
> Usertags: perl-5.10-transition
> 
> Your package fails to build with Perl 5.10 (currently in experimental.)

> ERROR: Cannot copy '/build/niko/ming-0.3.0/ming.h' to 
> 'blib/arch/auto/SWF/include/ming.h': No such file or directory

This is a bug in perl_ext/Makefile.PL uncovered by a change in
ExtUtils::Install.  The file 'ming.h' is in the 'src' subdirectory,
but the copy failure was ignored in earlier ExtUtils::Install versions,
including the one bundled with Perl 5.8.8.

The attached patch fixes this.

Cheers,
-- 
Niko Tyni   [EMAIL PROTECTED]
diff --git a/perl_ext/Makefile.PL b/perl_ext/Makefile.PL
index 9dfa1b0..8bd322f 100644
--- a/perl_ext/Makefile.PL
+++ b/perl_ext/Makefile.PL
@@ -88,9 +88,8 @@ sub MY::install {
 	my $self = shift;
 	write_myconfig_file($self->{INSTALLSITEARCH});
 
-	for (qw(ming.h libming.a)){
-		$self->{PM}->{"$MING_DIR/$_"} = '$(INST_ARCHLIB)' . "/auto/SWF/include/$_";
-	}
+	$self->{PM}->{"$MING_DIR/src/ming.h"} = '$(INST_ARCHLIB)' . "/auto/SWF/include/ming.h";
+	$self->{PM}->{"$MING_DIR/libming.a"} = '$(INST_ARCHLIB)' . "/auto/SWF/include/libming.a";
 	$self->{PM}->{'perl_swf.h'} = '$(INST_ARCHLIB)' . "/auto/SWF/include/perl_swf.h";
 	return $self->MM::install;
 }

Reply via email to