Skip to content

Point the setup provisioning at MobilityDB's pgtypes headers#69

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/setup-pgtypes-headers
Jul 22, 2026
Merged

Point the setup provisioning at MobilityDB's pgtypes headers#69
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/setup-pgtypes-headers

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

setup.py provisions the MobilityDB headers for local catalog generation by sparse-checking out a top-level postgres/ directory and symlinking meos/postgres to it. MobilityDB vendors the PostgreSQL 18 base headers in its pgtypes/ library instead — there is no top-level postgres/ — so against current master the sparse-checkout matches nothing and the symlink step aborts:

Error: expected postgres headers at .../_mobilitydb/postgres

This sparse-checks out pgtypes/ and targets the meos/postgres symlink at it. The pgtypes/ tree carries postgres.h plus the same c.h / access / utils layout, so #include <postgres.h> and #include <utils/...> resolve exactly as before and python setup.py succeeds against current MobilityDB master.

The CI catalog build is unaffected — it provisions via provision-meos (build-libmeos), not setup.py. This only restores the lightweight local-dev provisioning path documented in GENERATION.md.

MobilityDB vendors the PostgreSQL 18 base headers in its `pgtypes/` library;
there is no top-level `postgres/` directory. setup.py sparse-checked out
`postgres` and symlinked `meos/postgres` to `_mobilitydb/postgres`, so against
current master the sparse-checkout matches nothing and the symlink step aborts
with `expected postgres headers at _mobilitydb/postgres`.

Sparse-check out `pgtypes` and target the `meos/postgres` symlink at it. The
`pgtypes/` tree carries `postgres.h` plus the same `c.h` / `access` / `utils`
layout, so `#include <postgres.h>` and `#include <utils/...>` resolve as before
and local catalog generation works against current MobilityDB master.
@estebanzimanyi
estebanzimanyi merged commit ec4efc2 into MobilityDB:master Jul 22, 2026
1 check passed
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