Skip to content

Fix licence info about boost (#1987) - #1995

Merged
tuhaihe merged 1 commit into
apache:mainfrom
leborchuk:FixLICENSEMain
Sep 15, 2026
Merged

tuhaihe merged 1 commit into
apache:mainfrom
leborchuk:FixLICENSEMain

Conversation

@leborchuk

Copy link
Copy Markdown
Contributor
  • 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

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


* 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>
@leborchuk
leborchuk requested review from tuhaihe and a lite review from Copilot September 14, 2026 07:57
@leborchuk

leborchuk commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor Author

This is a cherry-pick from REL_2_STABLE fix #1987

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.

🔵 Needs a closer look

Remove the RAT exclusion for the standard BSD-3-Clause amalgamate license text.

Pull request overview

Updates third-party license coverage for bundled components and corrects the yyjson path.

Changes:

  • Adds Boost and BSD-3-Clause license texts.
  • Documents Ryu, tabulate components, termcolor, and amalgamate.
  • Updates Apache RAT exclusions.
File summaries
File Changes
pom.xml Updates RAT exclusions.
licenses/LICENSE-termcolor.txt Adds termcolor BSD-3-Clause text.
licenses/LICENSE-boost.txt Adds Boost license text.
licenses/LICENSE-amalgamate.txt Adds amalgamate BSD-3-Clause text.
LICENSE Expands third-party license coverage and corrects the yyjson path.
Review details

Suppressed comments (1)

pom.xml:1728

  • The PR description says the standard BSD-3 text for LICENSE-amalgamate.txt does not need a RAT exclusion, but this entry bypasses RAT for that file. Please remove this line and retain exclusions only for the nonstandard verbatim texts that RAT cannot recognize, so the canonical BSD text remains covered by the scan.
            <exclude>licenses/LICENSE-amalgamate.txt</exclude>
  • Files reviewed: 5/5 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 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@tuhaihe tuhaihe added this to the 2.2 milestone Sep 15, 2026
@tuhaihe
tuhaihe merged commit 320a6d3 into apache:main Sep 15, 2026
191 of 192 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.  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 15, 2026
Four third-party components that are compiled into and shipped with
Cloudberry were never registered in the root LICENSE file:

  - gpcontrib/pg_hint_plan/*             BSD 3-Clause (NTT)
  - gpMgmt/bin/lib/pexpect/__init__.py   ISC (Noah Spurrier)
    gpMgmt/bin/lib/pexpect/pxssh.py
  - gpcontrib/gpcloud/lib/http_parser.*  MIT (Joyent / NGINX)
  - gpcontrib/gpcloud/lib/ini.*          MIT (rxi)

All four arrived with the Greenplum code base, so they are registered
under the existing "The Greenplum Database software includes" section.
Their upstream license texts are added under licenses/, copied from the
files themselves (pg_hint_plan from its own COPYRIGHT file).

The pexpect entry deliberately names the two upstream files rather than
using a gpMgmt/bin/lib/pexpect/* wildcard: the third file in that
directory, Makefile, is our own build glue and is not under the pexpect
license.  gpcontrib/pg_hint_plan/ is a pristine upstream subtree with no
project-authored files, so a wildcard is accurate there.

Note that pom.xml already carries a dedicated Apache RAT matcher for
rxi's ini ("MIT (RXI-derived)"), so the component was known to the audit
tooling but had never been reflected in LICENSE.

Auditing every path referenced by LICENSE also turned up a stray trailing
colon after src/pl/plperl/ppport.h, corrected here.  The same audit found
that LICENSE pointed at dependencies/yyjson while the directory is
dependency/yyjson; apache#1995 has since corrected that independently, so this
branch no longer carries it.

Verified with `mvn clean verify -Drat.consoleOutput=true` on Rocky 9:
Unapproved: 0, unknown: 0, generated: 1, approved: 5657 licenses.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
tuhaihe added a commit to tuhaihe/cloudberrydb that referenced this pull request Sep 16, 2026
Four third-party components that are compiled into and shipped with
Cloudberry were never registered in the root LICENSE file:

  - gpcontrib/pg_hint_plan/*             BSD 3-Clause (NTT)
  - gpMgmt/bin/lib/pexpect/__init__.py   ISC (Noah Spurrier)
    gpMgmt/bin/lib/pexpect/pxssh.py
  - gpcontrib/gpcloud/lib/http_parser.*  MIT (Joyent / NGINX)
  - gpcontrib/gpcloud/lib/ini.*          MIT (rxi)

All four arrived with the Greenplum code base, so they are registered
under the existing "The Greenplum Database software includes" section.
Their upstream license texts are added under licenses/, copied from the
files themselves (pg_hint_plan from its own COPYRIGHT file).

The pexpect entry deliberately names the two upstream files rather than
using a gpMgmt/bin/lib/pexpect/* wildcard: the third file in that
directory, Makefile, is our own build glue and is not under the pexpect
license.  gpcontrib/pg_hint_plan/ is a pristine upstream subtree with no
project-authored files, so a wildcard is accurate there.

Note that pom.xml already carries a dedicated Apache RAT matcher for
rxi's ini ("MIT (RXI-derived)"), so the component was known to the audit
tooling but had never been reflected in LICENSE.

Auditing every path referenced by LICENSE also turned up a stray trailing
colon after src/pl/plperl/ppport.h, corrected here.  The same audit found
that LICENSE pointed at dependencies/yyjson while the directory is
dependency/yyjson; apache#1995 has since corrected that independently, so this
branch no longer carries it.

Verified with `mvn clean verify -Drat.consoleOutput=true` on Rocky 9:
Unapproved: 0, unknown: 0, generated: 1, approved: 5657 licenses.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
tuhaihe added a commit that referenced this pull request Sep 16, 2026
Four third-party components that are compiled into and shipped with
Cloudberry were never registered in the root LICENSE file:

  - gpcontrib/pg_hint_plan/*             BSD 3-Clause (NTT)
  - gpMgmt/bin/lib/pexpect/__init__.py   ISC (Noah Spurrier)
    gpMgmt/bin/lib/pexpect/pxssh.py
  - gpcontrib/gpcloud/lib/http_parser.*  MIT (Joyent / NGINX)
  - gpcontrib/gpcloud/lib/ini.*          MIT (rxi)

All four arrived with the Greenplum code base, so they are registered
under the existing "The Greenplum Database software includes" section.
Their upstream license texts are added under licenses/, copied from the
files themselves (pg_hint_plan from its own COPYRIGHT file).

The pexpect entry deliberately names the two upstream files rather than
using a gpMgmt/bin/lib/pexpect/* wildcard: the third file in that
directory, Makefile, is our own build glue and is not under the pexpect
license.  gpcontrib/pg_hint_plan/ is a pristine upstream subtree with no
project-authored files, so a wildcard is accurate there.

Note that pom.xml already carries a dedicated Apache RAT matcher for
rxi's ini ("MIT (RXI-derived)"), so the component was known to the audit
tooling but had never been reflected in LICENSE.

Auditing every path referenced by LICENSE also turned up a stray trailing
colon after src/pl/plperl/ppport.h, corrected here.  The same audit found
that LICENSE pointed at dependencies/yyjson while the directory is
dependency/yyjson; #1995 has since corrected that independently, so this
branch no longer carries it.

Verified with `mvn clean verify -Drat.consoleOutput=true` on Rocky 9:
Unapproved: 0, unknown: 0, generated: 1, approved: 5657 licenses.

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
@tuhaihe tuhaihe removed this from the 2.2 milestone Sep 30, 2026
leborchuk pushed a commit that referenced this pull request Oct 1, 2026
Four third-party components that are compiled into and shipped with
Cloudberry were never registered in the root LICENSE file:

  - gpcontrib/pg_hint_plan/*             BSD 3-Clause (NTT)
  - gpMgmt/bin/lib/pexpect/__init__.py   ISC (Noah Spurrier)
    gpMgmt/bin/lib/pexpect/pxssh.py
  - gpcontrib/gpcloud/lib/http_parser.*  MIT (Joyent / NGINX)
  - gpcontrib/gpcloud/lib/ini.*          MIT (rxi)

All four arrived with the Greenplum code base, so they are registered
under the existing "The Greenplum Database software includes" section.
Their upstream license texts are added under licenses/, copied from the
files themselves (pg_hint_plan from its own COPYRIGHT file).

The pexpect entry deliberately names the two upstream files rather than
using a gpMgmt/bin/lib/pexpect/* wildcard: the third file in that
directory, Makefile, is our own build glue and is not under the pexpect
license.  gpcontrib/pg_hint_plan/ is a pristine upstream subtree with no
project-authored files, so a wildcard is accurate there.

Note that pom.xml already carries a dedicated Apache RAT matcher for
rxi's ini ("MIT (RXI-derived)"), so the component was known to the audit
tooling but had never been reflected in LICENSE.

Auditing every path referenced by LICENSE also turned up a stray trailing
colon after src/pl/plperl/ppport.h, corrected here.  The same audit found
that LICENSE pointed at dependencies/yyjson while the directory is
dependency/yyjson; #1995 has since corrected that independently, so this
branch no longer carries it.

Verified with `mvn clean verify -Drat.consoleOutput=true` on Rocky 9:
Unapproved: 0, unknown: 0, generated: 1, approved: 5657 licenses.

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