components/mysql-5-7/Makefile
author Gipson Pulla <gipson.pulla@oracle.com>
Fri, 29 Apr 2016 09:42:35 -0700
changeset 5884 ef644c2bdc65
child 6010 2cf7e72421ff
permissions -rw-r--r--
22112750 Add MySQL 5.7 to Solaris 23047228 Port fix for 23022999 from MySQL 5.6 to 5.7 23053990 Missing --log-error leads to mysqld output in the SMF log PSARC 2015/501 Include MySQL 5.7 and EOL MySQL 5.5 and 5.6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
#
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    21
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
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
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    36
COMPONENT_VERSION     = 5.7.11
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= \
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    40
         sha256:ab21347ba004a5aa349b911d829a14e79b1e36e4bcd007d39d75212071414e28
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
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    44
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    45
#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
    46
#used doesn't handle long links
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    47
CLONEY=echo
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    48
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
    49
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    50
BUILD_STYLE= cmake
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    51
TEST_TARGET= $(NO_TESTS)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    52
SYSTEM_TEST_TARGET= $(NO_TESTS)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    53
include $(WS_MAKE_RULES)/common.mk
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    54
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    55
# 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
    56
# 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
    57
TPNO=24164
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
# 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
    60
# run any configure script
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    61
CMAKE               = $(shell which cmake)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    62
CMAKE_PREFIX        = $(USRDIR)/mysql/5.7
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    63
CONFDIR             = $(ETCDIR)/mysql/5.7
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    64
DATA_PREFIX         = $(VARDIR)/mysql/5.7
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    65
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    66
# 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
    67
# 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
    68
# 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
    69
# 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
    70
# 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
    71
CMAKE_BINDIR.64     = bin
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    72
CMAKE_LIBDIR.64     = lib/$(MACH64)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    73
CMAKE_PLUGINDIR.64  = lib/$(MACH64)/plugin
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
# Providing component specific build options to cmake
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    76
CMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    77
CMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    78
CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    79
CMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    80
CMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    81
CMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    82
CMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    83
CMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    84
CMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    85
CMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    86
CMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    87
CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=$(CXX)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    88
CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    89
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    90
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
    91
CMAKE_OPTIONS += -DFEATURE_SET=community
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    92
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    93
CMAKE_OPTIONS += -DWITH_SSL=bundled
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    94
CMAKE_OPTIONS += -DENABLE_DTRACE=1
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    95
CMAKE_OPTIONS += -DWITH_INNODB_MEMCACHED=1
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    96
CMAKE_OPTIONS += -DWITH_BOOST=boost
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    97
CMAKE_OPTIONS += -DWITH_EMBEDDED_SERVER=1
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    98
CMAKE_OPTIONS += -DWITH_EMBEDDED_SHARED_LIBRARY=1
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
    99
CMAKE_OPTIONS += -DDISABLE_STATIC=ON
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   100
CMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
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
verify-p5m:	
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   103
	$(MAKE) $(MAKEFLAGS) sample-manifest METADATA_TEMPLATE=
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   104
        # For easier parsing, remove backslash+newline
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   105
	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
   106
	> $(BUILD_DIR)/manifest-generated.p5m
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   107
  	# 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
   108
	cat $(BUILD_DIR)/manifest-generated.p5m | \
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   109
	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
   110
	>  $(BUILD_DIR)/mysql-57test.p5m.include
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   111
	-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
   112
	$(BUILD_DIR)/mysql-57test.p5m.include.diff
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   113
	@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
   114
        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
   115
        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
   116
        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
   117
      	exit 1 ; \
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   118
	fi
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   119
       	# 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
   120
       	# 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
   121
       	# 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
   122
       	# source, you add a "egrep -v ...." below
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   123
	cat $(BUILD_DIR)/manifest-generated.p5m | \
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   124
        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
   125
        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
   126
      	 > $(BUILD_DIR)/all-installed
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   127
	perl -pe 's,\\\n,,' *.p5m | \
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   128
        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
   129
         > $(BUILD_DIR)/all-specified
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   130
	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
   131
	@if [ -s $(BUILD_DIR)/missing-specifications ] ; then \
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   132
	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
   133
	echo "       \"$(BUILD_DIR)/missing-specifications\"" ; \
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   134
	exit 1 ; \
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   135
	fi
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   136
	@echo "No problems found!"
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   137
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   138
REQUIRED_PACKAGES += database/mysql-57/client
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   139
REQUIRED_PACKAGES += runtime/perl-522
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   140
REQUIRED_PACKAGES += shell/bash
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   141
REQUIRED_PACKAGES += shell/ksh93
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   142
REQUIRED_PACKAGES += system/core-os
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   143
REQUIRED_PACKAGES += system/library
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   144
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
   145
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
   146
REQUIRED_PACKAGES += system/library/math
ef644c2bdc65 22112750 Add MySQL 5.7 to Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents:
diff changeset
   147
REQUIRED_PACKAGES += system/network