Commit 7e268572bbb708c102ea25b4b75321609f1308ca

Authored by Jacob Vosmaer
1 parent 70937bfa

Update dependency and Ohai syntax

Showing 1 changed file with 5 additions and 7 deletions   Show diff stats
config/software/mysql-client.rb
... ... @@ -18,11 +18,9 @@
18 18 name "mysql-client"
19 19 default_version "5.5.37"
20 20  
21   -dependencies [
22   - "openssl",
23   - "zlib",
24   - "ncurses"
25   - ]
  21 +dependency "openssl"
  22 +dependency "zlib"
  23 +dependency "ncurses"
26 24  
27 25 source :url => "http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.37.tar.gz",
28 26 :md5 => "bf1d80c66d4822ec6036300399a33c03"
... ... @@ -38,14 +36,14 @@ env = {
38 36 "PATH" => "#{install_dir}/embedded/bin:#{ENV['PATH']}",
39 37 }
40 38  
41   -unless OHAI.platform =~ /ubuntu/ && OHAI.platform_version =~ /^14.04/
  39 +unless Ohai['platform'] =~ /ubuntu/ && Ohai['platform_version'] =~ /^14.04/
42 40 # Perhaps we can drop LD_LIBRARY_PATH on all platforms? For now, all we know
43 41 # is that it breaks the build on Ubuntu 14.04.
44 42 env.merge!("LD_LIBRARY_PATH" => "#{install_dir}/embedded/lib")
45 43 end
46 44  
47 45 # Force CentOS-5 to use gcc/g++ v4.4
48   -if OHAI.platform =~ /centos/ and OHAI.platform_version =~ /^5/
  46 +if Ohai['platform'] =~ /centos/ and Ohai['platform_version'] =~ /^5/
49 47 env.merge!( {
50 48 "CC" => "gcc44",
51 49 "CXX" => "g++44"
... ...