Created
June 19, 2010 09:57
-
-
Save jarib/444761 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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