Blob Blame History Raw
From f9b0ae57d3eda068d9b2436743881ffdd60fff7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 16 May 2017 11:23:08 +0200
Subject: [PATCH] Fix building on Perl without "." in @INC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Petr Písař <ppisar@redhat.com>
---
 builder/lib/Build/Spec.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builder/lib/Build/Spec.pm b/builder/lib/Build/Spec.pm
index 394132a..4605be2 100644
--- a/builder/lib/Build/Spec.pm
+++ b/builder/lib/Build/Spec.pm
@@ -16,7 +16,7 @@ BEGIN {
 sub spec {
     my %opt  = @_;
     my $file = 'SPEC';
-    my $spec = do $file;
+    my $spec = do "./$file";
 
     my %rv   =
       $@                     ? do { croak $@ =~ OS_ERROR ? $@ : "Couldn't parse $file: $@" }
-- 
2.9.4