From e20f71b47a5d11a3554652128c110ce23f36ecdd Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 17 Jan 2013 23:39:51 -0700 Subject: [PATCH] output log of zeromq installation --- dist.ini | 1 - inc/My/Build.pm | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/dist.ini b/dist.ini index 5eaaef4..8548bf8 100644 --- a/dist.ini +++ b/dist.ini @@ -36,6 +36,5 @@ Cwd = 0 Digest::SHA = 0 File::Path = 0 File::Spec::Functions = 0 -IPC::Cmd = 0 LWP::Simple = 0 diff --git a/inc/My/Build.pm b/inc/My/Build.pm index b582c91..575ca45 100644 --- a/inc/My/Build.pm +++ b/inc/My/Build.pm @@ -10,7 +10,6 @@ use Cwd qw/realpath/; use Digest::SHA qw/sha1_hex/; use File::Path qw/remove_tree/; use File::Spec::Functions qw/catdir catfile/; -use IPC::Cmd qw/can_run run/; use LWP::Simple qw/getstore RC_OK/; use Module::Build; @@ -155,8 +154,6 @@ sub install_zeromq { my $self = shift; my $cb = $self->cbuilder; - can_run("libtool") or die "The libtool command cannot be found"; - my $version = $self->notes('zmq-version'); my $sha1 = $self->notes('zmq-sha1'); my $archive = "zeromq-$version.tar.gz"; @@ -185,14 +182,14 @@ sub install_zeromq { say "Configuring..."; my @config = $cb->split_like_shell($self->args('zmq-config') || ""); chdir $srcdir; - run(command => ["./configure", "--prefix=$prefix", @config]) + $cb->do_system("./configure", "--prefix=$prefix", @config) or die "Failed to configure ØMQ"; say "Compiling..."; - run(command => ['make']) or die "Failed to make ØMQ"; + $cb->do_system("make") or die "Failed to make ØMQ"; say "Installing..."; - run(command => [qw|make install prefix=/|, "DESTDIR=$datadir"]) + $cb->do_system(qw|make install prefix=/|, "DESTDIR=$datadir") or die "Failed to install ØMQ"; chdir $basedir; -- 2.45.2