Skip to content

Commit 8592cc6

Browse files
committed
[#3731] Some fixes
1 parent 4e5b258 commit 8592cc6

File tree

4 files changed

+9
-20
lines changed

4 files changed

+9
-20
lines changed

changelog_unreleased/3731-meson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build] andrei, fdupont
2-
Add meson as a build system.
2+
Added meson as a build system.
33
(Gitlab #3443, #3729, #3730, #3731)

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ python_module = import('python')
3737
TOP_BUILD_DIR = meson.current_build_dir()
3838
TOP_SOURCE_DIR = meson.current_source_dir()
3939

40+
BINDIR = get_option('bindir')
4041
DATADIR = get_option('datadir')
4142
LIBDIR = get_option('libdir')
4243
LOCALSTATEDIR = get_option('localstatedir')

src/lib/log/compiler/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ KEA_MSG_COMPILER = executable(
77
'message.cc',
88
include_directories: INCLUDES,
99
install: true,
10-
install_dir: 'bin',
10+
install_dir: BINDIR,
1111
link_with: LIBS_BUILT_SO_FAR,
1212
)

subprojects/krb5/meson.build

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,23 @@ krb5_config = find_program('krb5-config', required: false)
66
if krb5_config.found()
77
# Detect vendor.
88
vendor_cmd = run_command([krb5_config, '--vendor'], check: false)
9-
vendor = 'unknown'
10-
if vendor_cmd.returncode() == 0
11-
vendor = vendor_cmd.stdout().strip()
9+
if vendor_cmd.returncode() != 0
10+
path = krb5_config.full_path()
11+
message(f'Very old and not usable config script at @path@')
1212
else
13-
all = run_command([krb5_config, '--all'], check: false)
14-
if all.returncode() == 0
15-
foreach i : all.stdout().split('\n')
16-
if i.startswith('Vendor')
17-
vendor = i.split(':')[1].strip()
18-
break
19-
endif
20-
endforeach
21-
endif
13+
vendor = vendor_cmd.stdout().strip()
2214
endif
2315

2416
cflags = run_command([krb5_config, '--cflags', 'gssapi'], check: false)
2517
libs = run_command([krb5_config, '--libs', 'gssapi'], check: false)
2618
version = run_command([krb5_config, '--version'], check: false)
27-
if cflags.returncode() == 0 and libs.returncode() == 0 and version.returncode() == 0
19+
if vendor_cmd.returncode() == 0 and cflags.returncode() == 0 and libs.returncode() == 0 and version.returncode() == 0
2820
krb5_version = version.stdout().strip()
2921
krb5 = declare_dependency(
3022
compile_args: cflags.stdout().split(),
3123
link_args: libs.stdout().split(),
3224
version: krb5_version,
33-
variables: {
34-
'cflags': cflags.stdout().strip(),
35-
'libs': libs.stdout().strip(),
36-
'vendor': vendor,
37-
},
25+
variables: { 'vendor': vendor, },
3826
)
3927
endif
4028
endif

0 commit comments

Comments
 (0)