Skip to content

License: register third-party code missing from LICENSE - #2059

Merged
tuhaihe merged 2 commits into
apache:REL_2_STABLEfrom
tuhaihe:license-register-missing-rel2
Oct 1, 2026
Merged

tuhaihe merged 2 commits into
apache:REL_2_STABLEfrom
tuhaihe:license-register-missing-rel2

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Sep 29, 2026

Copy link
Copy Markdown
Member

Add LICENSE entries, with the license texts under licenses/, for bundled code that LICENSE did not list:

  • pg_cron's copy of Vixie cron (entry.c, misc.c, cron.h) and of Berkeley's bitstring.h. The latter carries the pre-4.4BSD form of the Regents' license; note UC Berkeley's deletion of the advertising clause from the 4.4BSD re-release of the same code.
  • From PostgreSQL: the Snowball stemmers and stop words (BSD-3), strftime.c (BSD-3), HyperLogLog (MIT), the IANA time zone code and data (public domain), and the Project X0213 and ICU mapping tables.
  • From Greenplum: cmockery (Apache-2.0).

Exclude the three license texts that RAT does not recognize.

This is the REL_2_STABLE version of the same change on main, which also covers pg_bsd_indent and LLVM's SectionMemoryManager; neither exists on this branch.

Assisted-by: Claude Code

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


pg_cron's bitstring.h carries the pre-4.4BSD form of the University of
California license, which asks that documentation and advertising
materials acknowledge UC Berkeley.  Replace it with FreeBSD's
sys/sys/bitstring.h from stable/10, the same Berkeley code after UC
Berkeley deleted the advertising clause (FreeBSD commit 82c6e8799148).
That leaves it under the plain 3-clause BSD license, which RAT
recognizes, so drop its exclude.

The macros pg_cron uses (bit_decl, bit_set, bit_test, bit_nset and
bit_nclear) behave the same; the multi-statement ones are now wrapped
in do { } while (0).

Assisted-by: Claude Code
Add LICENSE entries, with the license texts under licenses/, for
bundled code that LICENSE did not list:

- pg_cron's copy of Vixie cron (entry.c, misc.c, cron.h) and
  Berkeley's bitstring.h (BSD-3).
- From PostgreSQL: the Snowball stemmers and stop words (BSD-3),
  strftime.c (BSD-3), HyperLogLog (MIT), the IANA time zone code and
  data (public domain), and the Project X0213 and ICU mapping tables.
- From Greenplum: cmockery (Apache-2.0).

Exclude the two license texts that RAT does not recognize.

This is the REL_2_STABLE version of the same change on main, which
also covers pg_bsd_indent and LLVM's SectionMemoryManager; neither
exists on this branch.

Assisted-by: Claude Code
@tuhaihe
tuhaihe force-pushed the license-register-missing-rel2 branch from 8581f62 to 69ee0d8 Compare September 29, 2026 09:53
Comment thread src/include/task/bitstring.h
@tuhaihe tuhaihe added this to the 2.2 milestone Sep 29, 2026
@tuhaihe
tuhaihe marked this pull request as ready for review September 30, 2026 02:23
@tuhaihe
tuhaihe requested review from leborchuk and reshke September 30, 2026 02:24
@tuhaihe

tuhaihe commented Sep 30, 2026

Copy link
Copy Markdown
Member Author

After cherry-picking, we can merge this PR as an addition to the LICENSE compliance work.

@tuhaihe tuhaihe mentioned this pull request Sep 30, 2026
13 tasks
@tuhaihe

tuhaihe commented Sep 30, 2026

Copy link
Copy Markdown
Member Author

Similar PR for main: #2063

@leborchuk leborchuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@tuhaihe
tuhaihe requested a review from MisterRaindrop October 1, 2026 12:57
@tuhaihe
tuhaihe merged commit 66da392 into apache:REL_2_STABLE Oct 1, 2026
189 of 190 checks 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.

3 participants