vapier      14/11/15 06:42:33

  Added:                automake-1.4-perl-dyn-call.patch
  Log:
  Fix perl syntax to work with latest versions
  
  (Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --force, signed 
Manifest commit with key D2E96200)

Revision  Changes    Path
1.1                  sys-devel/automake/files/automake-1.4-perl-dyn-call.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/automake/files/automake-1.4-perl-dyn-call.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/automake/files/automake-1.4-perl-dyn-call.patch?rev=1.1&content-type=text/plain

Index: automake-1.4-perl-dyn-call.patch
===================================================================
at some point, a perl update broke this syntax.  use a newer style that works
with at least perl-5.16.

--- a/automake.in
+++ b/automake.in
@@ -983,7 +983,7 @@ sub finish_languages
 
        # Compute the function name of the finisher and then call it.
        $name = 'lang_' . $lang . '_finish';
-       do $name ();
+       &$name ();
     }
 
     # If the project is entirely C++ or entirely Fortran 77, don't
@@ -1144,7 +1144,7 @@ sub handle_single_transform_list
                # Found the language, so see what it says.
                local ($subr) = 'lang_' . $lang . '_rewrite';
                # Note: computed subr call.
-               local ($r) = do $subr ($base, $extension);
+               local ($r) = &$subr ($base, $extension);
                # Skip this entry if we were asked not to process it.
                next if ! $r;
 




Reply via email to