v***@geeklan.co.uk
2014-08-07 02:20:00 UTC
Number: 49082
Category: pkg
Synopsis: Unbreak lang/tcl on OS X Tiger
Confidential: no
Severity: non-critical
Priority: low
Responsible: pkg-manager
State: open
Class: sw-bug
Submitter-Id: net
Arrival-Date: Thu Aug 07 02:20:00 +0000 2014
Originator: Sevan Janiyan
Release: pkgsrc-current
Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007;Category: pkg
Synopsis: Unbreak lang/tcl on OS X Tiger
Confidential: no
Severity: non-critical
Priority: low
Responsible: pkg-manager
State: open
Class: sw-bug
Submitter-Id: net
Arrival-Date: Thu Aug 07 02:20:00 +0000 2014
Originator: Sevan Janiyan
Release: pkgsrc-current
root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
TCL includes its own copy of sqlite, apply the same flags as databases/sqlite3 to handle building on Tiger as it doesn't have gethostuuid(2) and lacks the zone memory allocator
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/tcl/Makefile,v
retrieving revision 1.77
diff -u -r1.77 Makefile
--- Makefile 13 Mar 2014 11:08:51 -0000 1.77
+++ Makefile 7 Aug 2014 02:13:33 -0000
@@ -36,6 +36,13 @@
CONFIGURE_ARGS+= --enable-64bit
.endif
+# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
+# and lacks the zone memory allocator
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0
+CPPFLAGS+= -DSQLITE_WITHOUT_ZONEMALLOC
+.endif
+
SUBST_CLASSES+= tcl-config
SUBST_STAGE.tcl-config= post-build
SUBST_FILES.tcl-config= unix/tclConfig.sh