Skip to content

v0.4.0: static Arrow TLS fix + self-contained gdalraster - #39

Merged
jimbrig merged 17 commits into
developfrom
fix/static-arrow-tls
Aug 9, 2026
Merged

jimbrig merged 17 commits into
developfrom
fix/static-arrow-tls

Conversation

@jimbrig

@jimbrig jimbrig commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fold static Apache Arrow/Parquet into libgdal (no shared libarrow.dll) to fix MinGW emutls first-Parquet-open crashes
  • Ship self-contained vendored gdalraster via gdal_setup() / gdal_build_gdalraster() (no activation hooks)
  • Gate publish on LoadLibrary smoke, banned-DLL checks, gdal_verify(), and a TLS-noisy first Parquet open

Test plan

  • Build GDAL workflow succeeds for v3.13.2 with force_rebuild_gdal=true
  • Bundle contains no libarrow* / libparquet* / libthrift* DLLs
  • TLS gate: httpuv + later + gifski loaded, then first Parquet open succeeds
  • gdal_verify(): Algorithm API, Arrow/Parquet/HDF5/netCDF, CRS, GeoPackage validator
  • Publish gdal-v3.13.2 only after gates pass
  • E2E / edge-case workflows green against the new bundle

jimbrig and others added 16 commits August 8, 2026 17:48
Remove shared Arrow from the bundle import graph and gate the candidate runtime against the TLS-heavy first-Parquet-open regression before publication.

Co-authored-by: Cursor <cursoragent@cursor.com>
Arrow's bundled bzip2 external project requires make even though the primary Arrow build uses Ninja.

Co-authored-by: Cursor <cursoragent@cursor.com>
Avoid Arrow's MinGW bundled-zlib archive naming bug while keeping zlib statically linked into the GDAL runtime.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use a POSIX path for shell verification and pass the same static Arrow prefix consistently into GDAL CMake.

Co-authored-by: Cursor <cursoragent@cursor.com>
Backport a focused cycle guard so GDAL 3.13.2 can flatten Arrow 25's static abseil target graph without exhausting CMake recursion.

Co-authored-by: Cursor <cursoragent@cursor.com>
Set each Arrow-family CMake package directory explicitly so GDAL cannot fall back to MSYS2's shared dependency graph.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use MSYS2 static zlib/lz4/zstd for Arrow so bundled_dependencies no longer duplicates symbols GDAL already links, and add ws2_32 for static Thrift.

Co-authored-by: Cursor <cursoragent@cursor.com>
Vendor the GDAL runtime into staged gdalraster builds so fresh sessions no longer depend on activation hooks or mutable process state. Add provenance-aware lifecycle APIs, verification, documentation, and dirty-machine CI coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
Update the Parquet TLS regression path for vendored gdalraster, default the build to GDAL 3.13.2, and stamp MANIFEST.dcf into published bundles.

Co-authored-by: Cursor <cursoragent@cursor.com>
Arrow now consumes the same shared lz4/zstd import libs as GDAL, and Winsock is appended after static Thrift so htons/ntohl resolve.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pin LZ4/zstd to MSYS2 .dll.a paths and fail the Arrow install if CMake targets still reference static .a archives that collide with GDAL.

Co-authored-by: Cursor <cursoragent@cursor.com>
GDAL was linking both shared and Alt-static codec archives; moving the static archives aside removes the multiple-definition clash with Arrow.

Co-authored-by: Cursor <cursoragent@cursor.com>
GDAL links both shared and Alt-static codec archives; scoped --allow-multiple-definition unblocks the static-Arrow fold without moving system libs.

Co-authored-by: Cursor <cursoragent@cursor.com>
gdalraster rejects bare Integer field-type descriptors when creating datasets used by gdal_verify and e2e.

Co-authored-by: Cursor <cursoragent@cursor.com>
Avoid ogr_ds_create(format='Parquet'), which aborts with std::logic_error on the static-Arrow GDAL 3.13.2 stack.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use a bundled smoke.parquet for first-open verification instead of creating Parquet datasets through unstable create/translate helpers.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jimbrig

jimbrig commented Aug 9, 2026

Copy link
Copy Markdown
Owner Author

Progress update

Document the static-Arrow TLS fix and add a non-interactive local release verification script.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jimbrig
jimbrig marked this pull request as ready for review August 9, 2026 21:23
@jimbrig
jimbrig merged commit 1b1931a into develop Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant