Skip to content

Build the pinned MEOS with the CBUFFER, NPOINT, POSE and RGEO modules#145

Open
estebanzimanyi wants to merge 3 commits into
fix/bump-meos-pinfrom
feat/meos-extended-type-modules
Open

Build the pinned MEOS with the CBUFFER, NPOINT, POSE and RGEO modules#145
estebanzimanyi wants to merge 3 commits into
fix/bump-meos-pinfrom
feat/meos-extended-type-modules

Conversation

@estebanzimanyi
Copy link
Copy Markdown
Member

The MobilityDuck extended temporal type ports (tcbuffer, tnpoint, tpose, trgeometry) cannot link until the vcpkg-built MEOS exposes those modules. MEOS builds them opt-in and RGEO is a dependent option that requires POSE, so all four are enabled together in the vcpkg portfile OPTIONS, leaving each subsequent type port as pure extension code. Stacked on #134 because main's pinned MEOS predates the symbols these modules need and #134 already advances the pin; #134's pin-bump commit shows in the diff until it merges. The OPTIONS edit is independent of the REPO/REF/SHA512 pin lines that #142 and #143 rewrite, so it composes with whichever pin lands and needs only ordering, not textual reconciliation, against those PRs.

The MobilityDuck extended temporal type ports (tcbuffer, tnpoint, tpose,
trgeometry) cannot link until the vcpkg-built MEOS exposes those modules.
MEOS builds them opt-in; RGEO is a dependent option that requires POSE.
Enable all four in one place so each subsequent type port is pure
extension code. Stacked on #134: main's pinned MEOS predates the symbols
these modules need, and #134 already advances the pin. This OPTIONS edit
is independent of the pin (REPO/REF/SHA512) lines that #142 and #143
rewrite, so it composes with either pin.
@estebanzimanyi
Copy link
Copy Markdown
Member Author

Reviewer's quickstart — ~2 minutes

What this PR does in one sentence: flips the MEOS build flags in vcpkg_ports/meos/portfile.cmake to compile the CBUFFER, NPOINT, POSE, and RGEO extension-type modules into the pinned MEOS.

Files (1): vcpkg_ports/meos/portfile.cmake — single-file change adding -DMEOS_CBUFFER=ON -DMEOS_NPOINT=ON -DMEOS_POSE=ON -DMEOS_RGEO=ON (or equivalent) to the vcpkg CMake invocation.

Unlocks: the feat/*_port_core stack (#148/#150/#151/#153/#155/#156) — each of those PRs registers DuckDB UDFs that need the corresponding MEOS-side modules linked.

Cross-link: stacked on #134 (the base pin bump). Once #134 lands, this rebases on main and the *_port_core PRs can adopt this MEOS.

Why it's safe to merge: pure build-flag change; doesn't alter source code.

estebanzimanyi and others added 2 commits May 21, 2026 17:36
`meosType` (lower-case) is the **pre-consolidation** MEOS type name;
`MeosType` (upper-case) is the **post-consolidation** target that the
upstream rename sweep has not yet reached.  The current vcpkg pin
(`vcpkg_ports/meos/portfile.cmake` REF f11b7443ee98…) is still
pre-consolidation: `meos/include/temporal/meos_catalog.h` line 121
declares the typedef as `} meosType;` and every MEOS API uses the
lower-case spelling.  MobilityDuck's source code consistently uses
`meosType` to match — `grep -rn '\bMeosType\b' src/` finds the name
only on the alias line and its comment, nowhere else.

c8cad6d added `using meosType = MeosType;` as a forward-looking
bridge for the eventual consolidation bump.  That bridge points at
`MeosType`, which the current pin does NOT yet expose, so it
breaks every PR's Linux arm64 build with:

  /duckdb_build_dir/src/include/tydef.hpp:18:18:
    error: ‘MeosType’ does not name a type; did you mean ‘meosType’?

The fix is to drop the premature alias and replace the misleading
comment with one that documents the pre/post-consolidation distinction
and the resume path for the next pin bump — at that point a reviewer
can either restore the bridge (this time it'll be valid because
`MeosType` will exist) or sweep the MobilityDuck source from
`meosType` to `MeosType` in a single PR.

Unblocks every in-flight PR's Linux arm64 build: #126, #130, #149,
#158, #159, #160, plus the entire `feat/*_port_core` extended-type
stack (#148/#150/#151/#153/#155/#156).
The stage_icu helper mapped only the Linux uname values, so on the
macOS arm64 test runner uname -m returned "arm64" and the icu
extension was copied to .duckdb/extensions/v1.4.4/arm64 instead of
.../osx_arm64, where DuckDB's autoload looks. The hub fallback is not
reliably resolvable on that runner, so the osx_arm64 Test step failed
to load the extension. Map the OS and architecture to the DuckDB
platform string (linux_amd64, linux_arm64, osx_amd64, osx_arm64) so
the locally built icu is staged at the path autoload expects on every
tested platform; the Linux mapping is unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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