Skip to content

Fix incomplete license header in src/libImaging/Arrow.h#9787

Open
muhamedfazalps wants to merge 3 commits into
python-pillow:mainfrom
muhamedfazalps:fix-arrow-license-header
Open

Fix incomplete license header in src/libImaging/Arrow.h#9787
muhamedfazalps wants to merge 3 commits into
python-pillow:mainfrom
muhamedfazalps:fix-arrow-license-header

Conversation

@muhamedfazalps

Copy link
Copy Markdown

Summary

This PR fixes the incomplete license header in src/libImaging/Arrow.h as reported in #9657.

Problem

The file src/libImaging/Arrow.h is vendored from Apache Arrow's abi.h (source), but only contained a minimal license comment:

// Apache License 2.0.
// Source apache arrow project
// https://arrow.apache.org/docs/format/CDataInterface.html

This does not satisfy the Apache 2.0 license requirements, which mandate inclusion of the full ASF license boilerplate for files derived from ASF-licensed projects.

Fix

Replace the minimal header with the standard Apache 2.0 license notice exactly as it appears in the original Arrow abi.h, and add a comment clarifying the vendoring origin.

Changes

  • src/libImaging/Arrow.h: Replaced the short license comment block with the full ASF Apache 2.0 license header and added a vendoring source annotation.

No code or logic changes — this is a license-header-only fix.

@wiredfool

Copy link
Copy Markdown
Member

#9657 (comment) Specifies the exact source of the code, and its not arrow_abi.h.

The vendored Arrow C Data Interface code comes from the documentation
page, not the Arrow source repository. Update the source URL to match.

Fixes python-pillow#9657
@muhamedfazalps muhamedfazalps force-pushed the fix-arrow-license-header branch from 592d309 to 3a3d107 Compare July 11, 2026 13:48
pre-commit-ci Bot and others added 2 commits July 11, 2026 13:48
The 'Only' keyword was accidentally merged with the URL line.
Separate it onto its own line for readability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants