author | Tomas Klacko <tomas.klacko@oracle.com> |
Mon, 03 Aug 2015 02:40:05 -0700 | |
changeset 4730 | 72b018b2d0fc |
parent 4365 | 643c4e910399 |
child 5066 | 7e7b4d607ab6 |
permissions | -rw-r--r-- |
1482
7a1f84fbc2d7
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 |
# |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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 |
# |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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"). |
7a1f84fbc2d7
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. |
7a1f84fbc2d7
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 |
# |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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. |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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. |
7a1f84fbc2d7
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 |
# |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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. |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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] |
7a1f84fbc2d7
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 |
# |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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 |
# |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
# |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
23 |
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
1482
7a1f84fbc2d7
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 |
# |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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 |
3964
10ed4d01fd40
20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents:
3817
diff
changeset
|
30 |
COMPONENT_PATCH_VERSION= 551 |
1482
7a1f84fbc2d7
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/ |
7a1f84fbc2d7
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= \ |
7a1f84fbc2d7
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) |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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= \ |
3964
10ed4d01fd40
20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents:
3817
diff
changeset
|
36 |
sha256:bb5be55cd1f49c95bb05b6f587701376b53d310eb1bb7c76fbd445a1c75b51e8 |
1482
7a1f84fbc2d7
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= \ |
7a1f84fbc2d7
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) |
7a1f84fbc2d7
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) |
7a1f84fbc2d7
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 |
7a1f84fbc2d7
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 |
|
3964
10ed4d01fd40
20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents:
3817
diff
changeset
|
42 |
TPNO= 20807 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1851
diff
changeset
|
43 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
44 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
45 |
include $(WS_MAKE_RULES)/ips.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
46 |
include $(WS_MAKE_RULES)/configure.mk |
1482
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
# COMPONENT_VERSION <major>.<minor>.<teeny> |
7a1f84fbc2d7
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 |
# is transformed into <major>.<minor> for RUBY_VER. |
7a1f84fbc2d7
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 |
# First change the separator '.' to ' ', so we can use "word" to pull the |
7a1f84fbc2d7
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 |
# first two space-separated words from the string. |
7a1f84fbc2d7
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 |
RUBY_VER_WORDS= $(subst ., ,$(COMPONENT_VERSION)) |
7a1f84fbc2d7
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_VER=$(word 1,$(RUBY_VER_WORDS)).$(word 2,$(RUBY_VER_WORDS)) |
7a1f84fbc2d7
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 |
# the library-compatible version |
7a1f84fbc2d7
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 |
RUBY_LIB_VER=1.9.1 |
7a1f84fbc2d7
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
|
56 |
|
7a1f84fbc2d7
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 |
PROTORUBYDIR=$(PROTO_DIR)/usr/ruby/$(RUBY_VER) |
1756
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
58 |
PROTO_RBCONFIG_FILE=$(PROTORUBYDIR)/lib/ruby/$(RUBY_LIB_VER)/$(MACH64)-solaris$(SOLARIS_VERSION)/rbconfig.rb |
1482
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
# these macros are used in the package manifest |
7a1f84fbc2d7
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
|
61 |
PKG_MACROS+= RUBY_VER=$(RUBY_VER) RUBY_LIB_VER=$(RUBY_LIB_VER) |
7a1f84fbc2d7
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 |
|
1851
2adf57930fd6
18622849 Ruby 1.9.3 doc files should not contain build dir pathnames
April Chin <april.chin@oracle.com>
parents:
1756
diff
changeset
|
63 |
# Apply some of the edits here--including to the sed scripts themselves. |
1482
7a1f84fbc2d7
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 |
# These modifications of ruby.1 must occur after ruby |
7a1f84fbc2d7
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 |
# is installed, not before. Although there are some other patches |
7a1f84fbc2d7
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 |
# to ruby.1 that occur before, the ruby installation does some |
7a1f84fbc2d7
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 |
# formatting of ruby.1 that won't occur if the below changes |
7a1f84fbc2d7
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 |
# are applied. |
7a1f84fbc2d7
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 |
# Fix generated rbconfig.rb using /usr/bin/sed; gsed doesn't |
7a1f84fbc2d7
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
|
70 |
# work for some of the commands in rbconfig.sedscript. |
7a1f84fbc2d7
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 |
COMPONENT_POST_INSTALL_ACTION += \ |
1851
2adf57930fd6
18622849 Ruby 1.9.3 doc files should not contain build dir pathnames
April Chin <april.chin@oracle.com>
parents:
1756
diff
changeset
|
72 |
$(GSED) -e "s/RUBY_VER/$(RUBY_VER)/" \ |
1482
7a1f84fbc2d7
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
|
73 |
-e "s/RUBY_LIB_VER/$(RUBY_LIB_VER)/" Solaris/gem.1-generic \ |
7a1f84fbc2d7
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 |
> Solaris/gem.1 ; \ |
1756
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
75 |
$(GSED) -e "s/RUBY_VER/$(RUBY_VER)/" \ |
1482
7a1f84fbc2d7
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
|
76 |
-e "s/RUBY_LIB_VER/$(RUBY_LIB_VER)/" Solaris/ruby.1.sedscript \ |
7a1f84fbc2d7
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 |
> Solaris/ruby.1.sedscript.mod ; \ |
1851
2adf57930fd6
18622849 Ruby 1.9.3 doc files should not contain build dir pathnames
April Chin <april.chin@oracle.com>
parents:
1756
diff
changeset
|
78 |
$(GSED) -e "s/RUBY_VER/$(RUBY_VER)/" \ |
1482
7a1f84fbc2d7
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 |
-e "s/RUBY_LIB_VER/$(RUBY_LIB_VER)/" Solaris/rbconfig.sedscript \ |
7a1f84fbc2d7
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 |
> Solaris/rbconfig.sedscript.mod ; \ |
7a1f84fbc2d7
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 |
$(GSED) -i -f Solaris/ruby.1.sedscript.mod \ |
7a1f84fbc2d7
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 |
$(PROTORUBYDIR)/share/man/man1/ruby.1 ; \ |
7a1f84fbc2d7
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 |
/usr/bin/sed -f Solaris/rbconfig.sedscript.mod \ |
7a1f84fbc2d7
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 |
$(PROTO_RBCONFIG_FILE) > rbconfig.rb.mod ; \ |
7a1f84fbc2d7
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 |
$(MV) rbconfig.rb.mod $(PROTO_RBCONFIG_FILE) |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
# default LD_OPTION $(LD_B_DIRECT) causes problems-- |
7a1f84fbc2d7
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 |
# during install of ruby, ruby is executed and will core dump |
7a1f84fbc2d7
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 |
# after compiling with this option |
7a1f84fbc2d7
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 |
LD_B_DIRECT= |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
# don't use LD_Z_IGNORE: causes ruby linker problems with |
7a1f84fbc2d7
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 |
# unreferenced symbol tgetent in libreadline, similar to bug #15617172 |
7a1f84fbc2d7
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 |
LD_Z_IGNORE= |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
# i386 build runs into a Solaris ube compiler bug (#16775467) |
7a1f84fbc2d7
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 |
# while compiling load.c; it's having trouble with -xO4, so work around |
7a1f84fbc2d7
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 |
# by using -xO3 instead. 16775467 was patched for 12.1 compiler, so |
7a1f84fbc2d7
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 |
# the below should not no longer be necessary when we switch to |
7a1f84fbc2d7
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 |
# the 12.3 compiler |
7a1f84fbc2d7
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 |
studio_OPT.i386.64 = -xO3 |
7a1f84fbc2d7
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 |
|
1701
279ed2832e3f
18176569 userland should move to studio 12.3
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1672
diff
changeset
|
103 |
# sparc build sometimes fails with studio 12.3 because of 17537968. |
279ed2832e3f
18176569 userland should move to studio 12.3
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1672
diff
changeset
|
104 |
studio_OPT.sparc.64 = -xO3 |
279ed2832e3f
18176569 userland should move to studio 12.3
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1672
diff
changeset
|
105 |
|
1482
7a1f84fbc2d7
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 |
# without this define, config fails frequently on i386 when including |
7a1f84fbc2d7
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 |
# /usr/include/sys/isa_defs.h with error: "ISA not supported"; |
7a1f84fbc2d7
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 |
# many extensions don't get built and at least one error causes |
7a1f84fbc2d7
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 build to fail |
7a1f84fbc2d7
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 |
studio_XBITS.i386.64 += -D__amd64 |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
CONFIGURE_PREFIX = $(USRDIR)/$(COMPONENT_NAME)/$(RUBY_VER) |
7a1f84fbc2d7
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 CONFIGURE_BINDIR.64 because this path will be embedded in |
7a1f84fbc2d7
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 |
# the header for ruby scripts; we are only building 64-bit, |
7a1f84fbc2d7
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
|
115 |
# so the real path for ruby will not have $(MACH64) in it |
7a1f84fbc2d7
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
|
116 |
CONFIGURE_BINDIR.64 = $(CONFIGURE_BINDIR.32) |
7a1f84fbc2d7
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
|
117 |
# not strictly needed, since ruby doesn't use sbin, but |
7a1f84fbc2d7
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
|
118 |
# change this as well, for consistency with BINDIR |
7a1f84fbc2d7
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
|
119 |
CONFIGURE_SBINDIR.64 = $(CONFIGURE_SBINDIR.32) |
1756
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
120 |
|
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
121 |
# we are building 64-bit, but most of the ruby libraries (*.rb files) |
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
122 |
# are non-bit-specfic text files, so don't put them under lib/$(MACH64). |
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
123 |
# The 64-bit *.so libraries will be in the $(MACH64)-solaris$(SOLARIS_VERSION) |
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
124 |
# arch directories under lib |
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
125 |
|
3579365335ef
17591620 ruby 1.9 should not have its *.rb text files under amd64/sparcv9 directories
April Chin <april.chin@oracle.com>
parents:
1701
diff
changeset
|
126 |
CONFIGURE_OPTIONS += --with-rubylibprefix=$(CONFIGURE_LIBDIR.32)/ruby |
1482
7a1f84fbc2d7
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
|
127 |
CONFIGURE_OPTIONS += --enable-shared |
7a1f84fbc2d7
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
|
128 |
CONFIGURE_OPTIONS += --enable-rpath |
1851
2adf57930fd6
18622849 Ruby 1.9.3 doc files should not contain build dir pathnames
April Chin <april.chin@oracle.com>
parents:
1756
diff
changeset
|
129 |
# Don't need docs for ruby C source files |
2adf57930fd6
18622849 Ruby 1.9.3 doc files should not contain build dir pathnames
April Chin <april.chin@oracle.com>
parents:
1756
diff
changeset
|
130 |
CONFIGURE_OPTIONS += --disable-install-capi |
1482
7a1f84fbc2d7
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 += --disable-option-checking |
7a1f84fbc2d7
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 |
CONFIGURE_OPTIONS += --with-openssl |
3964
10ed4d01fd40
20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents:
3817
diff
changeset
|
133 |
# If Ruby is configured with __builtin_setjmp, may cause |
10ed4d01fd40
20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents:
3817
diff
changeset
|
134 |
# problems with gems compiled with gcc. Studio compiler doesn't |
10ed4d01fd40
20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents:
3817
diff
changeset
|
135 |
# report an error for __builtin_setjmp, but gcc would. |
10ed4d01fd40
20061647 Update Ruby 1.9 to 1.9.3-p551
April Chin <april.chin@oracle.com>
parents:
3817
diff
changeset
|
136 |
CONFIGURE_OPTIONS += --with-setjmp-type=_setjmp |
1482
7a1f84fbc2d7
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 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
# fiddle.so (ext/fiddle) links to libffi, which does not define |
7a1f84fbc2d7
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 |
# ffi_raw_size(), although its prototype is in libffi's |
7a1f84fbc2d7
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
|
141 |
# /usr/lib/libffi-3.0/include/ffi.h header file. |
7a1f84fbc2d7
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
|
142 |
# Defining FFI_NO_RAW_API avoids use of ffi_raw_size(). |
7a1f84fbc2d7
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
|
143 |
# This is a workaround to bug |
7a1f84fbc2d7
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
|
144 |
# 17349280 - libffi is missing ffi_raw_size() |
7a1f84fbc2d7
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 |
CFLAGS += -DFFI_NO_RAW_API |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
# keep ASLR disabled; |
7a1f84fbc2d7
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 |
# miniruby may core dump on sparc during build |
7a1f84fbc2d7
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 |
ASLR_MODE = $(ASLR_DISABLE) |
7a1f84fbc2d7
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
|
150 |
|
7a1f84fbc2d7
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
|
151 |
CLEAN_PATHS += Solaris/gem.1 Solaris/rbconfig.sedscript.mod \ |
7a1f84fbc2d7
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
|
152 |
Solaris/ruby.1.sedscript.mod |
7a1f84fbc2d7
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
|
153 |
|
4365
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
154 |
# This set of tests goes through thousands of entries in the passwd |
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
155 |
# and group table, taking hours to run; move it aside so we skip it. |
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
156 |
# There may also be spurious errors if group memberships are modified |
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
157 |
# during testing. |
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
158 |
COMPONENT_PRE_TEST_ACTION += \ |
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
159 |
( if test -e $(SOURCE_DIR)/test/etc/test_etc.rb ; then \ |
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
160 |
$(MV) $(SOURCE_DIR)/test/etc/test_etc.rb \ |
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
161 |
$(SOURCE_DIR)/test/etc/test_etc.rb-save ; fi ) |
643c4e910399
20877795 problem in UTILITY/RUBY
April Chin <april.chin@oracle.com>
parents:
4339
diff
changeset
|
162 |
|
1482
7a1f84fbc2d7
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 |
# common targets |
7a1f84fbc2d7
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 |
|
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
165 |
configure: $(CONFIGURE_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
166 |
|
1482
7a1f84fbc2d7
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: $(BUILD_64) |
7a1f84fbc2d7
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 |
|
7a1f84fbc2d7
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 |
install: build $(INSTALL_64) |
7a1f84fbc2d7
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
|
170 |
|
7a1f84fbc2d7
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
|
171 |
test: $(TEST_64) |
7a1f84fbc2d7
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
|
172 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3964
diff
changeset
|
173 |
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3964
diff
changeset
|
174 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
175 |
REQUIRED_PACKAGES += library/database/gdbm |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
176 |
REQUIRED_PACKAGES += library/libffi |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
177 |
REQUIRED_PACKAGES += library/ncurses |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
178 |
REQUIRED_PACKAGES += library/readline |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
179 |
REQUIRED_PACKAGES += library/security/openssl |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
180 |
REQUIRED_PACKAGES += library/zlib |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
181 |
REQUIRED_PACKAGES += runtime/tcl-8 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
182 |
REQUIRED_PACKAGES += runtime/tk-8 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
183 |
REQUIRED_PACKAGES += system/core-os |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
184 |
REQUIRED_PACKAGES += system/library |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
185 |
REQUIRED_PACKAGES += system/library/math |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
186 |
REQUIRED_PACKAGES += system/linker |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
187 |
REQUIRED_PACKAGES += x11/library/libx11 |