summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-10-08 11:36:00 +0000
committerjperkin <jperkin@pkgsrc.org>2015-10-08 11:36:00 +0000
commit5b4a781a5c0c04595b20a146ef579ba9c3ca5296 (patch)
treecd986c7593bb6c270277cda8540afdd563018e51 /mk
parente5682547afc7bb5c7316f175105ac77a1aa27883 (diff)
downloadpkgsrc-5b4a781a5c0c04595b20a146ef579ba9c3ca5296.tar.gz
OSX El Capitan has an interesting file system bug which allows a deep
directory hierarchy to be created but not removed. This is triggered by the GNU getcwd-path-max.m4 configure test used in lots of GNU software, and causes the builds to fail in pbulk as 'make clean' cannot complete. For now we provide a cached result for the test to avoid running it, using a 'no' value as the test is for a specific glibc bug. This bug has been brought to Apple's attention by the NixOS developers, raised as https://openradar.appspot.com/radar?id=6160634819379200. For now we mark only 10.11.0 (15.0.0) as having the bug - it remains to be seen whether Apple will fix it in the upcoming .1 release.
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/Darwin.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index 918108aaf09..df16e2ffce0 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.72 2015/10/05 17:06:22 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.73 2015/10/08 11:36:00 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -168,6 +168,13 @@ CONFIGURE_ENV+= ac_cv_func_poll=no
. endif
.endif
+# El Capitan GM has a file system bug where a deep directory hierarchy can be
+# created but not removed. Avoid running a test which does exactly this.
+# See https://openradar.appspot.com/radar?id=6160634819379200
+.if defined(GNU_CONFIGURE) && !empty(OS_VERSION:M15.0.0)
+CONFIGURE_ENV+= gl_cv_func_getcwd_abort_bug=no
+.endif
+
# Use "/bin/ksh" for buildlink3 wrapper script to improve build performance.
.if (!empty(OS_VERSION:M9.*) || !empty(OS_VERSION:M1[0-2].*) || \
!empty(OS_VERSION:M1[4-9].*)) && \