All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1] package/postgis: fix configure in case of host installed libxml2
@ 2021-02-07 10:50 Peter Seiderer
  2021-02-08  4:33 ` Maxim Kochetkov
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2021-02-07 10:50 UTC (permalink / raw)
  To: buildroot

Explicit set cross-compile xml2-config path to fix configure failure
in case of host installed libxml2 package, otherwise postgis configure
finds the wrong/host xml2-config first.

Fixes:

  checking for xml2-config... /usr/bin/xml2-config
  checking libxml/tree.h usability... no
  checking libxml/tree.h presence... no
  checking for libxml/tree.h... no
  configure: error: could not find headers include related to libxml2

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Notes:
  - depends on
    http://patchwork.ozlabs.org/project/buildroot/patch/20210126133908.680621-1-fido_max at inbox.ru/
---
 package/postgis/postgis.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/postgis/postgis.mk b/package/postgis/postgis.mk
index 85102d323a..b2e51b15eb 100644
--- a/package/postgis/postgis.mk
+++ b/package/postgis/postgis.mk
@@ -14,7 +14,10 @@ POSTGIS_AUTORECONF = YES
 
 POSTGIS_DEPENDENCIES = postgresql libgeos proj libxml2
 
-POSTGIS_CONF_OPTS += --with-pgconfig=$(STAGING_DIR)/usr/bin/pg_config --with-geosconfig=$(STAGING_DIR)/usr/bin/geos-config
+POSTGIS_CONF_OPTS += \
+	--with-pgconfig=$(STAGING_DIR)/usr/bin/pg_config \
+	--with-geosconfig=$(STAGING_DIR)/usr/bin/geos-config \
+	--with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config
 
 ifeq ($(BR2_PACKAGE_LIBGDAL),y)
 POSTGIS_DEPENDENCIES += libgdal
-- 
2.30.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v1] package/postgis: fix configure in case of host installed libxml2
  2021-02-07 10:50 [Buildroot] [PATCH v1] package/postgis: fix configure in case of host installed libxml2 Peter Seiderer
@ 2021-02-08  4:33 ` Maxim Kochetkov
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Kochetkov @ 2021-02-08  4:33 UTC (permalink / raw)
  To: buildroot

Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru>

07.02.2021 13:50, Peter Seiderer ?????:
> Explicit set cross-compile xml2-config path to fix configure failure
> in case of host installed libxml2 package, otherwise postgis configure
> finds the wrong/host xml2-config first.
> 
> Fixes:
> 
>    checking for xml2-config... /usr/bin/xml2-config
>    checking libxml/tree.h usability... no
>    checking libxml/tree.h presence... no
>    checking for libxml/tree.h... no
>    configure: error: could not find headers include related to libxml2
> 
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> Notes:
>    - depends on
>      http://patchwork.ozlabs.org/project/buildroot/patch/20210126133908.680621-1-fido_max at inbox.ru/
> ---
>   package/postgis/postgis.mk | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/package/postgis/postgis.mk b/package/postgis/postgis.mk
> index 85102d323a..b2e51b15eb 100644
> --- a/package/postgis/postgis.mk
> +++ b/package/postgis/postgis.mk
> @@ -14,7 +14,10 @@ POSTGIS_AUTORECONF = YES
>   
>   POSTGIS_DEPENDENCIES = postgresql libgeos proj libxml2
>   
> -POSTGIS_CONF_OPTS += --with-pgconfig=$(STAGING_DIR)/usr/bin/pg_config --with-geosconfig=$(STAGING_DIR)/usr/bin/geos-config
> +POSTGIS_CONF_OPTS += \
> +	--with-pgconfig=$(STAGING_DIR)/usr/bin/pg_config \
> +	--with-geosconfig=$(STAGING_DIR)/usr/bin/geos-config \
> +	--with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config
>   
>   ifeq ($(BR2_PACKAGE_LIBGDAL),y)
>   POSTGIS_DEPENDENCIES += libgdal
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-08  4:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07 10:50 [Buildroot] [PATCH v1] package/postgis: fix configure in case of host installed libxml2 Peter Seiderer
2021-02-08  4:33 ` Maxim Kochetkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.