author | Norm Jacobs <Norm.Jacobs@Oracle.COM> |
Sun, 16 Apr 2017 03:08:03 -0500 | |
changeset 7915 | 8a3a4e7e66e2 |
parent 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
5884
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
1 |
# |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
3 |
# |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
7 |
# |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
12 |
# |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
18 |
# |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
20 |
# |
7609
739a5cb4a565
25372106 Upgrade the version of MySQL 5.7 to 5.7.17 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
7472
diff
changeset
|
21 |
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
5884
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
22 |
# |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
23 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
24 |
# MySQL 5.7 is compiled using GCC. Note that the MySQL Server 5.7 for |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
25 |
# Solaris dowloaded from http://dev.mysql.com/downloads/mysql/ is a |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
26 |
# hybrid, the server part is compiled using GCC and the client library |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
27 |
# is compiled using SunStudio and the "stlport4" C++ runtime |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
28 |
# library. In this build both server and client is compiled using GCC. |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
29 |
COMPILER = gcc |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
30 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
31 |
BUILD_BITS= 64 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
32 |
export PARFAIT_BUILD=no |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
33 |
include ../../make-rules/shared-macros.mk |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
34 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
35 |
COMPONENT_NAME = mysql |
7609
739a5cb4a565
25372106 Upgrade the version of MySQL 5.7 to 5.7.17 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
7472
diff
changeset
|
36 |
COMPONENT_VERSION = 5.7.17 |
5884
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
37 |
COMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
38 |
COMPONENT_ARCHIVE = $(COMPONENT_NAME)-boost-$(COMPONENT_VERSION).tar.gz |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
39 |
COMPONENT_ARCHIVE_HASH= \ |
7609
739a5cb4a565
25372106 Upgrade the version of MySQL 5.7 to 5.7.17 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
7472
diff
changeset
|
40 |
sha256:b75bba87199ef6a6ccc5dfbcaf70949009dc12089eafad8c5254afc9002aa903 |
5884
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
41 |
COMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.7/$(COMPONENT_ARCHIVE) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
42 |
COMPONENT_PROJECT_URL = http://dev.mysql.com/ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
43 |
COMPONENT_BUGDB = database/mysql |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7609
diff
changeset
|
44 |
COMPONENT_ANITYA_ID= 334 |
5884
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
45 |
|
6010
2cf7e72421ff
23294054 do not publish mysql-5-7 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
5884
diff
changeset
|
46 |
# Requires new pkgmogrify feature, available in S12 but not 11.3, so do not |
2cf7e72421ff
23294054 do not publish mysql-5-7 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
5884
diff
changeset
|
47 |
# publish. |
2cf7e72421ff
23294054 do not publish mysql-5-7 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
5884
diff
changeset
|
48 |
ifeq ($(BUILD_TYPE), evaluation) |
2cf7e72421ff
23294054 do not publish mysql-5-7 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
5884
diff
changeset
|
49 |
BUILD_64= |
2cf7e72421ff
23294054 do not publish mysql-5-7 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
5884
diff
changeset
|
50 |
INSTALL_64= |
2cf7e72421ff
23294054 do not publish mysql-5-7 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
5884
diff
changeset
|
51 |
PUBLISH_STAMP= |
2cf7e72421ff
23294054 do not publish mysql-5-7 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
5884
diff
changeset
|
52 |
endif |
2cf7e72421ff
23294054 do not publish mysql-5-7 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
5884
diff
changeset
|
53 |
|
5884
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
54 |
#We use cp(1) instead of cloney because we use TAR to copy files and the TAR |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
55 |
#used doesn't handle long links |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
56 |
CLONEY=echo |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
57 |
COMPONENT_PRE_BUILD_ACTION = $(CP) -r $(SOURCE_DIR)/* $(@D); |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
58 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
59 |
BUILD_STYLE= cmake |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
60 |
TEST_TARGET= $(NO_TESTS) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
61 |
SYSTEM_TEST_TARGET= $(NO_TESTS) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
62 |
include $(WS_MAKE_RULES)/common.mk |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
63 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
64 |
# MySQL being one of Oracle's own product doesn't require to have a TPNO |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
65 |
# License number, but it uses Boost, which does have such a requirement. |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
66 |
TPNO=24164 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
67 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
68 |
# This component uses cmake to generate Makefiles and thus does not |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
69 |
# run any configure script |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
70 |
CMAKE = $(shell which cmake) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
71 |
CMAKE_PREFIX = $(USRDIR)/mysql/5.7 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
72 |
CONFDIR = $(ETCDIR)/mysql/5.7 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
73 |
DATA_PREFIX = $(VARDIR)/mysql/5.7 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
74 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
75 |
# The install layout differs from "INSTALL_LAYOUT=STANDALONE" in that |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
76 |
# we put scripts into the "bin" directory and the "lib" directory has |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
77 |
# an architecture subdirectory. We also use a simplified CFLAGS/CXXFLAGS |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
78 |
# setting and let the MySQL CMake setup add the other flags. |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
79 |
# For "lib", 64-bit uses subdir but 32-bit does not |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
80 |
CMAKE_BINDIR.64 = bin |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
81 |
CMAKE_LIBDIR.64 = lib/$(MACH64) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
82 |
CMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
83 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
84 |
# Providing component specific build options to cmake |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
85 |
CMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
86 |
CMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
87 |
CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
88 |
CMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS)) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
89 |
CMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS)) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
90 |
CMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS)) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
91 |
CMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS)) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
92 |
CMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS)) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
93 |
CMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
94 |
CMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
95 |
CMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
96 |
CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=$(CXX) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
97 |
CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC) |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
98 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
99 |
CMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)' |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
100 |
CMAKE_OPTIONS += -DFEATURE_SET=community |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
101 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
102 |
CMAKE_OPTIONS += -DWITH_SSL=bundled |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
103 |
CMAKE_OPTIONS += -DENABLE_DTRACE=1 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
104 |
CMAKE_OPTIONS += -DWITH_INNODB_MEMCACHED=1 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
105 |
CMAKE_OPTIONS += -DWITH_BOOST=boost |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
106 |
CMAKE_OPTIONS += -DWITH_EMBEDDED_SERVER=1 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
107 |
CMAKE_OPTIONS += -DWITH_EMBEDDED_SHARED_LIBRARY=1 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
108 |
CMAKE_OPTIONS += -DDISABLE_STATIC=ON |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
109 |
CMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
110 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
111 |
verify-p5m: |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
112 |
$(MAKE) $(MAKEFLAGS) sample-manifest METADATA_TEMPLATE= |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
113 |
# For easier parsing, remove backslash+newline |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
114 |
perl -pe 's,\\\n,,' $(BUILD_DIR)/manifest-$(MACH)-generated.p5m \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
115 |
> $(BUILD_DIR)/manifest-generated.p5m |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
116 |
# Generate a new version of "mysql-57test.p5m.include" |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
117 |
cat $(BUILD_DIR)/manifest-generated.p5m | \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
118 |
egrep -v mangled | egrep '/(mysql-test|sql-bench)(/|$$)' \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
119 |
> $(BUILD_DIR)/mysql-57test.p5m.include |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
120 |
-diff -U0 mysql-57test.p5m.include $(BUILD_DIR)/mysql-57test.p5m.include > \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
121 |
$(BUILD_DIR)/mysql-57test.p5m.include.diff |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
122 |
@if [ -s $(BUILD_DIR)/mysql-57test.p5m.include.diff ] ; then \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
123 |
echo "ERROR: \"mysql-57test.p5m.include\" need to be updated, you can find the new suggested content in" ; \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
124 |
echo " \"$(BUILD_DIR)/mysql-57test.p5m.include\", see" ; \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
125 |
echo " \"$(BUILD_DIR)/mysql-57test.p5m.include.diff\"" ; \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
126 |
exit 1 ; \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
127 |
fi |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
128 |
# Find all file names outside "mysql-test" and "sql-bench" |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
129 |
# If you for some reason deliberately want to leave out some |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
130 |
# file from the IPS package but yet install if building from |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
131 |
# source, you add a "egrep -v ...." below |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
132 |
cat $(BUILD_DIR)/manifest-generated.p5m | \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
133 |
egrep -v mangled | egrep -v '/(mysql-test|sql-bench)(/|$$)' | \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
134 |
perl -ne 'm,^(file|link)\s+path=([^ \n]+), and print $$2, "\n"' | sort \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
135 |
> $(BUILD_DIR)/all-installed |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
136 |
perl -pe 's,\\\n,,' *.p5m | \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
137 |
perl -ne 'm,^(file|link)\s+path=([^ \n]+), and print $$2, "\n"' | sort \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
138 |
> $(BUILD_DIR)/all-specified |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
139 |
comm -2 -3 build/all-installed build/all-specified > build/missing-specifications |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
140 |
@if [ -s $(BUILD_DIR)/missing-specifications ] ; then \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
141 |
echo "ERROR: A file installed is not packaged, i.e. not mentioned in any \"*.p5m\" file, see" ; \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
142 |
echo " \"$(BUILD_DIR)/missing-specifications\"" ; \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
143 |
exit 1 ; \ |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
144 |
fi |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
145 |
@echo "No problems found!" |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
146 |
|
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
147 |
REQUIRED_PACKAGES += database/mysql-57/client |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
148 |
REQUIRED_PACKAGES += runtime/perl-522 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
149 |
REQUIRED_PACKAGES += shell/bash |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
150 |
REQUIRED_PACKAGES += shell/ksh93 |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
151 |
REQUIRED_PACKAGES += system/core-os |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
152 |
REQUIRED_PACKAGES += system/library |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
153 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
154 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
155 |
REQUIRED_PACKAGES += system/library/math |
ef644c2bdc65
22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff
changeset
|
156 |
REQUIRED_PACKAGES += system/network |