[postgis-tickets] [SCM] PostGIS Buildbots; Jenkins jobs and instructions for setting up winnie and debbie bots. branch master updated. c6a379605ebf224b21140ce2aa07d57eca6e71e5

git at osgeo.org git at osgeo.org
Sun Nov 13 13:56:38 PST 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS Buildbots; Jenkins jobs and instructions for setting up winnie and debbie bots.".

The branch, master has been updated
       via  c6a379605ebf224b21140ce2aa07d57eca6e71e5 (commit)
      from  8dd6e0996d1ce1b7b42fb4a31d67297157020569 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c6a379605ebf224b21140ce2aa07d57eca6e71e5
Author: Regina Obe <lr at pcorp.us>
Date:   Sun Nov 13 16:56:32 2022 -0500

    Try to build h3 lib first so doesn't try to use VC++ for building

diff --git a/windows/mingw64/scripts/build_h3-pg.sh b/windows/mingw64/scripts/build_h3-pg.sh
index 7d8250e..8dd6c7f 100644
--- a/windows/mingw64/scripts/build_h3-pg.sh
+++ b/windows/mingw64/scripts/build_h3-pg.sh
@@ -16,7 +16,7 @@ export PGUSER=postgres
 export SOURCES=/sources
 cd /projects
 cd h3-pg/h3-pg/
-git clean -fdx
+#git clean -fdx
 export GIT_REVISION=`git status | head -1`
 export RELDIR=/projects/h3-pg/builds
 export RELVERDIR=h3-pg_pg${PG_VER}-binaries-${H3PG_VER}w${OS_BUILD}
@@ -24,6 +24,29 @@ export outdir="${RELDIR}/${RELVERDIR}"
 export package="${RELDIR}/${RELVERDIR}.zip"
 export INSTALL_DIR=${RELDIR}/${RELVERDIR}
 export verfile="${INSTALL_DIR}/h3-pg_version.txt"
+# h3 core library version to clone and statically link
+export LIBH3_VERSION = v4.0.1
+# directory that h3 core repository is cloned into
+export LIBH3_SOURCE = libh3-${LIBH3_VERSION}
+#build directory
+export LIBH3_BUILD = ${LIBH3_SOURCE}/build
+git clone --branch ${LIBH3_VERSION} --depth 1 https://github.com/uber/h3 ${LIBH3_SOURCE}
+LIBH3_BUILD = $(LIBH3_SOURCE)/build
+#build h3 library
+mkdir -p ${LIBH3_BUILD}
+cd ${LIBH3_BUILD} && cmake \
+		-G "Unix Makefiles" \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden -flto -fwrapv $(CFLAGS_ADD)" \
+		-DBUILD_TESTING=OFF \
+		-DENABLE_COVERAGE=OFF \
+		-DENABLE_DOCS=OFF \
+		-DENABLE_FORMAT=OFF \
+		-DENABLE_LINTING=OFF \
+		..
+cmake -G "Unix Makefiles" --build ${LIBH3_BUILD} --target h3
+cmake -G "Unix Makefiles" --build ${LIBH3_BUILD} --target binding-functions
+cd /project/h3-pg/h3-pg/
 make
 make install
 rm -rf ${INSTALL_DIR}

-----------------------------------------------------------------------

Summary of changes:
 windows/mingw64/scripts/build_h3-pg.sh | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS Buildbots; Jenkins jobs and instructions for setting up winnie and debbie bots.


More information about the postgis-tickets mailing list