Skip to content

Commit cadded9

Browse files
committed
Support for building pg_probackup outside the source tree
1 parent 0940968 commit cadded9

File tree

6 files changed

+162
-92
lines changed

6 files changed

+162
-92
lines changed

.gitignore

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Object files
22
*.o
3+
*.bc
34

45
# Libraries
56
*.lib
@@ -33,15 +34,8 @@
3334
/tests/helpers/*pyc
3435

3536
# Extra files
36-
/src/pg_crc.c
37-
/src/receivelog.c
38-
/src/receivelog.h
39-
/src/streamutil.c
40-
/src/streamutil.h
41-
/src/xlogreader.c
42-
/src/walmethods.c
43-
/src/walmethods.h
44-
/src/instr_time.h
37+
/src/borrowed/
38+
/borrowed.mk
4539

4640
# Doc files
4741
/doc/*html
@@ -55,7 +49,7 @@
5549
/backup_restore.sh
5650

5751
# Packaging
58-
/build
52+
/pkg-build
5953
/packaging/pkg/tarballs/pgpro.tar.bz2
6054
/packaging/repo/pg_probackup
6155
/packaging/repo/pg_probackup-forks

Makefile

Lines changed: 101 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,77 @@
1-
PROGRAM = pg_probackup
2-
WORKDIR ?= $(CURDIR)
3-
BUILDDIR = $(WORKDIR)/build/
4-
PBK_GIT_REPO = https://github.com/postgrespro/pg_probackup
1+
# pg_probackup build system
2+
#
3+
# You can build pg_probackup in different ways:
4+
#
5+
# 1. in source tree using PGXS (with already installed PG and existing PG sources)
6+
# git clone https://github.com/postgrespro/pg_probackup pg_probackup
7+
# cd pg_probackup
8+
# make USE_PGXS=1 PG_CONFIG=<path_to_pg_config> top_srcdir=<path_to_PostgreSQL_source_tree>
9+
#
10+
# 2. out of source using PGXS
11+
# git clone https://github.com/postgrespro/pg_probackup pg_probackup-src
12+
# mkdir pg_probackup-build && cd pg_probackup-build
13+
# make USE_PGXS=1 PG_CONFIG=<path_to_pg_config> top_srcdir=<path_to_PostgreSQL_source_tree> -f ../pg_probackup-src/Makefile
14+
#
15+
# 3. in PG source (without PGXS -- using only PG sources)
16+
# git clone https://git.postgresql.org/git/postgresql.git postgresql
17+
# git clone https://github.com/postgrespro/pg_probackup postgresql/contrib/pg_probackup
18+
# cd postgresql
19+
# ./configure ... && make
20+
# make --no-print-directory -C contrib/pg_probackup
21+
#
22+
# 4. out of PG source and without PGXS
23+
# git clone https://git.postgresql.org/git/postgresql.git postgresql-src
24+
# git clone https://github.com/postgrespro/pg_probackup postgresql-src/contrib/pg_probackup
25+
# mkdir postgresql-build && cd postgresql-build
26+
# ../postgresql-src/configure ... && make
27+
# make --no-print-directory -C contrib/pg_probackup
28+
#
29+
top_pbk_srcdir := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
530

6-
# utils
7-
OBJS = src/utils/configuration.o src/utils/json.o src/utils/logger.o \
8-
src/utils/parray.o src/utils/pgut.o src/utils/thread.o src/utils/remote.o src/utils/file.o
31+
# get postgres version
32+
PG_MAJORVER != $(MAKE) USE_PGXS=$(USE_PGXS) PG_CONFIG=$(PG_CONFIG) --silent --makefile=$(top_pbk_srcdir)get_pg_version.mk
33+
#$(info Making with PG_MAJORVER=$(PG_MAJORVER))
934

35+
PROGRAM := pg_probackup
36+
37+
# pg_probackup sources
38+
OBJS := src/utils/configuration.o src/utils/json.o src/utils/logger.o \
39+
src/utils/parray.o src/utils/pgut.o src/utils/thread.o src/utils/remote.o src/utils/file.o
1040
OBJS += src/archive.o src/backup.o src/catalog.o src/checkdb.o src/configure.o src/data.o \
1141
src/delete.o src/dir.o src/fetch.o src/help.o src/init.o src/merge.o \
1242
src/parsexlog.o src/ptrack.o src/pg_probackup.o src/restore.o src/show.o src/stream.o \
1343
src/util.o src/validate.o src/datapagemap.o src/catchup.o
1444

15-
# borrowed files
16-
OBJS += src/pg_crc.o src/receivelog.o src/streamutil.o \
17-
src/xlogreader.o
18-
19-
EXTRA_CLEAN = src/pg_crc.c \
20-
src/receivelog.c src/receivelog.h src/streamutil.c src/streamutil.h \
21-
src/xlogreader.c src/instr_time.h
22-
23-
ifdef top_srcdir
24-
srchome := $(abspath $(top_srcdir))
25-
else
26-
top_srcdir=../..
27-
ifneq (,$(wildcard ../../../contrib/pg_probackup))
28-
# separate build directory support
29-
srchome := $(abspath $(top_srcdir)/..)
30-
else
31-
srchome := $(abspath $(top_srcdir))
32-
endif
45+
# sources borrowed from postgresql (paths are relative to pg top dir)
46+
BORROWED_H_SRC := \
47+
src/include/portability/instr_time.h \
48+
src/bin/pg_basebackup/receivelog.h \
49+
src/bin/pg_basebackup/streamutil.h
50+
BORROWED_C_SRC := \
51+
src/backend/access/transam/xlogreader.c \
52+
src/backend/utils/hash/pg_crc.c \
53+
src/bin/pg_basebackup/receivelog.c \
54+
src/bin/pg_basebackup/streamutil.c
55+
ifneq ($(PG_MAJORVER), $(findstring $(PG_MAJORVER), 9.5 9.6))
56+
BORROWED_H_SRC += \
57+
src/bin/pg_basebackup/walmethods.h
58+
BORROWED_C_SRC += \
59+
src/bin/pg_basebackup/walmethods.c
3360
endif
3461

35-
# OBJS variable must be finally defined before invoking the include directive
36-
ifneq (,$(wildcard $(srchome)/src/bin/pg_basebackup/walmethods.c))
37-
OBJS += src/walmethods.o
38-
EXTRA_CLEAN += src/walmethods.c src/walmethods.h
62+
BORROW_DIR := src/borrowed
63+
BORROWED_H := $(addprefix $(BORROW_DIR)/, $(notdir $(BORROWED_H_SRC)))
64+
BORROWED_C := $(addprefix $(BORROW_DIR)/, $(notdir $(BORROWED_C_SRC)))
65+
OBJS += $(patsubst %.c, %.o, $(BORROWED_C))
66+
EXTRA_CLEAN := $(BORROWED_H) $(BORROWED_C) $(BORROW_DIR) borrowed.mk
67+
68+
# off-source build support
69+
ifneq ($(abspath $(CURDIR))/, $(top_pbk_srcdir))
70+
VPATH := $(top_pbk_srcdir)
3971
endif
4072

73+
# standard PGXS stuff
74+
# all OBJS must be defined above this
4175
ifdef USE_PGXS
4276
PG_CONFIG = pg_config
4377
PGXS := $(shell $(PG_CONFIG) --pgxs)
@@ -49,41 +83,47 @@ include $(top_builddir)/src/Makefile.global
4983
include $(top_srcdir)/contrib/contrib-global.mk
5084
endif
5185

52-
PG_CPPFLAGS = -I$(libpq_srcdir) ${PTHREAD_CFLAGS} -Isrc -I$(srchome)/$(subdir)/src
86+
# now we can use standard MAJORVERSION variable instead of calculated PG_MAJORVER
87+
undefine PG_MAJORVER
88+
89+
#
90+
PG_CPPFLAGS = -I$(libpq_srcdir) ${PTHREAD_CFLAGS} -I$(top_pbk_srcdir)/src -I$(BORROW_DIR)
91+
ifdef VPATH
92+
PG_CPPFLAGS += -Isrc
93+
endif
5394
override CPPFLAGS := -DFRONTEND $(CPPFLAGS) $(PG_CPPFLAGS)
5495
PG_LIBS_INTERNAL = $(libpq_pgport) ${PTHREAD_CFLAGS}
5596

56-
src/utils/configuration.o: src/datapagemap.h
57-
src/archive.o: src/instr_time.h
58-
src/backup.o: src/receivelog.h src/streamutil.h
59-
60-
src/instr_time.h: $(srchome)/src/include/portability/instr_time.h
61-
rm -f $@ && $(LN_S) $(srchome)/src/include/portability/instr_time.h $@
62-
src/pg_crc.c: $(srchome)/src/backend/utils/hash/pg_crc.c
63-
rm -f $@ && $(LN_S) $(srchome)/src/backend/utils/hash/pg_crc.c $@
64-
src/receivelog.c: $(srchome)/src/bin/pg_basebackup/receivelog.c
65-
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_basebackup/receivelog.c $@
66-
ifneq (,$(wildcard $(srchome)/src/bin/pg_basebackup/walmethods.c))
67-
src/receivelog.h: src/walmethods.h $(srchome)/src/bin/pg_basebackup/receivelog.h
68-
else
69-
src/receivelog.h: $(srchome)/src/bin/pg_basebackup/receivelog.h
97+
# additional dependencies on borrowed files
98+
src/archive.o: $(BORROW_DIR)/instr_time.h
99+
src/backup.o src/catchup.o src/pg_probackup.o: $(BORROW_DIR)/streamutil.h
100+
src/stream.o $(BORROW_DIR)/receivelog.o $(BORROW_DIR)/streamutil.o: $(BORROW_DIR)/receivelog.h
101+
ifneq ($(MAJORVERSION), $(findstring $(MAJORVERSION), 9.5 9.6))
102+
$(BORROW_DIR)/receivelog.h: $(BORROW_DIR)/walmethods.h
103+
$(BORROW_DIR)/walmethods.o: $(BORROW_DIR)/receivelog.h
70104
endif
71-
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_basebackup/receivelog.h $@
72-
src/streamutil.c: $(srchome)/src/bin/pg_basebackup/streamutil.c
73-
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_basebackup/streamutil.c $@
74-
src/streamutil.h: $(srchome)/src/bin/pg_basebackup/streamutil.h
75-
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_basebackup/streamutil.h $@
76-
src/xlogreader.c: $(srchome)/src/backend/access/transam/xlogreader.c
77-
rm -f $@ && $(LN_S) $(srchome)/src/backend/access/transam/xlogreader.c $@
78-
src/walmethods.c: $(srchome)/src/bin/pg_basebackup/walmethods.c
79-
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_basebackup/walmethods.c $@
80-
src/walmethods.h: $(srchome)/src/bin/pg_basebackup/walmethods.h
81-
rm -f $@ && $(LN_S) $(srchome)/src/bin/pg_basebackup/walmethods.h $@
82105

83-
ifeq ($(PORTNAME), aix)
84-
CC=xlc_r
85-
endif
106+
# generate separate makefile to handle borrowed files
107+
borrowed.mk: $(firstword $(MAKEFILE_LIST))
108+
$(file >$@,# This file is autogenerated. Do not edit!)
109+
$(foreach borrowed_file, $(BORROWED_H_SRC) $(BORROWED_C_SRC), \
110+
$(file >>$@,$(addprefix $(BORROW_DIR)/, $(notdir $(borrowed_file))): | $(CURDIR)/$(BORROW_DIR)/ $(realpath $(top_srcdir)/$(borrowed_file))) \
111+
$(file >>$@,$(shell echo "\t"'$$(LN_S) $(realpath $(top_srcdir)/$(borrowed_file)) $$@')) \
112+
)
113+
include borrowed.mk
114+
115+
# create needed directories for borrowed files and off-source build
116+
OBJDIRS = $(addprefix $(CURDIR)/, $(sort $(dir $(OBJS))))
117+
$(OBJS): | $(OBJDIRS)
118+
$(OBJDIRS):
119+
mkdir -p $@
120+
121+
# packaging infrastructure
122+
WORKDIR ?= $(CURDIR)
123+
PBK_PKG_BUILDDIR = $(WORKDIR)/pkg-build/
124+
PBK_GIT_REPO = https://github.com/postgrespro/pg_probackup
125+
126+
include $(top_pbk_srcdir)/packaging/Makefile.pkg
127+
include $(top_pbk_srcdir)/packaging/Makefile.repo
128+
include $(top_pbk_srcdir)/packaging/Makefile.test
86129

87-
include packaging/Makefile.pkg
88-
include packaging/Makefile.repo
89-
include packaging/Makefile.test

get_pg_version.mk

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# pg_probackup build system
2+
#
3+
# When building pg_probackup, there is a chicken and egg problem:
4+
# 1. We have to define the OBJS list before including the PG makefiles.
5+
# 2. To define this list, we need to know the PG major version.
6+
# 3. But we can find out the postgres version only after including makefiles.
7+
#
8+
# This minimal makefile solves this problem, its only purpose is to
9+
# calculate the version number from which the main build will occur next.
10+
#
11+
# Usage:
12+
# include this line into main makefile
13+
# PG_MAJORVER != $(MAKE) USE_PGXS=$(USE_PGXS) PG_CONFIG=$(PG_CONFIG) --silent --makefile=get_pg_version.mk
14+
#
15+
# Known issues:
16+
# When parent make called with -C and without --no-print-directory, then
17+
# 'make: Leaving directory ...' string will be added (by caller make process) to PG_MAJORVER
18+
# (at least with GNU Make 4.2.1)
19+
#
20+
.PHONY: get_pg_version
21+
get_pg_version:
22+
23+
ifdef USE_PGXS
24+
PG_CONFIG = pg_config
25+
PGXS := $(shell $(PG_CONFIG) --pgxs)
26+
include $(PGXS)
27+
else
28+
subdir = contrib/pg_probackup
29+
top_builddir = ../..
30+
include $(top_builddir)/src/Makefile.global
31+
include $(top_srcdir)/contrib/contrib-global.mk
32+
endif
33+
34+
get_pg_version:
35+
$(info $(MAJORVERSION))
36+

packaging/Makefile.pkg

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ build/prepare:
3636
mkdir -p build
3737

3838
build/clean: build/prepare
39-
find $(BUILDDIR) -maxdepth 1 -type f -exec rm -f {} \;
39+
find $(PBK_PKG_BUILDDIR) -maxdepth 1 -type f -exec rm -f {} \;
4040

4141
build/all: build/debian build/ubuntu build/centos build/oraclelinux build/alt build/suse build/rhel
4242
@echo Packaging is done
@@ -76,8 +76,8 @@ define build_deb
7676
--rm pgpro/$1:$2 /app/in/scripts/deb.sh
7777
endef
7878

79-
include packaging/pkg/Makefile.debian
80-
include packaging/pkg/Makefile.ubuntu
79+
include $(top_pbk_srcdir)/packaging/pkg/Makefile.debian
80+
include $(top_pbk_srcdir)/packaging/pkg/Makefile.ubuntu
8181

8282
# CENTOS
8383
build/centos: build/centos_7 build/centos_8 #build/rpm_repo_package_centos
@@ -127,9 +127,9 @@ define build_rpm
127127
--rm pgpro/$1:$2 /app/in/scripts/rpm.sh
128128
endef
129129

130-
include packaging/pkg/Makefile.centos
131-
include packaging/pkg/Makefile.rhel
132-
include packaging/pkg/Makefile.oraclelinux
130+
include $(top_pbk_srcdir)/packaging/pkg/Makefile.centos
131+
include $(top_pbk_srcdir)/packaging/pkg/Makefile.rhel
132+
include $(top_pbk_srcdir)/packaging/pkg/Makefile.oraclelinux
133133

134134

135135
# Alt Linux
@@ -157,7 +157,7 @@ define build_alt
157157
--rm pgpro/$1:$2 /app/in/scripts/alt.sh
158158
endef
159159

160-
include packaging/pkg/Makefile.alt
160+
include $(top_pbk_srcdir)/packaging/pkg/Makefile.alt
161161

162162
# SUSE Linux
163163
build/suse: build/suse_15.1 build/suse_15.2
@@ -182,4 +182,4 @@ define build_suse
182182
--rm pgpro/$1:$2 /app/in/scripts/suse.sh
183183
endef
184184

185-
include packaging/pkg/Makefile.suse
185+
include $(top_pbk_srcdir)/packaging/pkg/Makefile.suse

packaging/Makefile.repo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ build/repo_suse_15.2:
100100

101101
repo_finish:
102102
# cd build/data/www/$(PBK_PKG_REPO)/
103-
cd $(BUILDDIR)/data/www/$(PBK_PKG_REPO)/rpm && sudo ln -nsf $(PBK_VERSION) latest
103+
cd $(PBK_PKG_BUILDDIR)/data/www/$(PBK_PKG_REPO)/rpm && sudo ln -nsf $(PBK_VERSION) latest
104104
# following line only for vanilla
105-
cd $(BUILDDIR)/data/www/$(PBK_PKG_REPO)/srpm && sudo ln -nsf $(PBK_VERSION) latest
105+
cd $(PBK_PKG_BUILDDIR)/data/www/$(PBK_PKG_REPO)/srpm && sudo ln -nsf $(PBK_VERSION) latest
106106

107107
# sudo ln -rfs build/data/www/$(PBK_PKG_REPO)/rpm/${PBK_VERSION} build/data/www/$(PBK_PKG_REPO)/rpm/latest
108108
# sudo ln -rfs build/data/www/$(PBK_PKG_REPO)/srpm/${PBK_VERSION} build/data/www/$(PBK_PKG_REPO)/srpm/latest

packaging/Makefile.test

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ define test_deb
3939
docker rm -f $1_$2_probackup_$(PKG_NAME_SUFFIX)$(PBK_VERSION) >> /dev/null 2>&1 ; \
4040
docker run \
4141
-v $(WORKDIR)/packaging/test:/app/in \
42-
-v $(BUILDDIR)/data/www:/app/www \
42+
-v $(PBK_PKG_BUILDDIR)/data/www:/app/www \
4343
-e "DISTRIB=$1" -e "DISTRIB_VERSION=$2" -e "CODENAME=$3" -e "PG_VERSION=$4" -e "PG_FULL_VERSION=$5" \
4444
-e "PKG_HASH=$(PBK_HASH)" -e "PKG_URL=$(PBK_GIT_REPO)" -e "PKG_RELEASE=$(PBK_RELEASE)" -e "PKG_NAME=pg-probackup-$(PKG_NAME_SUFFIX)$4" \
4545
-e "PKG_VERSION=$(PBK_VERSION)" -e "PBK_EDITION=$(PBK_EDITION)" -e "PBK_EDITION_FULL=$(PBK_EDITION_FULL)" \
4646
--name $1_$2_probackup_$(PKG_NAME_SUFFIX)$(PBK_VERSION)_pg_$5 \
4747
--rm pgpro/$1:$2 /app/in/scripts/deb$(SCRIPT_SUFFIX).sh
4848
endef
4949

50-
include packaging/test/Makefile.debian
51-
include packaging/test/Makefile.ubuntu
50+
include $(top_pbk_srcdir)/packaging/test/Makefile.debian
51+
include $(top_pbk_srcdir)/packaging/test/Makefile.ubuntu
5252

5353
# CENTOS
5454
build/test_centos: build/test_centos_7 build/test_centos_8
@@ -86,17 +86,17 @@ define test_rpm
8686
docker rm -f $1_$2_probackup_$(PKG_NAME_SUFFIX)$(PBK_VERSION) >> /dev/null 2>&1 ; \
8787
docker run \
8888
-v $(WORKDIR)/packaging/test:/app/in \
89-
-v $(BUILDDIR)/data/www:/app/www \
89+
-v $(PBK_PKG_BUILDDIR)/data/www:/app/www \
9090
-e "DISTRIB=$1" -e "DISTRIB_VERSION=$2" -e "CODENAME=$3" -e "PG_VERSION=$4" -e "PG_FULL_VERSION=$5" \
9191
-e "PKG_HASH=$(PBK_HASH)" -e "PKG_URL=$(PBK_GIT_REPO)" -e "PKG_RELEASE=$(PBK_RELEASE)" -e "PKG_NAME=pg_probackup-$(PKG_NAME_SUFFIX)$4" \
9292
-e "PKG_VERSION=$(PBK_VERSION)" -e "PBK_EDITION=$(PBK_EDITION)" -e "PBK_EDITION_FULL=$(PBK_EDITION_FULL)" \
9393
--name $1_$2_probackup_$(PKG_NAME_SUFFIX)$(PBK_VERSION)_pg_$5 \
9494
--rm pgpro/$1:$2 /app/in/scripts/rpm$(SCRIPT_SUFFIX).sh
9595
endef
9696

97-
include packaging/test/Makefile.centos
98-
include packaging/test/Makefile.rhel
99-
include packaging/test/Makefile.oraclelinux
97+
include $(top_pbk_srcdir)/packaging/test/Makefile.centos
98+
include $(top_pbk_srcdir)/packaging/test/Makefile.rhel
99+
include $(top_pbk_srcdir)/packaging/test/Makefile.oraclelinux
100100

101101
# Alt Linux
102102
build/test_alt: build/test_alt_8 build/test_alt_9
@@ -115,15 +115,15 @@ define test_alt
115115
docker rm -f $1_$2_probackup_$(PKG_NAME_SUFFIX)$(PBK_VERSION) >> /dev/null 2>&1 ; \
116116
docker run \
117117
-v $(WORKDIR)/packaging/test:/app/in \
118-
-v $(BUILDDIR)/data/www:/app/www \
118+
-v $(PBK_PKG_BUILDDIR)/data/www:/app/www \
119119
-e "DISTRIB=$1" -e "DISTRIB_VERSION=$2" -e "CODENAME=$3" -e "PG_VERSION=$4" -e "PG_FULL_VERSION=$5" \
120120
-e "PKG_HASH=$(PBK_HASH)" -e "PKG_URL=$(PBK_GIT_REPO)" -e "PKG_RELEASE=$(PBK_RELEASE)" -e "PKG_NAME=pg_probackup-$(PKG_NAME_SUFFIX)$4" \
121121
-e "PKG_VERSION=$(PBK_VERSION)" -e "PBK_EDITION=$(PBK_EDITION)" -e "PBK_EDITION_FULL=$(PBK_EDITION_FULL)" \
122122
--name $1_$2_probackup_$(PKG_NAME_SUFFIX)$(PBK_VERSION)_pg_$5 \
123123
--rm pgpro/$1:$2 /app/in/scripts/alt$(SCRIPT_SUFFIX).sh
124124
endef
125125

126-
include packaging/test/Makefile.alt
126+
include $(top_pbk_srcdir)/packaging/test/Makefile.alt
127127

128128
# SUSE Linux
129129
build/test_suse: build/test_suse_15.1 build/test_suse_15.2
@@ -139,12 +139,12 @@ define test_suse
139139
docker rm -f $1_$2_probackup_$(PKG_NAME_SUFFIX)$(PBK_VERSION) >> /dev/null 2>&1 ; \
140140
docker run \
141141
-v $(WORKDIR)/packaging/test:/app/in \
142-
-v $(BUILDDIR)/data/www:/app/www \
142+
-v $(PBK_PKG_BUILDDIR)/data/www:/app/www \
143143
-e "DISTRIB=$1" -e "DISTRIB_VERSION=$2" -e "CODENAME=$3" -e "PG_VERSION=$4" -e "PG_FULL_VERSION=$5" \
144144
-e "PKG_HASH=$(PBK_HASH)" -e "PKG_URL=$(PBK_GIT_REPO)" -e "PKG_RELEASE=$(PBK_RELEASE)" -e "PKG_NAME=pg_probackup-$(PKG_NAME_SUFFIX)$4" \
145145
-e "PKG_VERSION=$(PBK_VERSION)" -e "PBK_EDITION=$(PBK_EDITION)" -e "PBK_EDITION_FULL=$(PBK_EDITION_FULL)" \
146146
--name $1_$2_probackup_$(PKG_NAME_SUFFIX)$(PBK_VERSION)_pg_$5 \
147147
--rm pgpro/$1:$2 /app/in/scripts/suse$(SCRIPT_SUFFIX).sh
148148
endef
149149

150-
include packaging/test/Makefile.suse
150+
include $(top_pbk_srcdir)/packaging/test/Makefile.suse

0 commit comments

Comments
 (0)