apache / apache/iceberg-cpp

CMake and Meson build definitions are Out Of Sync

Ouverte
#894 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement question
Langage dominant
C++
Étoiles
221
Forks
124
Merge moyen
1 j 16 h
PR mergées (30 j)
21

Description

## Description

The CMake and Meson build definitions are maintained separately and have drifted. On current `main` (`e0399c6945326dd5281da07de8ed14a61c9f2cac`), equivalent configurations do not install the same public headers or run the same core tests.

Examples:

- CMake installs public headers by globbing each directory, while Meson lists them manually. As a result:
- CMake installs `iceberg/puffin_dv_io.h` and `iceberg/catalog/rest/auth/token_refresh_scheduler.h`, but Meson does not.
- Meson installs `iceberg/catalog/catalog_util.h`, `iceberg/catalog/session_catalog.h`, and `iceberg/catalog/session_context.h`, but CMake does not install headers from `src/iceberg/catalog/`.
- CMake includes `snapshot_summary_builder_test.cc` in `table_test`, but Meson does not include that test source, so the Meson CI path does not exercise it.
- Vendored/fallback dependency versions differ between the two build systems:

| Dependency | CMake | Meson |
|---|---:|---:|
| CRoaring | 4.4.3 | 4.3.11 |
| nlohmann/json | 3.11.3 | 3.12.0 |
| GoogleTest | 1.15.2 | 1.17.0 |

Other shared dependencies, such as nanoarrow 0.9.0, utf8proc 2.10.0, spdlog 1.15.3, cpr 1.14.1, and Google Benchmark 1.8.4, are currently aligned but can drift because their pins are also declared independently.
- Dependency resolution policy also differs: CMake requires system Zlib and Curl, while Meson can fall back to pinned wraps (Zlib 1.3.1 and Curl 8.10.1). Any intentional difference here should be documented and tested explicitly.

The Meson bundle gap is already tracked by #256 and is outside the scope of this issue. Other intentional feature differences should likewise remain explicit rather than appearing as accidental drift.

---

**This to track current status and initiated a discussion on how we can maintain and sync the build tools in the long term.**

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Comparez les définitions de build de CMake et Meson dans le commit main e0399c6, en commençant par l’installation des en-têtes publics, les sources de table_test et les versions épinglées des dépendances indiquées. Consultez snapshot_summary_builder_test.cc et l’issue #256 pour connaître le périmètre indiqué. Le travail est considéré comme terminé lorsque les différences accidentelles sont alignées, tandis que les différences intentionnelles de dépendances et de fonctionnalités sont documentées et testées.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
cmake, cpp
Domaine
build-system, tooling
Type d'issue
Refactorisation
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.