mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Define PG_ACTUAL_VERSION_NUM
Due to [insert reason here], in the Debian package build process (and only there), when building frontend code PG_VERSION_NUM appears to be from the newest libpq-dev version installed, and does not necessarily match the version of the server the code is being built against. To work around this distribution-specific package build issue, we'll define our own substitution variable which is taken from the value provided in Makefile.global.
This commit is contained in:
@@ -59,7 +59,8 @@ REPMGRD_OBJS = repmgrd.o repmgrd-physical.o repmgrd-bdr.o configfile.o log.o dbu
|
||||
DATE=$(shell date "+%Y-%m-%d")
|
||||
|
||||
repmgr_version.h: repmgr_version.h.in
|
||||
$(SED) '0,/REPMGR_VERSION_DATE/s,\(REPMGR_VERSION_DATE\).*,\1 "$(DATE)",' $< >$@
|
||||
$(SED) '0,/REPMGR_VERSION_DATE/s,\(REPMGR_VERSION_DATE\).*,\1 "$(DATE)",' $< >$@; \
|
||||
$(SED) '0,/PG_ACTUAL_VERSION_NUM/s,\(PG_ACTUAL_VERSION_NUM\).*,\1 $(VERSION_NUM),' $< >$@
|
||||
|
||||
$(REPMGR_CLIENT_OBJS): repmgr-client.h repmgr_version.h
|
||||
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
#define REPMGR_VERSION "4.5dev"
|
||||
#define REPMGR_VERSION_NUM 40500
|
||||
#define REPMGR_RELEASE_DATE "2019-XX-XX"
|
||||
#define PG_ACTUAL_VERSION_NUM
|
||||
|
||||
Reference in New Issue
Block a user