-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.conf
39 lines (31 loc) · 1.24 KB
/
meson.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require 'shared.conf';
$PGBuild::conf{animal} = $ENV{ANIMAL} // 'meson';
$PGBuild::conf{secret} = $ENV{SECRET} // $PGBuild::conf{secret};
$PGBuild::conf{using_meson} = true;
$PGBuild::conf{meson_jobs} = 2;
push(@{$PGBuild::conf{meson_opts}}, (
'-DPG_TEST_EXTRA=ssl kerberos ldap oauth',
'-Ddebug=true',
'-Dllvm=enabled',
'-Dlz4=enabled',
'-Dpam=enabled',
'-Dtap_tests=enabled',
'-Duuid=ossp',
'-Dzstd=enabled'
));
if ($branch eq 'HEAD' || $branch ge 'REL_18') {
push(@{$PGBuild::conf{meson_opts}}, '-Dlibcurl=enabled');
}
$PGBuild::conf{build_env}->{LD_PRELOAD} = $ENV{LD_PRELOAD};
$PGBuild::conf{build_env}->{NSS_WRAPPER_PASSWD} = $ENV{NSS_WRAPPER_PASSWD};
$PGBuild::conf{build_env}->{NSS_WRAPPER_GROUP} = $ENV{NSS_WRAPPER_GROUP};
# TODO: Building with --enable-nls currently fails with:
# ld: ../../src/port/libpgport.a(strerror.o): in function `pg_strerror_r':
# src/port/strerror.c:72:(.text+0x260): undefined reference to `libintl_gettext'
# ld: src/port/strerror.c:72:(.text+0x2d8): undefined reference to `libintl_gettext'
@{$PGBuild::conf{meson_opts}} = grep {!/-Dnls=enabled/} @{$PGBuild::conf{meson_opts}};
# TODO: Currently failing two tests:
# initdb/001_initdb
# icu / icu/010_database
push(@{$PGBuild::conf{meson_opts}}, '-Dicu=disabled');
1;