]> git.imager.perl.org - imager.git/commitdiff
changed t82inline.t to always rebuild the Inline::C generated module
authorTony Cook <tony@develop=help.com>
Wed, 18 Apr 2007 13:50:13 +0000 (13:50 +0000)
committerTony Cook <tony@develop=help.com>
Wed, 18 Apr 2007 13:50:13 +0000 (13:50 +0000)
to avoid test failures caused by old builds being left.

include the Imager version number in the AUTO_INCLUDE code so that
bugs fixed in a new release will convince Inline to rebuild generated
modules.

http://rt.cpan.org/Ticket/Display.html?id=26278

Changes
lib/Imager/ExtUtils.pm
t/t82inline.t

diff --git a/Changes b/Changes
index eaf0388c7ed6ba7332425bb86114aa81e1147156..3d9cf5b0accc7e038e88b6284c51e1fbd07b7a86 100644 (file)
--- a/Changes
+++ b/Changes
@@ -15,6 +15,10 @@ Bug fixes:
 
  - document the difference() method's mindist parameter, and debug it.
 
+ - put the Imager releaser number in the Inline::C generated code to
+   regenerate Inline code when a new release of Imager is installed.
+   http://rt.cpan.org/Ticket/Display.html?id=26278
+
 Imager 0.56 - 1 Apr 2007
 ===========
 
index b6cbc38125cf583576e0dc6eb1a5b7dd1aa96aa9..93a63f519c3bea91e06ce841095712930b5773cb 100644 (file)
@@ -3,7 +3,7 @@ use strict;
 
 use vars qw($VERSION);
 
-$VERSION = "1.000";
+$VERSION = "1.001";
 
 =head1 NAME
 
@@ -50,7 +50,8 @@ sub inline_config {
     {
      INC => $class->includes,
      TYPEMAPS => $class->typemap,
-     AUTO_INCLUDE => <<'CODE',
+     AUTO_INCLUDE => <<CODE,
+/* Inserted by Imager $Imager::VERSION */
 #include "imext.h"
 #include "imperl.h"
 DEFINE_IMAGER_CALLBACKS;
index 55b44494ba08324a3b73abee8e8660d1d7e9e5e2..cdbc5ff9f14027ba5d6deaa1d66388eb4422e588 100644 (file)
@@ -13,6 +13,7 @@ plan skip_all => "Inline won't work in directories with spaces"
 plan tests => 9;
 require Inline;
 Inline->import(with => 'Imager');
+Inline->import("FORCE"); # force rebuild
 
 Inline->bind(C => <<'EOS');
 #include <math.h>