commit | author | age
|
9bf470
|
1 |
# |
MT |
2 |
# This file and its contents are supplied under the terms of the |
|
3 |
# Common Development and Distribution License ("CDDL"), version 1.0. |
|
4 |
# You may only use this file in accordance with the terms of version |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
7 |
# A full copy of the text of the CDDL should have accompanied this |
|
8 |
# source. A copy of the CDDL is also available via the Internet at |
|
9 |
# http://www.illumos.org/license/CDDL. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2023 Marcel Telka |
|
14 |
# |
|
15 |
|
|
16 |
%patch% 01-db-config.patch |
|
17 |
|
|
18 |
%include-3% |
|
19 |
# Force needed rpath |
|
20 |
LD_OPTIONS += -R$(MYSQL_LIBDIR) |
|
21 |
|
|
22 |
# We need to make sure Python will not found modules distributed with source |
|
23 |
# package because there is missing compiled library. |
|
24 |
COMPONENT_TEST_DIR = $(@D)/tests |
|
25 |
|
|
26 |
# |
|
27 |
# Note: |
|
28 |
# |
|
29 |
# To test we need to fulfill following prerequisites: |
|
30 |
# 1) the default system mysql/mariadb version must match the version we |
|
31 |
# built mysqlclient for, |
|
32 |
# 2) the mariadb service must be running, |
|
33 |
# 3) the (default) test database must exist. |
|
34 |
# |
|
35 |
# To check 1) and 2) you can run following commands: |
|
36 |
# gmake print-value-MYSQL_VERSION |
|
37 |
# pkg mediator mysql |
|
38 |
# svcs '*mariadb*' |
|
39 |
# |
|
40 |
|
|
41 |
# Manually added build and testing dependencies |
|
42 |
REQUIRED_PACKAGES += $(MYSQL_CLIENT_PKG) |
|
43 |
TEST_REQUIRED_PACKAGES += $(MYSQL_BASEPKG) |