Skip to content

Instantly share code, notes, and snippets.

@jarib
Created June 19, 2010 09:57
Show Gist options
  • Save jarib/444761 to your computer and use it in GitHub Desktop.
Save jarib/444761 to your computer and use it in GitHub Desktop.
From 9d6f71177bedad4e9891c7e57015e83ca8def8c5 Mon Sep 17 00:00:00 2001
From: Jari Bakken <[email protected]>
Date: Sat, 19 Jun 2010 11:54:52 +0200
Subject: [PATCH] Fix ./configure on Linux + 1.9 where lsb_release is missing.
On 1.9, Kernel#` will raise Errno::ENOENT if the command is not found.
---
configure | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 2f48a9a..c030985 100755
--- a/configure
+++ b/configure
@@ -30,7 +30,7 @@ class Configure
@llvm_default = File.join(root, "vm", "external_libs", "llvm")
if @os =~ /linux/
- @llvm_system_name = `lsb_release -irs`.split.join("-").downcase
+ @llvm_system_name = `lsb_release -irs`.split.join("-").downcase rescue nil
else
@llvm_system_name = nil
end
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment