Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change some dependency rules to make them work with VMS make #863

Closed
wants to merge 7 commits into from
4 changes: 2 additions & 2 deletions config/auto/perldoc.pm
Expand Up @@ -20,6 +20,7 @@ use strict;
use warnings;

use File::Temp qw (tempfile );
use File::Spec qw (catfile );
use base qw(Parrot::Configure::Step);
use Parrot::Configure::Utils ':auto';

Expand All @@ -35,8 +36,7 @@ sub _init {
sub runstep {
my ( $self, $conf ) = @_;

my $slash = $conf->data->get('slash');
my $cmd = $conf->data->get('scriptdirexp_provisional') . $slash . q{perldoc};
my $cmd = File::Spec->catfile($conf->data->get('scriptdirexp_provisional'), q{perldoc});
my ( $fh, $filename ) = tempfile( UNLINK => 1 );
my $content = capture_output("$cmd -ud $filename perldoc") || undef;

Expand Down
3 changes: 2 additions & 1 deletion lib/Parrot/Pmc2c/Pmc2cMain.pm
Expand Up @@ -91,8 +91,9 @@ sub new {
die "Must have key 'args' which is a reference to a list of the remaining arguments"
unless ( defined $allargsref->{args} and ref( $allargsref->{args} ) eq q{ARRAY} );

my $base = File::Spec->catdir($allargsref->{bin},'..','..');
unshift @{ $allargsref->{include} },
'.', "$allargsref->{bin}/../..", "$allargsref->{bin}/../../src/pmc", "$allargsref->{bin}/../../src/dynpmc";
'.', $base, File::Spec->catdir($base,'src','pmc'), File::Spec->catdir($base,'src','dynpmc');

foreach my $opt ( qw(nolines) ) {
if ( !defined $allargsref->{opt}{$opt} ) {
Expand Down
6 changes: 4 additions & 2 deletions lib/Parrot/Pmc2c/VTable.pm
Expand Up @@ -6,6 +6,7 @@ use warnings;
use Storable ();
use Parrot::Vtable ();
use Parrot::Pmc2c::Method ();
use File::Spec ();
use File::Basename;
use Cwd qw(cwd);

Expand Down Expand Up @@ -51,8 +52,9 @@ sub dump {
my ($self) = @_;

my $dump_filename =
cwd() . q{/}
. basename( Parrot::Pmc2c::UtilFunctions::filename( $self->filename, '.dump' ) );
File::Spec->catfile( cwd(),
basename( Parrot::Pmc2c::UtilFunctions::filename( $self->filename, '.dump' ) )
);
Storable::nstore( $self, $dump_filename );
return $dump_filename;
}
Expand Down
7 changes: 4 additions & 3 deletions tools/build/pmc2c.pl
Expand Up @@ -5,8 +5,9 @@
use warnings;
use Getopt::Long ();
use FindBin qw($Bin);
use lib "$Bin/../lib"; # install location
use lib "$Bin/../../lib"; # build location
use File::Spec ();
use lib File::Spec->catdir($Bin,'..','lib'); # install location
use lib File::Spec->catdir($Bin,'..','..','lib'); # build location
use Parrot::Pmc2c::Pmc2cMain ();

my ( %action, %options, @pmc_include_paths );
Expand Down Expand Up @@ -42,7 +43,7 @@
);

if ( $action{default} ) {
$self->dump_vtable("$Bin/../../src/vtable.tbl");
$self->dump_vtable(File::Spec->catfile($Bin,'..','..','src','vtable.tbl'));
exit;
}

Expand Down