components/ruby/ruby-19/Makefile
branchs11-update
changeset 4579 2e29387ed5ba
parent 3996 20c0f21bbe1e
--- a/components/ruby/ruby-19/Makefile	Tue Jun 30 09:31:21 2015 -0700
+++ b/components/ruby/ruby-19/Makefile	Mon Jun 22 15:57:34 2015 -0700
@@ -27,19 +27,19 @@
 
 COMPONENT_NAME=		ruby
 COMPONENT_VERSION=	1.9.3
-COMPONENT_PATCH_VERSION=	484
+COMPONENT_PATCH_VERSION=	551
 COMPONENT_PROJECT_URL=	http://www.ruby-lang.org/
 COMPONENT_SRC=	\
 	$(COMPONENT_NAME)-$(COMPONENT_VERSION)-p$(COMPONENT_PATCH_VERSION)
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH=	\
-    sha256:d684bc3a5ba72cda9ef30039f783c0f8cdc325bae5c8738c7bf05577cbe8f31d
+    sha256:bb5be55cd1f49c95bb05b6f587701376b53d310eb1bb7c76fbd445a1c75b51e8
 COMPONENT_ARCHIVE_URL=	\
 	http://ftp.ruby-lang.org/pub/ruby/1.9/$(COMPONENT_ARCHIVE)
 IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION)
 COMPONENT_BUGDB=	utility/ruby
 
-TPNO=			15969
+TPNO=			20807
 
 include $(WS_MAKE_RULES)/prep.mk
 include $(WS_MAKE_RULES)/ips.mk
@@ -127,6 +127,10 @@
 CONFIGURE_OPTIONS +=	--disable-install-capi
 CONFIGURE_OPTIONS +=	--disable-option-checking
 CONFIGURE_OPTIONS +=	--with-openssl
+# If Ruby is configured with __builtin_setjmp, may cause
+# problems with gems compiled with gcc.  Studio compiler doesn't 
+# report an error for __builtin_setjmp, but gcc would.
+CONFIGURE_OPTIONS +=	--with-setjmp-type=_setjmp
 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
 
 # fiddle.so (ext/fiddle) links to libffi, which does not define
@@ -144,8 +148,19 @@
 CLEAN_PATHS +=		Solaris/gem.1 Solaris/rbconfig.sedscript.mod \
 			Solaris/ruby.1.sedscript.mod
 
+# This set of tests goes through thousands of entries in the passwd
+# and group table, taking hours to run; move it aside so we skip it.
+# There may also be spurious errors if group memberships are modified
+# during testing.
+COMPONENT_PRE_TEST_ACTION += \
+        ( if test -e $(SOURCE_DIR)/test/etc/test_etc.rb ; then \
+            $(MV) $(SOURCE_DIR)/test/etc/test_etc.rb \
+            $(SOURCE_DIR)/test/etc/test_etc.rb-save ; fi )
+
 # common targets
 
+configure:	$(CONFIGURE_64)
+
 build:		$(BUILD_64)
 
 install:	build $(INSTALL_64)