Skip to content

License: cover contrib/pgcrypto/crypt-md5.c - #2161

Merged
tuhaihe merged 1 commit into
apache:REL_2_STABLEfrom
tuhaihe:license-crypt-md5-rel2
Oct 22, 2026
Merged

tuhaihe merged 1 commit into
apache:REL_2_STABLEfrom
tuhaihe:license-crypt-md5-rel2

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Oct 21, 2026

Copy link
Copy Markdown
Member

crypt-md5.c is inherited from PostgreSQL and says only that it was imported from FreeBSD, written by Poul-Henning Kamp. LICENSE did not mention it. This was found while checking 2.2.0-incubating-rc3.

The FreeBSD revision the file names, src/lib/libcrypt/crypt-md5.c 1.5, carried Kamp's beer-ware notice, which asks that the notice be retained. Reproduce that notice in licenses/LICENSE-beerware-crypt-md5.txt and list the file under it. FreeBSD's copy was later re-released under the 2-clause BSD license (FreeBSD commit d8e82636a47b), and LICENSE mentions that too.

Exclude the new licence file from RAT like the other verbatim licence texts.

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


crypt-md5.c is inherited from PostgreSQL and says only that it was
imported from FreeBSD, written by Poul-Henning Kamp.  LICENSE did not
mention it.  This was found while checking 2.2.0-incubating-rc3.

The FreeBSD revision the file names, src/lib/libcrypt/crypt-md5.c 1.5,
carried Kamp's beer-ware notice, which asks that the notice be retained.
Reproduce that notice in licenses/LICENSE-beerware-crypt-md5.txt and
list the file under it.  FreeBSD's copy was later re-released under the
2-clause BSD license (FreeBSD commit d8e82636a47b), and LICENSE mentions
that too.

Exclude the new licence file from RAT like the other verbatim licence
texts.

Assisted-by: Claude Code
@tuhaihe

tuhaihe commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

Main: #2160

@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, I wish we had the chance to comply with the Beer-ware license.

@tuhaihe
tuhaihe merged commit 6382ae8 into apache:REL_2_STABLE Oct 22, 2026
116 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