0001-Somehow-this-module-breaks-through-the-perl-wrapper-.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 47cd22cd213d2c5f28e674b12c264dc731682560 Mon Sep 17 00:00:00 2001
  2. From: Alexander Kanavin <alex.kanavin@gmail.com>
  3. Date: Tue, 5 Jun 2018 14:58:42 +0300
  4. Subject: [PATCH] Somehow this module breaks through the perl wrapper and
  5. declares perl binary to be 'perl.real'. This patch forces it back to perl.
  6. Upstream-Status: Inappropriate [oe-core specific]
  7. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
  8. ---
  9. cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 4 ++++
  10. 1 file changed, 4 insertions(+)
  11. diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
  12. index fe38598..0828f52 100644
  13. --- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
  14. +++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
  15. @@ -1161,6 +1161,9 @@ WARNING
  16. }
  17. foreach my $name (@$names){
  18. + # Getting MakeMaker.pm use perl wrapper instead of 'perl.real' directly
  19. + $name =~ s/perl\.real/perl/ if ($name =~ /perl\.real/);
  20. +
  21. my ($abs, $use_dir);
  22. if ($self->file_name_is_absolute($name)) { # /foo/bar
  23. $abs = $name;
  24. @@ -2097,6 +2100,7 @@ sub init_PERL {
  25. $self->{PERL} ||=
  26. $self->find_perl(5.0, \@perls, \@defpath, $Verbose );
  27. +
  28. my $perl = $self->{PERL};
  29. $perl =~ s/^"//;