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
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.
13 # Copyright 2023 Marcel Telka
16 %patch% 01-db-config.patch
20 LD_OPTIONS += -R$(MYSQL_LIBDIR)
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
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.
35 # To check 1) and 2) you can run following commands:
36 # gmake print-value-MYSQL_VERSION
41 # Manually added build and testing dependencies
42 REQUIRED_PACKAGES += $(MYSQL_CLIENT_PKG)
43 TEST_REQUIRED_PACKAGES += $(MYSQL_BASEPKG)