Makefile revision 7395
1a38107941725211e7c3f051f7a8f5e12199f03acmaeder#
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# CDDL HEADER START
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner#
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# The contents of this file are subject to the terms of the
431571057e88a650a974adec93ea4bb5173b6213Felix Gabriel Mance# Common Development and Distribution License (the "License").
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# You may not use this file except in compliance with the License.
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu#
431571057e88a650a974adec93ea4bb5173b6213Felix Gabriel Mance# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# or http://www.opensolaris.org/os/licensing.
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# See the License for the specific language governing permissions
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# and limitations under the License.
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu#
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# When distributing Covered Code, include this CDDL HEADER in each
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19e01e1a7e319063434bd86c8ecbc5f241ef9993Felix Gabriel Mance# If applicable, add the following below this CDDL HEADER, with the
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# fields enclosed by brackets "[]" replaced with your own identifying
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski# information: Portions Copyright [yyyy] [name of copyright owner]
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu#
a604cbad8e2202147b5c6bb9f2e06ae61162d654Felix Gabriel Mance# CDDL HEADER END
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu#
be2439588008221e691321fdf4f75432cfb72878Felix Gabriel Mance
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu#
fc05327b875b5723b6c17849b83477f29ec12c90Felix Gabriel Mance# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu#
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# This variable has no impact on perl build, it is here merely to satisfy
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# "modernized" gate infrastructure. The bitness of the module is driven by the
0dd6e7830de0887c9a12356447975a826b3b3db2Christian Maeder# bitness of perl interpreter itself. That is hardcoded in
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# $(WS_MAKE_RULES)/makemaker.mk
e0f1794e365dd347e97b37d7d22b2fce27296fa1Christian MaederBUILD_BITS = 64
424860079d47bf490fa98d5d7498096a0447c569mcodescu
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiuinclude ../../../make-rules/shared-macros.mk
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
1a38107941725211e7c3f051f7a8f5e12199f03acmaederCOMPONENT_NAME= DBD-mysql
1a38107941725211e7c3f051f7a8f5e12199f03acmaederCOMPONENT_VERSION= 4.041
32bbac77828be0233953f8fe476edb0a9585408dChristian MaederIPS_COMPONENT_VERSION= 4041
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuHUMAN_VERSION= $(COMPONENT_VERSION)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuCOMPONENT_ARCHIVE_HASH= \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu sha256:4777de11c464b515db9da95c08c225900d0594b65ba3256982dc21f9f9379040
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuCOMPONENT_ARCHIVE_URL= http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/$(COMPONENT_ARCHIVE)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuCOMPONENT_PROJECT_URL= https://github.com/perl5-dbi/DBD-mysql
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuCOMPONENT_BUGDB= perl-mod/dbd-mysql
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
27fdf879983dd28e211b41f3be6c0e930b7c816bFelix Gabriel ManceTPNO= 32689
431571057e88a650a974adec93ea4bb5173b6213Felix Gabriel Mance
1a38107941725211e7c3f051f7a8f5e12199f03acmaeder
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# MySQL 5.7 is not available in S11.
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiuifeq ($(BUILD_TYPE), evaluation)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuPUBLISH_STAMP=
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiuelse
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuBUILD_STYLE= makemaker
b84c87f199dc287d235d7dad6ea344f6912ef531Christian MaederLICENSE=DBD-mysql.license
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuBUILD_TARGET= $(BUILD_$(MK_BITS)) $(LICENSE)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiuinclude $(WS_MAKE_RULES)/common.mk
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiuendif
be00381168b3f10192afabbba136fb06d3a9f358Christian Maeder
be00381168b3f10192afabbba136fb06d3a9f358Christian MaederCLEAN_PATHS += $(LICENSE)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
27fdf879983dd28e211b41f3be6c0e930b7c816bFelix Gabriel ManceCOMPONENT_TEST_TARGETS = test
7852de3551fc797566ee71165bafe05b6d81728cnotanartistCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuCOMPONENT_TEST_TRANSFORMS += \
27fdf879983dd28e211b41f3be6c0e930b7c816bFelix Gabriel Mance '-e "s/[0-9][0-9]* wallclock secs (.*CPU)$$/<TIMINGS REMOVED>/" ' \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu '-e "s/^\(\# mysql_[a-z][a-z]* is: \).*/\1<REMOVED>/" ' \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu '-e "s/^\(\# SQL_DBMS_VER is \).*/\1<REMOVED>/" ' \
27fdf879983dd28e211b41f3be6c0e930b7c816bFelix Gabriel Mance '-e "s/^\(\# Driver version is \).*/\1<REMOVED>/" ' \
d0f58d27c2536eba454d8f77de8617bc6a2c99cdFelix Gabriel Mance '-e "/chmod 644 \"mysql.bs\"/d"' \
d0f58d27c2536eba454d8f77de8617bc6a2c99cdFelix Gabriel Mance '-e "/Running Mkbootstrap/d"'
d0f58d27c2536eba454d8f77de8617bc6a2c99cdFelix Gabriel Mance
d0f58d27c2536eba454d8f77de8617bc6a2c99cdFelix Gabriel ManceASLR_MODE = $(ASLR_NOT_APPLICABLE)
431571057e88a650a974adec93ea4bb5173b6213Felix Gabriel Mance
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuMYSQL_VERSION = 5.7
27fdf879983dd28e211b41f3be6c0e930b7c816bFelix Gabriel ManceMYSQL_BINDIR = $(USRDIR)/mysql/$(MYSQL_VERSION)/bin
424860079d47bf490fa98d5d7498096a0447c569mcodescuMYSQL_TEST_USER = root
60f30f0eeeacdfc1e0dfe39664373ddf5a0675adFelix Gabriel ManceMYSQL_TEST_PASSWORD = new-password
60f30f0eeeacdfc1e0dfe39664373ddf5a0675adFelix Gabriel ManceMYSQL_TEST_DATADIR = $(COMPONENT_TEST_BUILD_DIR)/test_datadir
0dd6e7830de0887c9a12356447975a826b3b3db2Christian Maeder
424860079d47bf490fa98d5d7498096a0447c569mcodescuCOMPONENT_TEST_ENV += MYSQL_HISTFILE=/dev/null
424860079d47bf490fa98d5d7498096a0447c569mcodescu
424860079d47bf490fa98d5d7498096a0447c569mcodescuCONFIGURE_OPTIONS += --mysql_config="$(MYSQL_BINDIR)/mysql_config"
60f30f0eeeacdfc1e0dfe39664373ddf5a0675adFelix Gabriel ManceCONFIGURE_OPTIONS += --testuser=$(MYSQL_TEST_USER)
d6d81ead61a5f9fb7d047e623f7898e730c258camcodescuCONFIGURE_OPTIONS += --testpassword=$(MYSQL_TEST_PASSWORD)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuCONFIGURE_OPTIONS += --testsocket=CHANGEME
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# !!!!!!!!! workaround for 22552923
60f30f0eeeacdfc1e0dfe39664373ddf5a0675adFelix Gabriel ManceMYSQL_LIBS = $(shell $(MYSQL_BINDIR)/mysql_config --libs)
7852de3551fc797566ee71165bafe05b6d81728cnotanartistCONFIGURE_OPTIONS += --libs="$(MYSQL_LIBS) -lCrun"
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# !!!!!!!!! workaround for 22552923
60f30f0eeeacdfc1e0dfe39664373ddf5a0675adFelix Gabriel Mance
9475501a6acf48434052d9e6f4a05ed6681eaaabFrancisc Nicolae Bungiu# For the testing we need to run mysql database first. The database needs it's
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# directory, which will be $(MYSQL_TEST_DATADIR). The directory will also
7852de3551fc797566ee71165bafe05b6d81728cnotanartist# contain socket over which the testing will be performed. Problem is that the
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski# path can be maximally 107 characters long. To overcome that limit, we'll
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski# create a symlink in /tmp pointing to the directory and refer the database to
424860079d47bf490fa98d5d7498096a0447c569mcodescu# that symlink. The symlink must have random name, so that multiple tests may
0dd6e7830de0887c9a12356447975a826b3b3db2Christian Maeder# be executed simultaneously. Problem is that we have to specify the symlink
0dd6e7830de0887c9a12356447975a826b3b3db2Christian Maeder# name during configure. To overcome that I specify the socket name as
424860079d47bf490fa98d5d7498096a0447c569mcodescu# 'CHANGEME' and "fix" the tests once I know the name of symlink.
0dd6e7830de0887c9a12356447975a826b3b3db2Christian Maeder
0dd6e7830de0887c9a12356447975a826b3b3db2Christian Maeder# Second challenge is to make sure that the mysql daemon will be stopped once
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# the tests end (finish or are interrupted). There are three mechanisms to do
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# that.
d0f58d27c2536eba454d8f77de8617bc6a2c99cdFelix Gabriel Mance# a) mysql stores it's pid to $(MYSQL_TEST_DATADIR)/pid
60f30f0eeeacdfc1e0dfe39664373ddf5a0675adFelix Gabriel Mance# b) the COMPONENT_PRE_TEST_ACTION runs a background task which kills the
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# daemon in 10 minutes no matter what.
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# c) the COMPONENT_POST_TEST_ACTION kills both the mysql daemon and the
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# background task
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# If you want to keep mysqld running for your own testing purposes, delete all
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# the lines containing 'kill' in COMPONENT_PRE_TEST_ACTION and whole
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# COMPONENT_POST_TEST_ACTION. Then run "gmake test" once which will both run
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# the DB and configure the module to use it. After that you can "cd builds/..."
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# and "gmake test" directly there.
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
3d3889e0cefcdce9b3f43c53aaa201943ac2e895Jonathan von Schroeder# Normally the noise from background jobs is sent to /dev/null so that it does
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu# not clobber the terminal. For debugging you can leave SILENT empty which will
3d3889e0cefcdce9b3f43c53aaa201943ac2e895Jonathan von Schroeder# even turn on more output
3d3889e0cefcdce9b3f43c53aaa201943ac2e895Jonathan von SchroederSILENT = >/dev/null 2>&1
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiuifeq ($(strip $(SILENT)),)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuSET_X = set -x;
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuMYSQLD_VERBOSE =
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiuelse
3d3889e0cefcdce9b3f43c53aaa201943ac2e895Jonathan von SchroederSET_X =
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuMYSQLD_VERBOSE = --verbose
31e9d2a02e15b7dbc157e0d3fb3b84f6c8666482Christian Maederendif
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuCOMPONENT_PRE_TEST_ACTION = ( \
656f17ae9b7610ff2de1b6eedeeadea0c3bcdc8dChristian Maeder $(SET_X) cd "$(@D)"; \
d3cb3401882f6956de016f8eecbec1cd3b868acbFelix Gabriel Mance \
d3cb3401882f6956de016f8eecbec1cd3b868acbFelix Gabriel Mance : "Prepare the testing directory and create the symlink to it"; \
d3cb3401882f6956de016f8eecbec1cd3b868acbFelix Gabriel Mance $(RM) -r "$(MYSQL_TEST_DATADIR)"; \
d3cb3401882f6956de016f8eecbec1cd3b868acbFelix Gabriel Mance mkdir "$(MYSQL_TEST_DATADIR)"; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu TEST_LINK=`mktemp -t dbd-mysql-test.XXXXXX`; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu $(RM) "$$TEST_LINK"; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu ln -s $(MYSQL_TEST_DATADIR) "$$TEST_LINK"; \
7852de3551fc797566ee71165bafe05b6d81728cnotanartist \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu : "alter the tests to use the path we just created"; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu $(PERL) -pi -e "s,('testsocket' => ').*?',\$$1/$$TEST_LINK/socket'," t/mysql.mtest ;\
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu : "Initialize mysql DB"; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu "$(MYSQL_BINDIR)/mysqld" \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu --initialize-insecure \
0dd6e7830de0887c9a12356447975a826b3b3db2Christian Maeder --datadir="$$TEST_LINK" \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu --basedir=/usr/mysql/$(MYSQL_VERSION) $(SILENT) ; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu echo "$$TEST_LINK" > "$$TEST_LINK"/test_link; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu : "Run the daemon in background. --gdb makes it possible to terminate mysqld via Ctrl+C"; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu "$(MYSQL_BINDIR)/mysqld" \
06acd8a23b2f06e7b2373d53f738cf56c7f03223Francisc Nicolae Bungiu $(MYSQLD_VERBOSE) \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu --skip-networking \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu -u "$(MYSQL_TEST_USER)"\
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu --datadir="$$TEST_LINK" \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu --socket="$$TEST_LINK"/socket \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu --pid-file="$$TEST_LINK"/pid \
7852de3551fc797566ee71165bafe05b6d81728cnotanartist --gdb \
32bbac77828be0233953f8fe476edb0a9585408dChristian Maeder $(SILENT) & \
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski : "Now wait for the database to be online"; \
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski sleep 10; \
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski if [ ! -e "$$TEST_LINK/socket" ]; then \
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski : "We were not able to bring up the database?"; \
32bbac77828be0233953f8fe476edb0a9585408dChristian Maeder PID=`cat "$$TEST_LINK"/pid`; \
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski ps -p $$PID && kill $$PID || : \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu $(RM) "$$TEST_LINK"; \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder exit 1; \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder fi; \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder : "Set admin password"; \
b84c87f199dc287d235d7dad6ea344f6912ef531Christian Maeder "$(MYSQL_BINDIR)/mysqladmin" \
7852de3551fc797566ee71165bafe05b6d81728cnotanartist --socket "$$TEST_LINK"/socket \
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski -u "$(MYSQL_TEST_USER)" \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder password "$(MYSQL_TEST_PASSWORD)" ; \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder : "Create a database"; \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder "$(MYSQL_BINDIR)/mysqladmin" \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder --socket "$$TEST_LINK"/socket \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder -u "$(MYSQL_TEST_USER)" \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder --password="$(MYSQL_TEST_PASSWORD)" \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder create test; \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder \
cf0439f74f1d55a9840d38a88f9b0f4fc00d5547Christian Maeder : "Run job which will kill mysqld in 10 minutes"; \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu ( $(SET_X) PID=`cat "$$TEST_LINK"/pid`; sleep 600; ps -p $$PID && kill $$PID || : ) $(SILENT) & \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu echo $$! > "$$TEST_LINK"/pid_of_guard; \
7852de3551fc797566ee71165bafe05b6d81728cnotanartist)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
7852de3551fc797566ee71165bafe05b6d81728cnotanartistCOMPONENT_POST_TEST_ACTION = ( \
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski ( $(SET_X) PID=`cat $(MYSQL_TEST_DATADIR)/pid`; [ -n "$$PID" ] && ps -p $$PID && kill $$PID || : ) $(SILENT); \
624f8c31bd8d6746b93f4b5966aa6fc7680fefc5Felix Gabriel Mance ( $(SET_X) PID=`cat $(MYSQL_TEST_DATADIR)/pid_of_guard`; [ -n "$$PID" ] && ps -p $$PID && kill $$PID || : ) $(SILENT); \
80875f917d741946a39d0ec0b5721e46ba609823Till Mossakowski ( $(SET_X) if [ -e "$(MYSQL_TEST_DATADIR)/test_link" ]; then rm -f `cat "$(MYSQL_TEST_DATADIR)/test_link"`; fi ) $(SILENT); \
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu)
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu$(LICENSE): $(LICENSE).template
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu $(PERL) -pe 's/COMPONENT_VERSION/$(COMPONENT_VERSION)/g' "$<" > "$@"
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae Bungiu
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuREQUIRED_PACKAGES += database/mysql-57/library
ee93ea764a2b8189253e912c8447f9419033f6d4Francisc Nicolae BungiuREQUIRED_PACKAGES += library/perl-5/database
b84c87f199dc287d235d7dad6ea344f6912ef531Christian MaederREQUIRED_PACKAGES += system/library/c++-runtime
624f8c31bd8d6746b93f4b5966aa6fc7680fefc5Felix Gabriel Mance