File ExtUtils-CBuilder-0.2702_0.2703.patch of Package perl-ExtUtils-CBuilder

diff -ruN ExtUtils-CBuilder-0.2702/Changes ExtUtils-CBuilder-0.2703/Changes
--- ExtUtils-CBuilder-0.2702/Changes	2010-09-06 15:18:50.000000000 +0200
+++ ExtUtils-CBuilder-0.2703/Changes	2010-09-06 15:20:01.000000000 +0200
@@ -1,6 +1,11 @@
 Revision history for Perl extension ExtUtils::CBuilder.
 
-0.2702 Mon Feb 22 15:10:52 EST 2010
+0.2703 - Tue Mar 16 17:10:55 EDT 2010
+
+ Bugs fixed:
+ - fixed tests for Windows and MSVC [Jan Dubois]
+
+0.2702 - Mon Feb 22 15:10:52 EST 2010
 
  Bugs fixed:
  - compile() changes in 0.2701 did not work on Windows.  Now fixed.
diff -ruN ExtUtils-CBuilder-0.2702/MANIFEST ExtUtils-CBuilder-0.2703/MANIFEST
--- ExtUtils-CBuilder-0.2702/MANIFEST	2010-09-06 15:18:19.000000000 +0200
+++ ExtUtils-CBuilder-0.2703/MANIFEST	2010-09-06 15:19:48.000000000 +0200
@@ -21,4 +21,3 @@
 t/01-basic.t
 t/02-link.t
 t/03-cplusplus.t
-SIGNATURE    Added here by Module::Build
diff -ruN ExtUtils-CBuilder-0.2702/SIGNATURE ExtUtils-CBuilder-0.2703/SIGNATURE
--- ExtUtils-CBuilder-0.2702/SIGNATURE	2010-09-06 15:18:19.000000000 +0200
+++ ExtUtils-CBuilder-0.2703/SIGNATURE	1970-01-01 01:00:00.000000000 +0100
@@ -1,46 +0,0 @@
-This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.55.
-
-To verify the content in this distribution, first make sure you have
-Module::Signature installed, then type:
-
-    % cpansign -v
-
-It will check each file's integrity, as well as the signature's
-validity.  If "==> Signature verified OK! <==" is not displayed,
-the distribution may already have been compromised, and you should
-not run its Makefile.PL or Build.PL.
-
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-SHA1 cfddbdb98b424d90999c68d5a47402038dd89190 Changes
-SHA1 f44181f0de8d9e5e85addef8ba2156e810c39884 INSTALL
-SHA1 97312b1216af3f7b4474d3ca9dff779505eeebd8 MANIFEST
-SHA1 aee828aba4d6245fa9171e31b51791e2585dedcd META.yml
-SHA1 c4e4c2660dd2e1201977fcabacdc87ec7b1788ce Makefile.PL
-SHA1 367fe94e72d126e254ec04ae48b5928eee8a5aa0 README
-SHA1 43aac91bce00d9305e895db6f8c857644acf3a79 lib/ExtUtils/CBuilder.pm
-SHA1 727e1856294e2be724775598893dd6905a0fb5a0 lib/ExtUtils/CBuilder/Base.pm
-SHA1 102111f96fcd7cf80d6c2396362170fb93d74c86 lib/ExtUtils/CBuilder/Platform/Unix.pm
-SHA1 ab9ea47c1498b3d5768ac07d326b267d885220c2 lib/ExtUtils/CBuilder/Platform/VMS.pm
-SHA1 4eafa26dbc97abb79b93bac7b11b5199e216375a lib/ExtUtils/CBuilder/Platform/Windows.pm
-SHA1 13cc491472351a789004a22a7a984b6cf1d0347f lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
-SHA1 ffbad90be6d1a5c466fa2275b973c7a57b65bcb8 lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
-SHA1 0f2da5c52f87b7ab9efcdc05ea8a58343ef285a3 lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
-SHA1 3504b48ada9d63242399d21a8e081897370f2401 lib/ExtUtils/CBuilder/Platform/aix.pm
-SHA1 ebe03f12220c51e027e17ec80c83251b186663f6 lib/ExtUtils/CBuilder/Platform/cygwin.pm
-SHA1 63331516415f793d97ab435490b92c87e39b1c4f lib/ExtUtils/CBuilder/Platform/darwin.pm
-SHA1 7b646ae7f785a32380a2f1f049e4f57c8bbd06e4 lib/ExtUtils/CBuilder/Platform/dec_osf.pm
-SHA1 e4c33e08e78366a9ad679a8c655b4a166d97d45f lib/ExtUtils/CBuilder/Platform/os2.pm
-SHA1 229af50d0c0fcaefaf7002efc8b77ec8be9055a7 t/00-have-compiler.t
-SHA1 ef9f8aac9f82faec883684cec771740eff106410 t/01-basic.t
-SHA1 af3c21ce65198e7adb9c98721809d80e1a240618 t/02-link.t
-SHA1 88d179cde999a9244750ce97e49c0338482d9e39 t/03-cplusplus.t
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.9 (GNU/Linux)
-
-iEYEARECAAYFAkuC5RIACgkQKeygAqLMQmNt8ACgr0RqQk9a3y8E/ESneLpVf7Cn
-QlcAoLVjJzPe4nAjH+qSD0WLc+BChvrN
-=Cz/h
------END PGP SIGNATURE-----
diff -ruN ExtUtils-CBuilder-0.2702/t/01-basic.t ExtUtils-CBuilder-0.2703/t/01-basic.t
--- ExtUtils-CBuilder-0.2702/t/01-basic.t	2010-09-06 15:18:19.000000000 +0200
+++ ExtUtils-CBuilder-0.2703/t/01-basic.t	2010-09-06 15:19:48.000000000 +0200
@@ -78,6 +78,17 @@
   @ISA = ('ExtUtils::CBuilder');
   my $saw = 0;
   sub do_system {
+    if ($^O eq "MSWin32") {
+	# ExtUtils::CBuilder::MSVC::write_compiler_script() puts the
+	# include_dirs into a response file and not the commandline
+	for (@_) {
+	    next unless /^\@"(.*)"$/;
+	    open(my $fh, "<", $1) or next;
+	    local $/;
+	    $saw = 1 if <$fh> =~ /another dir/;
+	    last;
+	}
+    }
     $saw = 1 if grep {$_ =~ /another dir/} @_;
     return 1;
   }
openSUSE Build Service is sponsored by