[Buildroot] [PATCH 1/1] postgresql: remove devfiles from target

Thomas De Schampheleire patrickdepinguin at gmail.com
Sun Aug 10 07:01:38 UTC 2014


Floris Bos <bos at je-eigen-domein.nl> schreef:
>Signed-off-by: Floris Bos <bos at je-eigen-domein.nl>
>---
> package/postgresql/postgresql.mk | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk
>index 0fecbc7..6d71b9c 100644
>--- a/package/postgresql/postgresql.mk
>+++ b/package/postgresql/postgresql.mk
>@@ -51,6 +51,8 @@ endef
> 
> define POSTGRESQL_INSTALL_TARGET_FIXUP
> 	$(INSTALL) -dm 0700 $(TARGET_DIR)/var/lib/pgsql
>+	rm -f $(TARGET_DIR)/usr/bin/pg_config
>+	rm -rf $(TARGET_DIR)/usr/lib/postgresql/pgxs
> endef

Not entirely sure here, but isn't the better approach for pg_config to add it to POSTGRESQL_CONFIG_SCRIPTS? This will ensure the file is fixed up for staging usr, and removed from target automatically.





More information about the buildroot mailing list