Skip to content

License: list the Bison-generated orafce parser - #2162

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

tuhaihe merged 1 commit into
apache:REL_2_STABLEfrom
tuhaihe:license-orafce-bison-rel2

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Oct 21, 2026

Copy link
Copy Markdown
Member

gpcontrib/orafce/sqlparse.c and sqlparse.h are generated by GNU Bison 3.7.4 and ship with upstream orafce. They carry the Bison skeleton's GPL-3.0-or-later notice with the Bison special exception, so a reviewer scanning for GPL text finds them, but LICENSE did not explain them.

The ASF settled this case in LEGAL-291: the exception lets the generated parser be distributed under terms of the distributor's choice, so it is distributed under the Apache License and needs no LICENSE or NOTICE entry. The build-tools allowance in resolved.html does not name Bison, so LEGAL-291, not that allowance, is the basis.

List the two files at the end of the build system section, with their copyright line and that basis, and retitle the section to cover them.

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


gpcontrib/orafce/sqlparse.c and sqlparse.h are generated by GNU Bison
3.7.4 and ship with upstream orafce.  They carry the Bison skeleton's
GPL-3.0-or-later notice with the Bison special exception, so a reviewer
scanning for GPL text finds them, but LICENSE did not explain them.

The ASF settled this case in LEGAL-291: the exception lets the
generated parser be distributed under terms of the distributor's
choice, so it is distributed under the Apache License and needs no
LICENSE or NOTICE entry.  The build-tools allowance in resolved.html
does not name Bison, so LEGAL-291, not that allowance, is the basis.

List the two files at the end of the build system section, with their
copyright line and that basis, and retitle the section to cover them.

Assisted-by: Claude Code
@tuhaihe
tuhaihe merged commit 11e858b into apache:REL_2_STABLE Oct 22, 2026
115 of 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