From cca7d82fb20bd49ab06ae8958bce6b9a3599f759 Mon Sep 17 00:00:00 2001 From: Jaymala Sinha Date: Wed, 21 Aug 2019 11:11:58 -0400 Subject: [PATCH] Update make patch apply to supported platforms Signed-off-by: Jaymala Sinha --- config/software/make.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config/software/make.rb b/config/software/make.rb index bd7bcf5e2..742faefd7 100644 --- a/config/software/make.rb +++ b/config/software/make.rb @@ -32,8 +32,16 @@ # Work around an error caused by Glibc 2.27 # - # Thanks to: http://www.linuxfromscratch.org/lfs/view/8.2/chapter05/make.html - command "sed -i '211,217 d; 219,229 d; 232 d' glob/glob.c", env: env + # sed -i is not supported so exclude the patch for FreeBSD, Solaris and AIX + unless freebsd? || solaris_11? || aix? + if mac_os_x? + # OS X ships with BSD sed, where the suffix is mandatory so added sed -i '' + command "sed -i '' '211,217 d; 219,229 d; 232 d' glob/glob.c", env: env + else + # Thanks to: http://www.linuxfromscratch.org/lfs/view/8.2/chapter05/make.html + command "sed -i '211,217 d; 219,229 d; 232 d' glob/glob.c", env: env + end + end command "./configure" \ " --disable-nls" \