summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2013-06-14 15:07:37 +0000
committertron <tron@pkgsrc.org>2013-06-14 15:07:37 +0000
commit83e05e13c1fb1d9ccc5b8bfccb9bc8ab1218eb4b (patch)
tree122f5611fa9f80b8d2cf0121e407eb0b9c5643c2 /bootstrap
parentbf1ce1eb6f2a17e727828850e40889d11f69503c (diff)
downloadpkgsrc-83e05e13c1fb1d9ccc5b8bfccb9bc8ab1218eb4b.tar.gz
Don't use the bundled "awk" and "sed" under Mac OX Mountain Lion and newer.
They break badly on files with binary characters. This fixes e.g. the build of the "youtube-dl" package.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap8
1 files changed, 7 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 55708eab230..1bbb9842d30 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.193 2013/06/01 12:15:54 tron Exp $
+# $NetBSD: bootstrap,v 1.194 2013/06/14 15:07:37 tron Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -507,6 +507,12 @@ Darwin)
packagemaker=/Developer/usr/bin/packagemaker
;;
esac
+ case "$macosx_version" in
+ 10.[8-9])
+ need_awk=yes
+ need_sed=yes
+ ;;
+ esac
unset osrev macosx_version
;;
DragonFly)