1 diff -urNp -x '*.orig' postgresql-13.6.org/src/Makefile.global.in postgresql-13.6/src/Makefile.global.in
2 --- postgresql-13.6.org/src/Makefile.global.in 2022-02-07 22:17:41.000000000 +0100
3 +++ postgresql-13.6/src/Makefile.global.in 2022-04-04 17:54:23.042839497 +0200
4 @@ -119,7 +119,7 @@ libdir := @libdir@
6 ifeq "$(findstring pgsql, $(pkglibdir))" ""
7 ifeq "$(findstring postgres, $(pkglibdir))" ""
8 -override pkglibdir := $(pkglibdir)/postgresql
9 +override pkglibdir := $(pkglibdir)/postgresql/@PG_MAJORVERSION@/lib
13 @@ -167,7 +167,7 @@ endif # PGXS
15 # These derived path variables aren't separately configurable.
17 -includedir_server = $(pkgincludedir)/server
18 +includedir_server = $(pkgincludedir)/@PG_MAJORVERSION@/server
19 includedir_internal = $(pkgincludedir)/internal
20 pgxsdir = $(pkglibdir)/pgxs
21 bitcodedir = $(pkglibdir)/bitcode
22 diff -urNp -x '*.orig' postgresql-13.6.org/src/bin/pg_config/pg_config.c postgresql-13.6/src/bin/pg_config/pg_config.c
23 --- postgresql-13.6.org/src/bin/pg_config/pg_config.c 2022-02-07 22:17:41.000000000 +0100
24 +++ postgresql-13.6/src/bin/pg_config/pg_config.c 2022-04-04 17:54:23.042839497 +0200
26 #include "common/config_info.h"
29 +#include "../port/pg_config_paths.h"
31 static const char *progname;
34 @@ -149,11 +151,7 @@ main(int argc, char **argv)
38 - if (find_my_exec(argv[0], my_exec_path) < 0)
40 - fprintf(stderr, _("%s: could not find own program executable\n"), progname);
43 + snprintf(my_exec_path, sizeof(my_exec_path), "%s/%s", PGBINDIR, progname);
45 configdata = get_configdata(my_exec_path, &configdata_len);
46 /* no arguments -> print everything */