package/postgis: disable protobuf support
PATCH 1/3 package/postgis: disable protobuf support
- needs protobuf-c (not protobuf)
- protobuf-c configure tests are not cross-compile capable, even with
ifeq ($(BR2_PACKAGE_PROTOBUF_C),y) POSTGIS_DEPENDENCIES += protobuf-c POSTGIS_CONF_OPTS += --with-protobuf POSTGIS_CONF_ENV += \ ac_cv_lib_protobuf_c_protobuf_c_message_init=yes \ ac_cv_lib_protobuf_c_protobuf_c_version=yes else POSTGIS_CONF_OPTS += --without-protobuf endif
configure aborts with:
checking for PROTOBUFC... yes
checking protobuf-c/protobuf-c.h usability... yes
checking protobuf-c/protobuf-c.h presence... yes
checking for protobuf-c/protobuf-c.h... yes
checking for protobuf_c_message_init in -lprotobuf-c... (cached) yes checking for protobuf_c_version in -lprotobuf-c... (cached) yes checking protobuf-c version... configure: error: in `.../build/postgis-3.1.1':
configure: error: cannot run test program while cross compiling
Fixes:
- http://autobuild.buildroot.net/results/8b95086b5e0876d0a4e41330446e767e4abd3729
checking for PROTOBUFC... no
libprotobuf-c not found in pkg-config
checking protobuf-c/protobuf-c.h usability... no
checking protobuf-c/protobuf-c.h presence... no
checking for protobuf-c/protobuf-c.h... no
configure: error: unable to find protobuf-c/protobuf-c.h using CPPFLAGS. You can disable MVT and Geobuf support using --without-protobuf
--- package/postgis/postgis.mk | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
package/postgis/postgis.mk +2 -8
@@ -18,7 +18,8 @@ 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 \ - --with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config + --with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config \ + --without-protobuf ifeq ($(BR2_PACKAGE_LIBGDAL),y) POSTGIS_DEPENDENCIES += libgdal
@@ -27,11 +28,4 @@ else POSTGIS_CONF_OPTS += --without-raster endif -ifeq ($(BR2_PACKAGE_PROTOBUF),y) -POSTGIS_DEPENDENCIES += protobuf -POSTGIS_CONF_OPTS += --with-protobuf -else -POSTGIS_CONF_OPTS += --without-protobuf -endif - $(eval $(autotools-package))
Signature · 1 line
2.31.1
PATCH 2/3 package/postgis: add optional json-c dependency
--- package/postgis/postgis.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/postgis/postgis.mk +7 -0
@@ -28,4 +28,11 @@ else POSTGIS_CONF_OPTS += --without-raster endif +ifeq ($(BR2_PACKAGE_JSON_C),y) +POSTGIS_DEPENDENCIES += json-c +POSTGIS_CONF_OPTS += --with-json +else +POSTGIS_CONF_OPTS += --without-json +endif + $(eval $(autotools-package))
Signature · 1 line
2.31.1
PATCH 2/3 package/postgis: add optional json-c dependency
14.04.2021 23:10, Peter Seiderer ?????:
Quoted 22 lines
Signed-off-by Peter Seiderer <[email protected]>--- package/postgis/postgis.mk | 7 +++++++ 1 file changed, 7 insertions(+)package/postgis/postgis.mk +7
-0@@ -28,4 +28,11 @@ else POSTGIS_CONF_OPTS += --without-raster endif +ifeq ($(BR2_PACKAGE_JSON_C),y) +POSTGIS_DEPENDENCIES += json-c +POSTGIS_CONF_OPTS += --with-json +else +POSTGIS_CONF_OPTS += --without-json +endif + $(eval $(autotools-package))
PATCH 3/3 package/postgis: add optional pcre dependency
In reply to Peter Seiderer--- package/postgis/postgis.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/postgis/postgis.mk +4 -0
@@ -35,4 +35,8 @@ else POSTGIS_CONF_OPTS += --without-json endif +ifeq ($(BR2_PACKAGE_PCRE),y) +POSTGIS_DEPENDENCIES += pcre +endif + $(eval $(autotools-package))
Signature · 1 line
2.31.1
PATCH 3/3 package/postgis: add optional pcre dependency
14.04.2021 23:10, Peter Seiderer ?????:
Quoted 19 lines
Signed-off-by Peter Seiderer <[email protected]>--- package/postgis/postgis.mk | 4 ++++ 1 file changed, 4 insertions(+)package/postgis/postgis.mk +4
-0@@ -35,4 +35,8 @@ else POSTGIS_CONF_OPTS += --without-json endif +ifeq ($(BR2_PACKAGE_PCRE),y) +POSTGIS_DEPENDENCIES += pcre +endif + $(eval $(autotools-package))
PATCH 1/3 package/postgis: disable protobuf support
In reply to Peter Seiderer14.04.2021 23:10, Peter Seiderer ?????:
Quoted 67 lines
- needs protobuf-c (not protobuf)
- protobuf-c configure tests are not cross-compile capable, even withifeq ($(BR2_PACKAGE_PROTOBUF_C),y) POSTGIS_DEPENDENCIES += protobuf-c POSTGIS_CONF_OPTS += --with-protobuf POSTGIS_CONF_ENV += \ ac_cv_lib_protobuf_c_protobuf_c_message_init=yes \ ac_cv_lib_protobuf_c_protobuf_c_version=yes else POSTGIS_CONF_OPTS += --without-protobuf endifconfigure aborts with:
checking for PROTOBUFC... yes
checkingprotobuf-c/protobuf-c.husability... yes
checkingprotobuf-c/protobuf-c.hpresence... yes
checking forprotobuf-c/protobuf-c.h... yes
checking forprotobuf_c_message_initin -lprotobuf-c... (cached) yes checking forprotobuf_c_versionin -lprotobuf-c... (cached) yes checking protobuf-c version... configure: error: in `.../build/postgis-3.1.1':
configure: error: cannot run test program while cross compilingFixes:
- http://autobuild.buildroot.net/results/8b95086b5e0876d0a4e41330446e767e4abd3729
checking for PROTOBUFC... no
libprotobuf-c not found in pkg-config
checkingprotobuf-c/protobuf-c.husability... no
checkingprotobuf-c/protobuf-c.hpresence... no
checking forprotobuf-c/protobuf-c.h... no
configure: error: unable to findprotobuf-c/protobuf-c.husing CPPFLAGS. You can disable MVT and Geobuf support using --without-protobufSigned-off-by Peter Seiderer <[email protected]>--- package/postgis/postgis.mk | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)package/postgis/postgis.mk +2
-8@@ -18,7 +18,8 @@ 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 \ - --with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config + --with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config \ + --without-protobuf ifeq ($(BR2_PACKAGE_LIBGDAL),y) POSTGIS_DEPENDENCIES += libgdal@@ -27,11 +28,4 @@ else POSTGIS_CONF_OPTS += --without-raster endif -ifeq ($(BR2_PACKAGE_PROTOBUF),y) -POSTGIS_DEPENDENCIES += protobuf -POSTGIS_CONF_OPTS += --with-protobuf -else -POSTGIS_CONF_OPTS += --without-protobuf -endif - $(eval $(autotools-package))
PATCH 1/3 package/postgis: disable protobuf support
In reply to Peter SeidererQuoted 2 lines · Peter Seiderer
- needs protobuf-c (not protobuf)
- protobuf-c configure tests are not cross-compile capable, even with
It's a pity to disable it rather than fix it, but I guess it should be fixed by
someone who cares.
Series applied to master, thanks.
Regards,
Arnout
Quoted 65 lines
ifeq ($(BR2_PACKAGE_PROTOBUF_C),y) POSTGIS_DEPENDENCIES += protobuf-c POSTGIS_CONF_OPTS += --with-protobuf POSTGIS_CONF_ENV += \ ac_cv_lib_protobuf_c_protobuf_c_message_init=yes \ ac_cv_lib_protobuf_c_protobuf_c_version=yes else POSTGIS_CONF_OPTS += --without-protobuf endifconfigure aborts with:
checking for PROTOBUFC... yes
checkingprotobuf-c/protobuf-c.husability... yes
checkingprotobuf-c/protobuf-c.hpresence... yes
checking forprotobuf-c/protobuf-c.h... yes
checking forprotobuf_c_message_initin -lprotobuf-c... (cached) yes checking forprotobuf_c_versionin -lprotobuf-c... (cached) yes checking protobuf-c version... configure: error: in `.../build/postgis-3.1.1':
configure: error: cannot run test program while cross compilingFixes:
- http://autobuild.buildroot.net/results/8b95086b5e0876d0a4e41330446e767e4abd3729
checking for PROTOBUFC... no
libprotobuf-c not found in pkg-config
checkingprotobuf-c/protobuf-c.husability... no
checkingprotobuf-c/protobuf-c.hpresence... no
checking forprotobuf-c/protobuf-c.h... no
configure: error: unable to findprotobuf-c/protobuf-c.husing CPPFLAGS. You can disable MVT and Geobuf support using --without-protobufSigned-off-by Peter Seiderer <[email protected]>--- package/postgis/postgis.mk | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)package/postgis/postgis.mk +2
-8@@ -18,7 +18,8 @@ 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 \ - --with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config + --with-xml2config=$(STAGING_DIR)/usr/bin/xml2-config \ + --without-protobuf ifeq ($(BR2_PACKAGE_LIBGDAL),y) POSTGIS_DEPENDENCIES += libgdal@@ -27,11 +28,4 @@ else POSTGIS_CONF_OPTS += --without-raster endif -ifeq ($(BR2_PACKAGE_PROTOBUF),y) -POSTGIS_DEPENDENCIES += protobuf -POSTGIS_CONF_OPTS += --with-protobuf -else -POSTGIS_CONF_OPTS += --without-protobuf -endif - $(eval $(autotools-package))