Skip to content

Commit dededfe

Browse files
committed
[#3731] More fixes
1 parent 478785f commit dededfe

File tree

11 files changed

+20
-18
lines changed

11 files changed

+20
-18
lines changed

doc/devel/make-devel.sh.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -euv
44

5+
root_path=$(cd "$(dirname "${0}")/.." && pwd)
6+
cd "${root_path}"
7+
58
mkdir -p @builddir@/html
69

710
(cat Doxyfile; echo PROJECT_NUMBER=@PACKAGE_VERSION@) | doxygen - > @builddir@/html/doxygen.log 2> @builddir@/html/doxygen-error.log

doc/devel/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ make_devel = configure_file(
1212
output: 'make-devel.sh',
1313
configuration: make_devel_conf_data,
1414
)
15-
run_target('devel', command: [CD_AND_RUN, current_source_dir, make_devel])
15+
run_target('devel', command: make_devel)

meson.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ SBINDIR = get_option('sbindir')
4848
SYSCONFDIR = get_option('sysconfdir')
4949

5050
DATABASE_SCRIPTS_DIR = TOP_BUILD_DIR / 'src/share/database/scripts'
51-
DHCP_DATA_DIR = LOCALSTATEDIR / 'run/kea'
5251
DEFAULT_HOOKS_PATH = PREFIX / LIBDIR / 'kea/hooks'
5352
KEA_ADMIN_BUILT = TOP_BUILD_DIR / 'src/bin/lfc/kea-admin'
5453
KEA_ADMIN_INSTALLED = PREFIX / SBINDIR / 'kea-admin'
5554
KEA_LFC_BUILT = TOP_BUILD_DIR / 'src/bin/lfc/kea-lfc'
5655
KEA_LFC_INSTALLED = PREFIX / SBINDIR / 'kea-lfc'
5756
LEGAL_LOG_DIR = PREFIX / LOCALSTATEDIR / 'lib/kea'
57+
RUNSTATEDIR = LOCALSTATEDIR / 'run/kea'
58+
RUNSTATEDIR_INSTALLED = PREFIX / RUNSTATEDIR
5859
TEST_CA_DIR = TOP_SOURCE_DIR / 'src/lib/asiolink/testutils/ca'
5960

6061
#### Build Options
@@ -465,7 +466,7 @@ conf_data.set('EXTENDED_VERSION', f'"@PROJECT_VERSION@ (@extended_version@)"')
465466
if PROJECT_VERSION.split('.')[1].to_int() % 2 == 0
466467
package_version_type = 'stable'
467468
else
468-
package_version_type = 'stable'
469+
package_version_type = 'development'
469470
endif
470471
conf_data.set('PACKAGE_VERSION_TYPE', f'"@package_version_type@"')
471472

@@ -898,8 +899,7 @@ top_docs = [
898899
'platforms.rst',
899900
]
900901
install_data(top_docs, install_dir: DATADIR / 'doc/kea')
901-
# No builtin option for 'var/run'.
902-
install_emptydir(LOCALSTATEDIR / 'run/kea')
902+
install_emptydir(RUNSTATEDIR)
903903

904904
# Print the setup report.
905905
message(run_command(['cat', CONFIG_REPORT], check: true).stdout())

src/bin/admin/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kea_admin_conf_data = configuration_data()
22
kea_admin_conf_data.set('prefix', PREFIX)
33
kea_admin_conf_data.set('exec_prefix', '${prefix}')
4-
kea_admin_conf_data.set('datarootdir', '${prefix}/@DATADIR@')
4+
kea_admin_conf_data.set('datarootdir', f'${prefix}/@DATADIR@')
55
kea_admin_conf_data.set('PACKAGE', 'kea')
66
kea_admin_conf_data.set('PACKAGE_NAME', 'kea')
77
kea_admin_conf_data.set('PACKAGE_VERSION', PROJECT_VERSION)

src/bin/keactrl/meson.build

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,38 @@ configure_file(
2626
configuration: keactrl_conf_data,
2727
install_dir: SBINDIR,
2828
)
29-
path_replacer = TOP_BUILD_DIR / 'tools/path_replacer.sh'
3029
configure_file(
3130
input: 'kea-dhcp4.conf.pre',
3231
output: 'kea-dhcp4.conf',
33-
command: [path_replacer, '@INPUT@', '@OUTPUT@'],
32+
command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
3433
install: true,
3534
install_dir: kea_configfiles_destdir,
3635
)
3736
configure_file(
3837
input: 'kea-dhcp6.conf.pre',
3938
output: 'kea-dhcp6.conf',
40-
command: [path_replacer, '@INPUT@', '@OUTPUT@'],
39+
command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
4140
install: true,
4241
install_dir: kea_configfiles_destdir,
4342
)
4443
configure_file(
4544
input: 'kea-dhcp-ddns.conf.pre',
4645
output: 'kea-dhcp-ddns.conf',
47-
command: [path_replacer, '@INPUT@', '@OUTPUT@'],
46+
command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
4847
install: true,
4948
install_dir: kea_configfiles_destdir,
5049
)
5150
configure_file(
5251
input: 'kea-ctrl-agent.conf.pre',
5352
output: 'kea-ctrl-agent.conf',
54-
command: [path_replacer, '@INPUT@', '@OUTPUT@'],
53+
command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
5554
install: true,
5655
install_dir: kea_configfiles_destdir,
5756
)
5857
configure_file(
5958
input: 'kea-netconf.conf.pre',
6059
output: 'kea-netconf.conf',
61-
command: [path_replacer, '@INPUT@', '@OUTPUT@'],
60+
command: [PATH_REPLACER, '@INPUT@', '@OUTPUT@'],
6261
install: NETCONF_DEP.found(),
6362
install_dir: kea_configfiles_destdir,
6463
)

src/lib/dhcpsrv/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ kea_dhcpsrv_lib = shared_library(
9292
'kea-dhcpsrv',
9393
sources,
9494
cpp_args: [
95-
f'-DDHCP_DATA_DIR="@PREFIX@/@DHCP_DATA_DIR@"',
95+
f'-DDHCP_DATA_DIR="@RUNSTATEDIR_INSTALLED@"',
9696
f'-DKEA_LFC_EXECUTABLE="@KEA_LFC_INSTALLED@"',
9797
],
9898
dependencies: [CRYPTO_DEP],

src/lib/log/interprocess/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ kea_log_interprocess_lib = shared_library(
22
'kea-log-interprocess',
33
'interprocess_sync_file.cc',
44
'interprocess_sync_null.cc',
5-
cpp_args: [f'-DLOCKFILE_DIR="@PREFIX@/@LOCALSTATEDIR@/run/kea"'],
5+
cpp_args: [f'-DLOCKFILE_DIR="@RUNSTATEDIR_INSTALLED@"'],
66
include_directories: [include_directories('.')] + INCLUDES,
77
install: true,
88
install_dir: LIBDIR,

src/lib/process/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ kea_process_lib = shared_library(
1212
'log_parser.cc',
1313
'process_messages.cc',
1414
'redact_config.cc',
15-
cpp_args: [f'-DPIDFILE_DIR="@PREFIX@/@LOCALSTATEDIR@/run/kea"'],
15+
cpp_args: [f'-DPIDFILE_DIR="@RUNSTATEDIR_INSTALLED@"'],
1616
dependencies: [GTEST_DEP],
1717
include_directories: [include_directories('.')] + INCLUDES,
1818
install: true,

src/lib/process/tests/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ kea_process_tests = executable(
2525
cpp_args: [
2626
f'-DTEST_DATA_BUILDDIR="@current_build_dir@"',
2727
f'-DTEST_SCRIPT_SH="@current_build_dir@/process_test.sh"',
28-
f'-DPIDFILE_DIR="@PREFIX@/@LOCALSTATEDIR@/run/kea"',
28+
f'-DPIDFILE_DIR="@RUNSTATEDIR_INSTALLED@"',
2929
],
3030
include_directories: [include_directories('.')] + INCLUDES,
3131
link_with: [kea_util_unittests_lib, libs_testutils] + LIBS_BUILT_SO_FAR,

tools/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if AWK.found()
1515
else
1616
tools_conf_data.set('AWK', 'awk')
1717
endif
18-
configure_file(
18+
PATH_REPLACER = configure_file(
1919
input: 'path_replacer.sh.in',
2020
output: 'path_replacer.sh',
2121
configuration: tools_conf_data,

tools/path_replacer.sh.in

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# Copyright (C) 2014-2020 Internet Systems Consortium, Inc. ("ISC")
3+
# Copyright (C) 2014-2025 Internet Systems Consortium, Inc. ("ISC")
44
#
55
# This Source Code Form is subject to the terms of the Mozilla Public
66
# License, v. 2.0. If a copy of the MPL was not distributed with this

0 commit comments

Comments
 (0)