components/ruby/ruby-19/Makefile
author April Chin <april.chin@oracle.com>
Tue, 23 Jun 2015 14:24:18 -0700
branchs11u2-sru
changeset 4619 ca1d23775800
parent 2994 3705b92dce6a
permissions -rw-r--r--
20061647 Update Ruby 1.9 to 1.9.3-p551 19952962 problem in UTILITY/RUBY 20231083 problem in UTILITY/RUBY 20165112 ruby should be configured --with-setjmp-type=_setjmp 20877795 problem in UTILITY/RUBY 21234306 ruby(1) man page for Ruby 1.9 should note pending obsoletion
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
#
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    22
#
4619
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
    23
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
#
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		ruby
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.9.3
4619
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
    30
COMPONENT_PATCH_VERSION=	551
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.ruby-lang.org/
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    32
COMPONENT_SRC=	\
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    33
	$(COMPONENT_NAME)-$(COMPONENT_VERSION)-p$(COMPONENT_PATCH_VERSION)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH=	\
4619
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
    36
    sha256:bb5be55cd1f49c95bb05b6f587701376b53d310eb1bb7c76fbd445a1c75b51e8
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	\
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    38
	http://ftp.ruby-lang.org/pub/ruby/1.9/$(COMPONENT_ARCHIVE)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    39
IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION).$(COMPONENT_PATCH_VERSION)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    40
COMPONENT_BUGDB=	utility/ruby
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    41
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    42
include $(WS_TOP)/make-rules/prep.mk
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    43
include $(WS_TOP)/make-rules/ips.mk
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    44
include $(WS_TOP)/make-rules/configure.mk
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    45
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    46
# COMPONENT_VERSION <major>.<minor>.<teeny>
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    47
# is transformed into <major>.<minor> for RUBY_VER.
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    48
# First change the separator '.' to ' ', so we can use "word" to pull the 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    49
# first two space-separated words from the string.
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    50
RUBY_VER_WORDS=	$(subst ., ,$(COMPONENT_VERSION))
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    51
RUBY_VER=$(word 1,$(RUBY_VER_WORDS)).$(word 2,$(RUBY_VER_WORDS))
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    52
# the library-compatible version
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    53
RUBY_LIB_VER=1.9.1
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    54
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    55
PROTORUBYDIR=$(PROTO_DIR)/usr/ruby/$(RUBY_VER)
2994
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
    56
PROTO_RBCONFIG_FILE=$(PROTORUBYDIR)/lib/ruby/$(RUBY_LIB_VER)/$(MACH64)-solaris$(SOLARIS_VERSION)/rbconfig.rb
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    57
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    58
# these macros are used in the package manifest
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    59
PKG_MACROS+=	RUBY_VER=$(RUBY_VER) RUBY_LIB_VER=$(RUBY_LIB_VER)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    60
4619
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
    61
# Apply some of the edits here--including to the sed scripts themselves.
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    62
# These modifications of ruby.1 must occur after ruby
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    63
# is installed, not before.  Although there are some other patches
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    64
# to ruby.1 that occur before, the ruby installation does some 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    65
# formatting of ruby.1 that won't occur if the below changes
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    66
# are applied.
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    67
# Fix generated rbconfig.rb using /usr/bin/sed; gsed doesn't 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    68
# work for some of the commands in rbconfig.sedscript.
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    69
COMPONENT_POST_INSTALL_ACTION += \
4619
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
    70
	$(GSED) -e "s/RUBY_VER/$(RUBY_VER)/" \
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    71
	    -e "s/RUBY_LIB_VER/$(RUBY_LIB_VER)/" Solaris/gem.1-generic \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    72
	    > Solaris/gem.1 ; \
2994
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
    73
	$(GSED) -e "s/RUBY_VER/$(RUBY_VER)/" \
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    74
	    -e "s/RUBY_LIB_VER/$(RUBY_LIB_VER)/" Solaris/ruby.1.sedscript \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    75
	    > Solaris/ruby.1.sedscript.mod ; \
4619
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
    76
	$(GSED) -e  "s/RUBY_VER/$(RUBY_VER)/" \
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    77
	    -e "s/RUBY_LIB_VER/$(RUBY_LIB_VER)/" Solaris/rbconfig.sedscript \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    78
	    > Solaris/rbconfig.sedscript.mod ; \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    79
	$(GSED) -i -f Solaris/ruby.1.sedscript.mod \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    80
	    $(PROTORUBYDIR)/share/man/man1/ruby.1 ; \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    81
	/usr/bin/sed -f Solaris/rbconfig.sedscript.mod \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    82
	$(PROTO_RBCONFIG_FILE) > rbconfig.rb.mod ; \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    83
	$(MV) rbconfig.rb.mod $(PROTO_RBCONFIG_FILE)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    84
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    85
# default LD_OPTION $(LD_B_DIRECT) causes problems--
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    86
# during install of ruby, ruby is executed and will core dump
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    87
# after compiling with this option
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    88
LD_B_DIRECT=
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    89
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    90
# don't use LD_Z_IGNORE: causes ruby linker problems with 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    91
# unreferenced symbol tgetent in libreadline, similar to bug #15617172
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    92
LD_Z_IGNORE=
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    93
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    94
# i386 build runs into a Solaris ube compiler bug (#16775467) 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    95
# while compiling load.c; it's having trouble with -xO4, so work around
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    96
# by using -xO3 instead.  16775467 was patched for 12.1 compiler, so
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    97
# the below should not no longer be necessary when we switch to 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    98
# the 12.3 compiler
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
    99
studio_OPT.i386.64 = -xO3
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   100
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   101
# without this define, config fails frequently on i386 when including 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   102
# /usr/include/sys/isa_defs.h with error: "ISA not supported";
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   103
# many extensions don't get built and at least one error causes 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   104
# the build to fail
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   105
studio_XBITS.i386.64 += -D__amd64
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   106
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   107
CONFIGURE_PREFIX =	$(USRDIR)/$(COMPONENT_NAME)/$(RUBY_VER)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   108
# change CONFIGURE_BINDIR.64 because this path will be embedded in
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   109
# the header for ruby scripts; we are only building 64-bit,
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   110
# so the real path for ruby will not have $(MACH64) in it
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   111
CONFIGURE_BINDIR.64 =   $(CONFIGURE_BINDIR.32)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   112
# not strictly needed, since ruby doesn't use sbin, but
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   113
# change this as well, for consistency with BINDIR
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   114
CONFIGURE_SBINDIR.64 =   $(CONFIGURE_SBINDIR.32)
2994
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
   115
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
   116
# we are building 64-bit, but most of the ruby libraries (*.rb files)
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
   117
# are non-bit-specfic text files, so don't put them under lib/$(MACH64).
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
   118
# The 64-bit *.so libraries will be in the $(MACH64)-solaris$(SOLARIS_VERSION)
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
   119
# arch directories under lib
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
   120
3705b92dce6a 17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents: 2936
diff changeset
   121
CONFIGURE_OPTIONS +=	--with-rubylibprefix=$(CONFIGURE_LIBDIR.32)/ruby
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   122
CONFIGURE_OPTIONS +=	--enable-shared
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   123
CONFIGURE_OPTIONS +=	--enable-rpath
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   124
CONFIGURE_OPTIONS +=	--enable-install-doc
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   125
CONFIGURE_OPTIONS +=	--disable-option-checking
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   126
CONFIGURE_OPTIONS +=	--with-openssl
4619
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   127
# If Ruby is configured with __builtin_setjmp, may cause
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   128
# problems with gems compiled with gcc.  Studio compiler doesn't 
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   129
# report an error for __builtin_setjmp, but gcc would.
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   130
CONFIGURE_OPTIONS +=	--with-setjmp-type=_setjmp
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   131
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   132
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   133
# fiddle.so (ext/fiddle) links to libffi, which does not define
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   134
# ffi_raw_size(), although its prototype is in libffi's 
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   135
# /usr/lib/libffi-3.0/include/ffi.h header file.  
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   136
# Defining FFI_NO_RAW_API avoids use of ffi_raw_size().
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   137
# This is a workaround to bug
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   138
# 17349280 - libffi is missing ffi_raw_size()
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   139
CFLAGS +=		-DFFI_NO_RAW_API
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   140
2936
ff5a4be7be4a 17885116 Update ruby 1.9 to 1.9.3-p484
April Chin <april.chin@oracle.com>
parents: 2813
diff changeset
   141
# keep ASLR disabled; 
ff5a4be7be4a 17885116 Update ruby 1.9 to 1.9.3-p484
April Chin <april.chin@oracle.com>
parents: 2813
diff changeset
   142
# miniruby may core dump on sparc during build
ff5a4be7be4a 17885116 Update ruby 1.9 to 1.9.3-p484
April Chin <april.chin@oracle.com>
parents: 2813
diff changeset
   143
ASLR_MODE =		$(ASLR_DISABLE)
ff5a4be7be4a 17885116 Update ruby 1.9 to 1.9.3-p484
April Chin <april.chin@oracle.com>
parents: 2813
diff changeset
   144
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   145
CLEAN_PATHS +=		Solaris/gem.1 Solaris/rbconfig.sedscript.mod \
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   146
			Solaris/ruby.1.sedscript.mod
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   147
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   148
include $(WS_TOP)/make-rules/shared-targets.mk
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   149
4619
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   150
# This set of tests goes through thousands of entries in the passwd
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   151
# and group table, taking hours to run; move it aside so we skip it.
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   152
# There may also be spurious errors if group memberships are modified
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   153
# during testing.
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   154
COMPONENT_PRE_TEST_ACTION += \
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   155
        ( if test -e $(SOURCE_DIR)/test/etc/test_etc.rb ; then \
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   156
            $(MV) $(SOURCE_DIR)/test/etc/test_etc.rb \
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   157
            $(SOURCE_DIR)/test/etc/test_etc.rb-save ; fi )
ca1d23775800 20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents: 2994
diff changeset
   158
2813
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   159
# common targets
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   160
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   161
build:		$(BUILD_64)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   162
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   163
install:	build $(INSTALL_64)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   164
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   165
test:	$(TEST_64)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   166
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   167
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   168
db0bfa0fa498 PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7
April Chin <april.chin@oracle.com>
parents:
diff changeset
   169
include $(WS_TOP)/make-rules/depend.mk