Skip to content

Fix licence info about boost - #1987

Merged
leborchuk merged 4 commits into
apache:REL_2_STABLEfrom
leborchuk:FixLICENCE
Sep 14, 2026
Merged

leborchuk merged 4 commits into
apache:REL_2_STABLEfrom
leborchuk:FixLICENCE

Conversation

@leborchuk

Copy link
Copy Markdown
Contributor

LICENSE (root) — added the missing coverage:

  1. Boost Software License 1.0 section under the tabulate/MIT area — names the three bundled *-lite components that are not MIT, with exact paths:

    • optional_lite.hpp (optional-lite, Martin Moene)
    • variant_lite.hpp (variant-lite, Martin Moene)
    • string_view_lite.hpp (string-view-lite, Martin Moene) — this one has no in-tree LICENSE.* file, so it was the least visible of the three
    • single_include/tabulate/tabulate.hpp — the amalgamated header, which embeds copies of all three plus termcolor

    The existing tabulate MIT entry now reads "(excluding the bundled third-party components listed below)" so the MIT-only claim is no longer overbroad.

  2. termcolor (BSD-3-Clause) added to the BSD 3 Clause section — also bundled by tabulate, also not MIT, and also not previously identified.

  3. Ryu (Boost-1.0) added under the PostgreSQL section — src/common/{d2s.c,d2s_full_table.h,d2s_intrinsics.h,f2s.c,ryu_common.h} and src/include/common/shortest_dec.h. Upstream Ryu is Apache-2.0-or-Boost dual-licensed; PostgreSQL explicitly took it under Boost, and this was a second undeclared Boost-1.0 component in the archive.

  4. Fixed dependencies/yyjson → dependency/yyjson (the declared path didn't exist).

New files (the root LICENSE now points into licenses/ for every entry, per existing convention):

  • licenses/LICENSE-boost.txt — canonical BSL-1.0 text
  • licenses/LICENSE-termcolor.txt — termcolor BSD-3 text

pom.xml — excluded those two new verbatim license texts from the Apache RAT scan, mirroring the existing tabulate/LICENSE.termcolor exclusion (that one is already excluded, which tells us RAT doesn't match that BSD variant).

LICENSE (root) — added the missing coverage:

1. Boost Software License 1.0 section under the tabulate/MIT area — names the three bundled *-lite components that are not MIT, with exact paths:
   - optional_lite.hpp (optional-lite, Martin Moene)
   - variant_lite.hpp (variant-lite, Martin Moene)
   - string_view_lite.hpp (string-view-lite, Martin Moene) — this one has no in-tree LICENSE.* file, so it was the least visible of the three
   - single_include/tabulate/tabulate.hpp — the amalgamated header, which embeds copies of all three plus termcolor

   The existing tabulate MIT entry now reads "(excluding the bundled third-party components listed below)" so the MIT-only claim is no longer overbroad.
2. termcolor (BSD-3-Clause) added to the BSD 3 Clause section — also bundled by tabulate, also not MIT, and also not previously identified.
3. Ryu (Boost-1.0) added under the PostgreSQL section — src/common/{d2s.c,d2s_full_table.h,d2s_intrinsics.h,f2s.c,ryu_common.h} and src/include/common/shortest_dec.h. Upstream Ryu is Apache-2.0-or-Boost dual-licensed; PostgreSQL explicitly took it under Boost, and this was a second undeclared Boost-1.0 component in the archive.
4. Fixed dependencies/yyjson → dependency/yyjson (the declared path didn't exist).

New files (the root LICENSE now points into licenses/ for every entry, per existing convention):
- licenses/LICENSE-boost.txt — canonical BSL-1.0 text
- licenses/LICENSE-termcolor.txt — termcolor BSD-3 text

pom.xml — excluded those two new verbatim license texts from the Apache RAT scan, mirroring the existing tabulate/LICENSE.termcolor exclusion (that one is already excluded, which tells us RAT doesn't match that BSD variant).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved blocking issues were identified.

Pull request overview

Updates third-party license attribution for Boost, termcolor, Ryu, and yyjson, and adjusts Apache RAT exclusions.

Changes:

  • Adds Boost and termcolor license texts.
  • Documents bundled components and corrects the yyjson path.
  • Excludes the new license files from RAT scanning.
File summaries
File Reviewed changes
pom.xml Adds RAT exclusions for new license texts.
licenses/LICENSE-termcolor.txt Adds the termcolor BSD-3-Clause license text.
licenses/LICENSE-boost.txt Adds the Boost Software License 1.0 text.
LICENSE Expands third-party license attribution.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tuhaihe

tuhaihe commented Sep 11, 2026

Copy link
Copy Markdown
Member

I verified the claims against the pinned tabulate commit (3a58301) — Ryu file list, paths,
license texts and the RAT excludes all check out. Two things to fix:

1. The MIT carve-out is too broad for the amalgamated header

single_include/tabulate/tabulate.hpp is named under "the bundled third-party components listed
below", so it's now excluded from MIT entirely. But it's a composite file: lines 1–5624 are the
three *-lite libs (BSL-1.0), ~5625–6071 termcolor (BSD-3), and ~6072–9385 are tabulate's own MIT
code (SPDX-License-Identifier: MIT). That last ~3,300 lines is now covered by nothing.

Suggest making the carve-out apply to the embedded portions, not to whole files:

  contrib/pax_storage/src/cpp/contrib/tabulate
  (tabulate's own code only; the third-party code bundled and embedded
   within it is listed below under its own licenses)
  see licenses/LICENSE-tabulate.txt

2. utils/amalgamate/ is still undeclared

contrib/pax_storage/src/cpp/contrib/tabulate/utils/amalgamate/

LICENSE.md there is BSD-3-Clause, "Copyright (c) 2012, Erik Edlund" — same situation as termcolor:
not tabulate's MIT, ships with the submodule, not in the root LICENSE. Worth adding to the BSD 3
Clause section in the same pass.

(The two failing CI jobs are unrelated — no code changes here.)

Two gaps remained after the earlier commits in this PR.

The MIT entry for tabulate carved out "the bundled third-party
components listed below", and that list names
single_include/tabulate/tabulate.hpp.  But that file is a
three-license composite: lines 1-5624 are variant-lite,
optional-lite and string-view-lite (Boost-1.0), ~5625-6071 are
termcolor (BSD-3), and ~6072-9385 are tabulate's own MIT code.
Excluding the whole file left those last ~3300 lines covered by
nothing.  Reword the carve-out so it applies to the embedded
portions rather than to whole files.

tabulate also bundles amalgamate.py by Erik Edlund under
BSD-3-Clause, in utils/amalgamate/, the tool used to generate the
single header.  Like termcolor it is not covered by tabulate's own
MIT license and was not declared anywhere.  Add it to the BSD 3
Clause section and ship its text as licenses/LICENSE-amalgamate.txt.

That text uses the standard BSD-3 wording, so unlike
LICENSE-termcolor.txt it needs no Apache RAT exclusion.
@tuhaihe

tuhaihe commented Sep 14, 2026

Copy link
Copy Markdown
Member

Once this is merged, we can cherry-pick the commit to main.

@leborchuk
leborchuk merged commit 8a4121c into apache:REL_2_STABLE Sep 14, 2026
17 of 22 checks passed
tuhaihe added a commit to tuhaihe/cloudberrydb that referenced this pull request Sep 15, 2026
yyjson sits in a top-level dependency/ directory as a git submodule, and
it is the only thing in there.  It does not need to be in the source
tree at all:

  - Nothing outside contrib/pax_storage/src/cpp/manifest/manifest.c uses
    it.  Cloudberry core does not depend on yyjson, which answers the
    question raised on this PR about why it sat at the top level.
  - It is compiled only when USE_MANIFEST_API is ON and USE_PAX_CATALOG
    is OFF.  Both default the other way and nothing in the tree turns
    them on, so no build we ship compiles yyjson: pax.so and
    libpaxformat.so contain no yyjson symbols and manifest.c produces no
    object file.

Carrying it anyway is not free.  dependency/yyjson is 9.3 MB across 804
files, of which 3.0 MB and 201 files are generated doxygen output, and
pom.xml needs 249 RAT exclusions to cope with it, 200 of them for the
docs alone.  That doxygen output also bundles jQuery, jQuery UI, jQuery
UI Touch Punch, doxygen-awesome-css and Doxygen's own helper scripts,
none of which the root LICENSE accounts for.  Justin Mclean raised the
LICENSE gap during the 2.2.0-rc1 IPMC vote; fetching yyjson on demand
removes the components rather than documenting them.

CMake now fetches the dependency during configuration, as suggested by
Ed Espino on this PR.  This follows what gpMgmt/bin/Makefile already
does for psutil, PyYAML and PyGreSQL, which are downloaded at build time
for the same reason.  The version is a release tag rather than the
previous submodule pointer, which was 61c03f6 "Try fix github action",
not a release at all.

Ed's draft also tried a system yyjson through find_package first.  That
path is left out: it sets neither yyjson_SOURCE_DIR, which the include
path needs, nor a target named yyjson, which pax.cmake links, because an
installed yyjson exports yyjson::yyjson.  Since the previous behaviour
was always to build yyjson from source, always fetching keeps the change
behaviour-preserving, and a branch no image can exercise would only rot.

The LICENSE entry, licenses/LICENSE-yyjson.txt and all 249 RAT
exclusions go away with the directory.

Applying this to REL_2_STABLE takes one manual resolution: every hunk
lands cleanly except the LICENSE one, because apache#1987 already corrected
dependencies/yyjson to dependency/yyjson there.  Either spelling is being
deleted, so resolving it means dropping those two lines.

Verified on Rocky 9:

  - The default PAX build succeeds with no network access at all, which
    is the configuration every release build uses.
  - With USE_MANIFEST_API=ON USE_PAX_CATALOG=OFF, CMake fetches yyjson
    0.12.0, builds libyyjson.so.0.12.0, puts -I.../_deps/yyjson-src/src
    on the compile line that manifest.c uses and libyyjson.so.0.12.0 on
    the link line.
  - That configuration then fails in
    micro_partition_iterator_manifest.cc, which still uses the
    pre-PostgreSQL-16 rd_node field.  An unpatched tree with the
    submodule fails at the same two lines with the same error, so the
    breakage predates this change and confirms how long the manifest API
    path has gone unbuilt.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
tuhaihe added a commit that referenced this pull request Sep 15, 2026
* Add in LICENCE info about tabulate

LICENSE (root) — added the missing coverage:

1. Boost Software License 1.0 section under the tabulate/MIT area — names the three bundled *-lite components that are not MIT, with exact paths:
   - optional_lite.hpp (optional-lite, Martin Moene)
   - variant_lite.hpp (variant-lite, Martin Moene)
   - string_view_lite.hpp (string-view-lite, Martin Moene) — this one has no in-tree LICENSE.* file, so it was the least visible of the three
   - single_include/tabulate/tabulate.hpp — the amalgamated header, which embeds copies of all three plus termcolor

   The existing tabulate MIT entry now reads "(excluding the bundled third-party components listed below)" so the MIT-only claim is no longer overbroad.
2. termcolor (BSD-3-Clause) added to the BSD 3 Clause section — also bundled by tabulate, also not MIT, and also not previously identified.
3. Ryu (Boost-1.0) added under the PostgreSQL section — src/common/{d2s.c,d2s_full_table.h,d2s_intrinsics.h,f2s.c,ryu_common.h} and src/include/common/shortest_dec.h. Upstream Ryu is Apache-2.0-or-Boost dual-licensed; PostgreSQL explicitly took it under Boost, and this was a second undeclared Boost-1.0 component in the archive.
4. Fixed dependencies/yyjson → dependency/yyjson (the declared path didn't exist).

New files (the root LICENSE now points into licenses/ for every entry, per existing convention):
- licenses/LICENSE-boost.txt — canonical BSL-1.0 text
- licenses/LICENSE-termcolor.txt — termcolor BSD-3 text

pom.xml — excluded those two new verbatim license texts from the Apache RAT scan, mirroring the existing tabulate/LICENSE.termcolor exclusion (that one is already excluded, which tells us RAT doesn't match that BSD variant).

* Add boost license files

* Fix LICENSE coverage of bundled tabulate components

Two gaps remained after the earlier commits in this PR.

The MIT entry for tabulate carved out "the bundled third-party
components listed below", and that list names
single_include/tabulate/tabulate.hpp.  But that file is a
three-license composite: lines 1-5624 are variant-lite,
optional-lite and string-view-lite (Boost-1.0), ~5625-6071 are
termcolor (BSD-3), and ~6072-9385 are tabulate's own MIT code.
Excluding the whole file left those last ~3300 lines covered by
nothing.  Reword the carve-out so it applies to the embedded
portions rather than to whole files.

tabulate also bundles amalgamate.py by Erik Edlund under
BSD-3-Clause, in utils/amalgamate/, the tool used to generate the
single header.  Like termcolor it is not covered by tabulate's own
MIT license and was not declared anywhere.  Add it to the BSD 3
Clause section and ship its text as licenses/LICENSE-amalgamate.txt.

That text uses the standard BSD-3 wording, so unlike
LICENSE-termcolor.txt it needs no Apache RAT exclusion.

* Add LICENSE info about amalgamate

---------

Co-authored-by: Dianjin Wang <wangdianjin@gmail.com>
tuhaihe added a commit to tuhaihe/cloudberrydb that referenced this pull request Sep 15, 2026
yyjson sits in a top-level dependency/ directory as a git submodule, and
it is the only thing in there.  It does not need to be in the source
tree at all:

  - Nothing outside contrib/pax_storage/src/cpp/manifest/manifest.c uses
    it.  Cloudberry core does not depend on yyjson, which answers the
    question raised on this PR about why it sat at the top level.
  - It is compiled only when USE_MANIFEST_API is ON and USE_PAX_CATALOG
    is OFF.  Both default the other way and nothing in the tree turns
    them on, so no build we ship compiles yyjson: pax.so and
    libpaxformat.so contain no yyjson symbols and manifest.c produces no
    object file.

Carrying it anyway is not free.  dependency/yyjson is 9.3 MB across 804
files, of which 3.0 MB and 201 files are generated doxygen output, and
pom.xml needs 249 RAT exclusions to cope with it, 200 of them for the
docs alone.  That doxygen output also bundles jQuery, jQuery UI, jQuery
UI Touch Punch, doxygen-awesome-css and Doxygen's own helper scripts,
none of which the root LICENSE accounts for.  Justin Mclean raised the
LICENSE gap during the 2.2.0-rc1 IPMC vote; fetching yyjson on demand
removes the components rather than documenting them.

CMake now fetches the dependency during configuration, as suggested by
Ed Espino on this PR.  This follows what gpMgmt/bin/Makefile already
does for psutil, PyYAML and PyGreSQL, which are downloaded at build time
for the same reason.  The version is a release tag rather than the
previous submodule pointer, which was 61c03f6 "Try fix github action",
not a release at all.

Ed's draft also tried a system yyjson through find_package first.  That
path is left out: it sets neither yyjson_SOURCE_DIR, which the include
path needs, nor a target named yyjson, which pax.cmake links, because an
installed yyjson exports yyjson::yyjson.  Since the previous behaviour
was always to build yyjson from source, always fetching keeps the change
behaviour-preserving, and a branch no image can exercise would only rot.

The LICENSE entry, licenses/LICENSE-yyjson.txt and all 249 RAT
exclusions go away with the directory.  This is rebased on top of the
boost licence fix, apache#1995 on main and apache#1987 on REL_2_STABLE, which
corrected the entry from dependencies/yyjson to dependency/yyjson; the
whole entry is removed either way, and every hunk now applies cleanly to
REL_2_STABLE as well.

Verified on Rocky 9:

  - `mvn clean verify -Drat.consoleOutput=true` against a fresh checkout
    of main with this applied gives Unapproved: 0, unknown: 0,
    generated: 1, approved: 5650 licenses, BUILD SUCCESS, so dropping the
    249 exclusions leaves nothing unaccounted for.

  - The default PAX build succeeds with no network access at all, which
    is the configuration every release build uses.
  - With USE_MANIFEST_API=ON USE_PAX_CATALOG=OFF, CMake fetches yyjson
    0.12.0, builds libyyjson.so.0.12.0, puts -I.../_deps/yyjson-src/src
    on the compile line that manifest.c uses and libyyjson.so.0.12.0 on
    the link line.
  - That configuration then fails in
    micro_partition_iterator_manifest.cc, which still uses the
    pre-PostgreSQL-16 rd_node field.  An unpatched tree with the
    submodule fails at the same two lines with the same error, so the
    breakage predates this change and confirms how long the manifest API
    path has gone unbuilt.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
tuhaihe added a commit to tuhaihe/cloudberrydb that referenced this pull request Sep 18, 2026
yyjson sits in a top-level dependency/ directory as a git submodule, and
it is the only thing in there.  It does not need to be in the source
tree at all:

  - Nothing outside contrib/pax_storage/src/cpp/manifest/manifest.c uses
    it.  Cloudberry core does not depend on yyjson, which answers the
    question raised on this PR about why it sat at the top level.
  - It is compiled only when USE_MANIFEST_API is ON and USE_PAX_CATALOG
    is OFF.  Both default the other way and nothing in the tree turns
    them on, so no build we ship compiles yyjson: pax.so and
    libpaxformat.so contain no yyjson symbols and manifest.c produces no
    object file.

Carrying it anyway is not free.  dependency/yyjson is 9.3 MB across 804
files, of which 3.0 MB and 201 files are generated doxygen output, and
pom.xml needs 249 RAT exclusions to cope with it, 200 of them for the
docs alone.  That doxygen output also bundles jQuery, jQuery UI, jQuery
UI Touch Punch, doxygen-awesome-css and Doxygen's own helper scripts,
none of which the root LICENSE accounts for.  Justin Mclean raised the
LICENSE gap during the 2.2.0-rc1 IPMC vote; fetching yyjson on demand
removes the components rather than documenting them.

CMake now fetches the dependency during configuration, as suggested by
Ed Espino on this PR.  This follows what gpMgmt/bin/Makefile already
does for psutil, PyYAML and PyGreSQL, which are downloaded at build time
for the same reason.  The version is a release tag rather than the
previous submodule pointer, which was 61c03f6 "Try fix github action",
not a release at all.

Ed's draft also tried a system yyjson through find_package first.  That
path is left out: it sets neither yyjson_SOURCE_DIR, which the include
path needs, nor a target named yyjson, which pax.cmake links, because an
installed yyjson exports yyjson::yyjson.  Since the previous behaviour
was always to build yyjson from source, always fetching keeps the change
behaviour-preserving, and a branch no image can exercise would only rot.

The LICENSE entry, licenses/LICENSE-yyjson.txt and all 249 RAT
exclusions go away with the directory.  This is rebased on top of the
boost licence fix, apache#1995 on main and apache#1987 on REL_2_STABLE, which
corrected the entry from dependencies/yyjson to dependency/yyjson; the
whole entry is removed either way, and every hunk now applies cleanly to
REL_2_STABLE as well.

Verified on Rocky 9:

  - `mvn clean verify -Drat.consoleOutput=true` against a fresh checkout
    of main with this applied gives Unapproved: 0, unknown: 0,
    generated: 1, approved: 5650 licenses, BUILD SUCCESS, so dropping the
    249 exclusions leaves nothing unaccounted for.

  - The default PAX build succeeds with no network access at all, which
    is the configuration every release build uses.
  - With USE_MANIFEST_API=ON USE_PAX_CATALOG=OFF, CMake fetches yyjson
    0.12.0, builds libyyjson.so.0.12.0, puts -I.../_deps/yyjson-src/src
    on the compile line that manifest.c uses and libyyjson.so.0.12.0 on
    the link line.
  - That configuration then fails in
    micro_partition_iterator_manifest.cc, which still uses the
    pre-PostgreSQL-16 rd_node field.  An unpatched tree with the
    submodule fails at the same two lines with the same error, so the
    breakage predates this change and confirms how long the manifest API
    path has gone unbuilt.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
tuhaihe added a commit that referenced this pull request Sep 18, 2026
yyjson sits in a top-level dependency/ directory as a git submodule, and
it is the only thing in there.  It does not need to be in the source
tree at all:

  - Nothing outside contrib/pax_storage/src/cpp/manifest/manifest.c uses
    it.  Cloudberry core does not depend on yyjson, which answers the
    question raised on this PR about why it sat at the top level.
  - It is compiled only when USE_MANIFEST_API is ON and USE_PAX_CATALOG
    is OFF.  Both default the other way and nothing in the tree turns
    them on, so no build we ship compiles yyjson: pax.so and
    libpaxformat.so contain no yyjson symbols and manifest.c produces no
    object file.

Carrying it anyway is not free.  dependency/yyjson is 9.3 MB across 804
files, of which 3.0 MB and 201 files are generated doxygen output, and
pom.xml needs 249 RAT exclusions to cope with it, 200 of them for the
docs alone.  That doxygen output also bundles jQuery, jQuery UI, jQuery
UI Touch Punch, doxygen-awesome-css and Doxygen's own helper scripts,
none of which the root LICENSE accounts for.  Justin Mclean raised the
LICENSE gap during the 2.2.0-rc1 IPMC vote; fetching yyjson on demand
removes the components rather than documenting them.

CMake now fetches the dependency during configuration, as suggested by
Ed Espino on this PR.  This follows what gpMgmt/bin/Makefile already
does for psutil, PyYAML and PyGreSQL, which are downloaded at build time
for the same reason.  The version is a release tag rather than the
previous submodule pointer, which was 61c03f6 "Try fix github action",
not a release at all.

Ed's draft also tried a system yyjson through find_package first.  That
path is left out: it sets neither yyjson_SOURCE_DIR, which the include
path needs, nor a target named yyjson, which pax.cmake links, because an
installed yyjson exports yyjson::yyjson.  Since the previous behaviour
was always to build yyjson from source, always fetching keeps the change
behaviour-preserving, and a branch no image can exercise would only rot.

The LICENSE entry, licenses/LICENSE-yyjson.txt and all 249 RAT
exclusions go away with the directory.  This is rebased on top of the
boost licence fix, #1995 on main and #1987 on REL_2_STABLE, which
corrected the entry from dependencies/yyjson to dependency/yyjson; the
whole entry is removed either way, and every hunk now applies cleanly to
REL_2_STABLE as well.

Verified on Rocky 9:

  - `mvn clean verify -Drat.consoleOutput=true` against a fresh checkout
    of main with this applied gives Unapproved: 0, unknown: 0,
    generated: 1, approved: 5650 licenses, BUILD SUCCESS, so dropping the
    249 exclusions leaves nothing unaccounted for.

  - The default PAX build succeeds with no network access at all, which
    is the configuration every release build uses.
  - With USE_MANIFEST_API=ON USE_PAX_CATALOG=OFF, CMake fetches yyjson
    0.12.0, builds libyyjson.so.0.12.0, puts -I.../_deps/yyjson-src/src
    on the compile line that manifest.c uses and libyyjson.so.0.12.0 on
    the link line.
  - That configuration then fails in
    micro_partition_iterator_manifest.cc, which still uses the
    pre-PostgreSQL-16 rd_node field.  An unpatched tree with the
    submodule fails at the same two lines with the same error, so the
    breakage predates this change and confirms how long the manifest API
    path has gone unbuilt.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
leborchuk pushed a commit that referenced this pull request Oct 1, 2026
yyjson sits in a top-level dependency/ directory as a git submodule, and
it is the only thing in there.  It does not need to be in the source
tree at all:

  - Nothing outside contrib/pax_storage/src/cpp/manifest/manifest.c uses
    it.  Cloudberry core does not depend on yyjson, which answers the
    question raised on this PR about why it sat at the top level.
  - It is compiled only when USE_MANIFEST_API is ON and USE_PAX_CATALOG
    is OFF.  Both default the other way and nothing in the tree turns
    them on, so no build we ship compiles yyjson: pax.so and
    libpaxformat.so contain no yyjson symbols and manifest.c produces no
    object file.

Carrying it anyway is not free.  dependency/yyjson is 9.3 MB across 804
files, of which 3.0 MB and 201 files are generated doxygen output, and
pom.xml needs 249 RAT exclusions to cope with it, 200 of them for the
docs alone.  That doxygen output also bundles jQuery, jQuery UI, jQuery
UI Touch Punch, doxygen-awesome-css and Doxygen's own helper scripts,
none of which the root LICENSE accounts for.  Justin Mclean raised the
LICENSE gap during the 2.2.0-rc1 IPMC vote; fetching yyjson on demand
removes the components rather than documenting them.

CMake now fetches the dependency during configuration, as suggested by
Ed Espino on this PR.  This follows what gpMgmt/bin/Makefile already
does for psutil, PyYAML and PyGreSQL, which are downloaded at build time
for the same reason.  The version is a release tag rather than the
previous submodule pointer, which was 61c03f6 "Try fix github action",
not a release at all.

Ed's draft also tried a system yyjson through find_package first.  That
path is left out: it sets neither yyjson_SOURCE_DIR, which the include
path needs, nor a target named yyjson, which pax.cmake links, because an
installed yyjson exports yyjson::yyjson.  Since the previous behaviour
was always to build yyjson from source, always fetching keeps the change
behaviour-preserving, and a branch no image can exercise would only rot.

The LICENSE entry, licenses/LICENSE-yyjson.txt and all 249 RAT
exclusions go away with the directory.  This is rebased on top of the
boost licence fix, #1995 on main and #1987 on REL_2_STABLE, which
corrected the entry from dependencies/yyjson to dependency/yyjson; the
whole entry is removed either way, and every hunk now applies cleanly to
REL_2_STABLE as well.

Verified on Rocky 9:

  - `mvn clean verify -Drat.consoleOutput=true` against a fresh checkout
    of main with this applied gives Unapproved: 0, unknown: 0,
    generated: 1, approved: 5650 licenses, BUILD SUCCESS, so dropping the
    249 exclusions leaves nothing unaccounted for.

  - The default PAX build succeeds with no network access at all, which
    is the configuration every release build uses.
  - With USE_MANIFEST_API=ON USE_PAX_CATALOG=OFF, CMake fetches yyjson
    0.12.0, builds libyyjson.so.0.12.0, puts -I.../_deps/yyjson-src/src
    on the compile line that manifest.c uses and libyyjson.so.0.12.0 on
    the link line.
  - That configuration then fails in
    micro_partition_iterator_manifest.cc, which still uses the
    pre-PostgreSQL-16 rd_node field.  An unpatched tree with the
    submodule fails at the same two lines with the same error, so the
    breakage predates this change and confirms how long the manifest API
    path has gone unbuilt.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
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.

4 participants