Change 33326 by [EMAIL PROTECTED] on 2008/02/18 10:51:32

        Subject: [PATCH] Don't install threads files on non-threaded Perls
        From: "Jerry D. Hedden" <[EMAIL PROTECTED]>
        Date: Fri, 15 Feb 2008 11:02:54 -0500
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/installperl#151 edit

Differences ...

==== //depot/perl/installperl#151 (xtext) ====
Index: perl/installperl
--- perl/installperl#150~33031~ 2008-01-21 08:05:33.000000000 -0800
+++ perl/installperl    2008-02-18 02:51:32.000000000 -0800
@@ -819,6 +819,12 @@
     return if $name =~ m{^(?:SIGNATURE|PAUSE200\d\.pub)$}; # CPAN files
     return if $name =~ m{^(?:NOTES|PATCHING)$}; # ExtUtils files
 
+    # If not a threaded Perl, then ignore files that support threads
+    if (! $Config{'useithreads'}) {
+        return if $dir =~ m{Thread};
+        return if $name =~ m{Thread};
+    }
+
     # if using a shared perl library then ignore:
     # - static library files [of statically linked extensions];
     # - import library files and export library files (only present on Win32
End of Patch.

Reply via email to