From f363bce70a0906dd78bad6a9dedf0b8546172f06 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 8 Aug 2015 21:16:52 +0200 Subject: [PATCH] osx: fix configure command line in Homebrew The array concat operator has an higher precedence than the ternary operator in Ruby. --- osx/lldpd.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osx/lldpd.rb b/osx/lldpd.rb index 6e166cc8..85545003 100644 --- a/osx/lldpd.rb +++ b/osx/lldpd.rb @@ -24,8 +24,8 @@ class Lldpd < Formula "--with-launchddaemonsdir=no", "CPPFLAGS=-I#{readline.include} -DRONLY=1", "LDFLAGS=-L#{readline.lib}"] - args << build.with?("snmp") ? "--with-snmp" : "--without-snmp" - args << build.with?("json") ? "--with-json" : "--without-json" + args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp") + args << (build.with?("json") ? "--with-json" : "--without-json") system "./configure", *args system "make" -- 2.39.5