aports/main/postgresql17/fix-test-check_guc.patch
Andy Postnikov d69ead2c87 main/postgresql17: new aport
It cannot be built against older libpq, so we have to build it as the
default version right away.

    ld: ../../../src/fe_utils/libpgfeutils.a(connect_utils.o): in function `disconnectDatabase':
      connect_utils.c:(.text+0x35d): undefined reference to `PQcancelCreate'
    ld: connect_utils.c:(.text+0x369): undefined reference to `PQcancelBlocking'
    ld: connect_utils.c:(.text+0x372): undefined reference to `PQcancelFinish'

Co-Authored-By: Jakub Jirutka <jakub@jirutka.cz>
2024-11-01 12:59:50 +01:00

13 lines
473 B
Diff

--- a/src/test/modules/test_misc/t/003_check_guc.pl
+++ b/src/test/modules/test_misc/t/003_check_guc.pl
@@ -39,6 +39,10 @@
# use the sample file from the temp install
my $share_dir = $node->config_data('--sharedir');
+# XXX-Patched: --sharedir returns /usr/share/...
+if (-d "../../../../tmp_install") {
+ $share_dir = "../../../../tmp_install" . $share_dir
+}
my $sample_file = "$share_dir/postgresql.conf.sample";
# List of all the GUCs found in the sample file.