Skip to content

Commit

Permalink
Correct fix to blib issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ambs committed Jun 4, 2014
1 parent 2903ac0 commit 329c634
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,5 +1,7 @@
=head1 Math::GSL Changes

- Fixed in the correct way the prove/TAP::Harness problem.

=head1 v0.29 - June 2014

- Fix issue when prove/TAP::Harness uses lib/ modules instead of blib/ ones.
Expand Down
13 changes: 3 additions & 10 deletions inc/GSLBuilder.pm
Expand Up @@ -129,16 +129,9 @@ sub process_xs_file {
$self->link_c($archdir, $file_base, $obj_file);

my $from = catfile(qw/pm Math GSL/, "${file_base}.pm.$ver");
my $to1 = catfile(qw/blib lib Math GSL/, "${file_base}.pm");

# it seems there is a bug with DynaLoader or similar, where
# the lib module is used instead of the blib one.
# while that problem is not solved, just copy the pm to
# both places.
my $to2 = catfile(qw/lib Math GSL/, "${file_base}.pm");
chmod 0644, $from, $to1, $to2;
copy($from, $to1);
copy($from, $to2);
my $to = catfile(qw/blib lib Math GSL/, "${file_base}.pm");
chmod 0644, $from, $to;
copy($from, $to);
}

sub cmp_versions {
Expand Down
1 change: 0 additions & 1 deletion lib/Math/GSL/Test.pm
@@ -1,5 +1,4 @@
package Math::GSL::Test;
use lib qw{lib blib/lib blib/arch};
use base qw(Exporter);
use base qw(DynaLoader);
use strict;
Expand Down

0 comments on commit 329c634

Please sign in to comment.