summaryrefslogtreecommitdiffstats
path: root/package/postgresql/postgresql.mk
diff options
context:
space:
mode:
authorAdam Duskett <aduskett@gmail.com>2018-03-12 06:12:30 -0400
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-04 22:59:54 +0200
commit8193cd84a56f5c8fe925c2c74271e474c191b6f5 (patch)
tree61823aa663db0d893cc67fdb116849d7dd64e12b /package/postgresql/postgresql.mk
parente42cc183c5471150b1f130f172a30dc95453bb04 (diff)
downloadbuildroot-8193cd84a56f5c8fe925c2c74271e474c191b6f5.tar.gz
buildroot-8193cd84a56f5c8fe925c2c74271e474c191b6f5.zip
postgresql: add version output to pg_config
Some external packages call pg_config to determine the installed PostgreSQL version. Add this output to Buildroots own pg_config, so these packages correctly compile. Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/postgresql/postgresql.mk')
-rw-r--r--package/postgresql/postgresql.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk
index c6b689a146..94b3e60e59 100644
--- a/package/postgresql/postgresql.mk
+++ b/package/postgresql/postgresql.mk
@@ -84,6 +84,7 @@ POSTGRESQL_POST_INSTALL_TARGET_HOOKS += POSTGRESQL_INSTALL_TARGET_FIXUP
define POSTGRESQL_INSTALL_CUSTOM_PG_CONFIG
$(INSTALL) -m 0755 -D package/postgresql/pg_config \
$(STAGING_DIR)/usr/bin/pg_config
+ $(SED) "s|@POSTGRESQL_VERSION@|$(POSTGRESQL_VERSION)|g" $(STAGING_DIR)/usr/bin/pg_config
endef
POSTGRESQL_POST_INSTALL_STAGING_HOOKS += POSTGRESQL_INSTALL_CUSTOM_PG_CONFIG
OpenPOWER on IntegriCloud