Skip to content

License updates - #319

Merged
pjaaskel merged 3 commits into
cpc:mainfrom
karihepola:license-updates
Oct 8, 2026
Merged

pjaaskel merged 3 commits into
cpc:mainfrom
karihepola:license-updates

Conversation

@karihepola

Copy link
Copy Markdown
Contributor

Changes LGPLv2.1 licenses to MIT and updates LICENSE.txt

@pjaaskel

pjaaskel commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Can you update README.md and add a note to the CHANGES that LGPL was decided to be changed back to MIT?

@pjaaskel pjaaskel self-assigned this Oct 6, 2026

@pjaaskel pjaaskel 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.

...

@karihepola
karihepola requested a review from pjaaskel October 6, 2026 15:49
nschieli added a commit to nschieli/openasip_macOS that referenced this pull request Oct 7, 2026
Ten files here are original work under a copyright we hold, and every one of
them carried an LGPL-2.1 header copied from the surrounding tree rather than
chosen for the file. LICENSE.txt already records that some files in this
project are MIT, so this is consistent with the project as it stands today and
with the relicensing proposed in cpc/openasip#319 either way.

⛔ THE ONE THAT MATTERED IS bclib/cpp/softfloat_wrappers.c. It is installed as
   a source library (share/openasip/srclibs) and the compiler driver pulls it
   into user programs for float libcalls, so it was the only LGPL-2.1 code in
   this tree that reaches a built binary — LGPL-2.1-or-later, with no linking
   exception. Everything else is a script, an opset, a machine or a document.

⚠ data/riscv/runtime/trunctfdf2.c carried the WRONG COPYRIGHT HOLDER as well.
  It is original work here, not Tampere's, and attributing our own new file to
  them is the kind of error that is never noticed from inside the tree.

⛔ AND ITS COMMENT JUSTIFIED THE FILE WITH A LICENCE CONFLICT THAT WAS NEVER
   THE REASON. It said the helper was written from scratch because
   compiler-rt is Apache-2.0-with-LLVM-exception and does not combine with
   LGPL-2.1. The load-bearing reason is stated two paragraphs above it:
   compiler-rt's trunctfdf2.c compiles to an empty object on any 32-bit
   target, because its quad support needs a native __int128. The comment now
   says that, and says not to re-derive the licence constraint — a stale
   "why" is how a constraint outlives the thing that created it.

Verified rather than assumed: the python and shell files parse, both XML files
parse, softfloat_wrappers.c passes -fsyntax-only and trunctfdf2.c passes it
under clang --target=riscv32 (it uses _BitInt, which gcc rejects), comment
delimiters balance in all ten, and no file carrying our copyright mentions the
LGPL any more. The first attempt dropped the closing " */" on the two C files
and left them compiling only by luck of what followed.

Not touched: LICENSE.txt, the six LGPL hibi_adapter_vhdl units (of nine files
there; the other three are MIT), two third-party LaTeX packages under
doc/latexdefs and the qemu systemtest script are upstream's, and the LGPL
headers on the RISC-V, HWGen and explorer sources are what cpc/openasip#319
converts. The arithmetic: 64 LGPL files in OpenASIP proper before this commit
(excluding 384 in bundled newlib) = 44 converted by #319 + LICENSE.txt + these
10 + 9 that stay.

⚠ COUNTED WITH /usr/bin/grep, NOT `grep`. On the machine this was prepared on
  `grep` is a shell function routing to `ugrep --ignore-files -I`, which honours
  ignore files and skips binaries -- so a recursive search silently returns a
  subset. The first pass of these counts was short by four LGPL files, two of
  them in hibi_adapter_vhdl.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZfyQ25RniD8cECmpy3c5H
nschieli added a commit to nschieli/openasip_macOS that referenced this pull request Oct 7, 2026
Ten files here are original work under a copyright we hold, and every one of
them carried an LGPL-2.1 header copied from the surrounding tree rather than
chosen for the file. LICENSE.txt already records that some files in this
project are MIT, so this is consistent with the project as it stands today and
with the relicensing proposed in cpc/openasip#319 either way.

⛔ THE ONE THAT MATTERED IS bclib/cpp/softfloat_wrappers.c. It is installed as
   a source library (share/openasip/srclibs) and the compiler driver pulls it
   into user programs for float libcalls, so it was the only LGPL-2.1 code in
   this tree that reaches a built binary — LGPL-2.1-or-later, with no linking
   exception. Everything else is a script, an opset, a machine or a document.

⚠ data/riscv/runtime/trunctfdf2.c carried the WRONG COPYRIGHT HOLDER as well.
  It is original work here, not Tampere's, and attributing our own new file to
  them is the kind of error that is never noticed from inside the tree.

⛔ AND ITS COMMENT JUSTIFIED THE FILE WITH A LICENCE CONFLICT THAT WAS NEVER
   THE REASON. It said the helper was written from scratch because
   compiler-rt is Apache-2.0-with-LLVM-exception and does not combine with
   LGPL-2.1. The load-bearing reason is stated two paragraphs above it:
   compiler-rt's trunctfdf2.c compiles to an empty object on any 32-bit
   target, because its quad support needs a native __int128. The comment now
   says that, and says not to re-derive the licence constraint — a stale
   "why" is how a constraint outlives the thing that created it.

Verified rather than assumed: the python and shell files parse, both XML files
parse, softfloat_wrappers.c passes -fsyntax-only and trunctfdf2.c passes it
under clang --target=riscv32 (it uses _BitInt, which gcc rejects), comment
delimiters balance in all ten, and no file carrying our copyright mentions the
LGPL any more. The first attempt dropped the closing " */" on the two C files
and left them compiling only by luck of what followed.

Not touched: LICENSE.txt, the six LGPL hibi_adapter_vhdl units (of nine files
there; the other three are MIT), two third-party LaTeX packages under
doc/latexdefs and the qemu systemtest script are upstream's, and the LGPL
headers on the RISC-V, HWGen and explorer sources are what cpc/openasip#319
converts. The arithmetic: 64 LGPL files in OpenASIP proper before this commit
(excluding 384 in bundled newlib) = 44 converted by #319 + LICENSE.txt + these
10 + 9 that stay.

⚠ COUNTED WITH /usr/bin/grep, NOT `grep`. On the machine this was prepared on
  `grep` is a shell function routing to `ugrep --ignore-files -I`, which honours
  ignore files and skips binaries -- so a recursive search silently returns a
  subset. The first pass of these counts was short by four LGPL files, two of
  them in hibi_adapter_vhdl.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZfyQ25RniD8cECmpy3c5H
@pjaaskel
pjaaskel merged commit e2d97ba into cpc:main Oct 8, 2026
1 check passed
nschieli added a commit to nschieli/openasip_macOS that referenced this pull request Oct 8, 2026
cpc/openasip#319 merged as e2d97baef on 2026-10-08. This takes it: the exact
range 7762099df..e2d97baef, which contains nothing but the four licence
commits, applied with `git apply --3way`.

⚠ THIS TREE IS A SQUASHED CUT (21 commits, no ancestor in common with
  upstream), so there is no merge to do and `git pull` is not available. The
  delta has to arrive as a patch, and the question that decides whether that is
  safe is how far our copies have drifted. Measured: 45 of the 47 files are
  BYTE-IDENTICAL to upstream's pre-change versions, so they take the change
  exactly as upstream wrote it.

The two that differ are ours and both kept their modifications:
- README.md — our fork sections intact, the LGPL claim gone
- src/bintools/Compiler/oacc-riscv.in — MIT header, with warnMissingRuntimeLib
  and newlibLibdir untouched

LGPL in OpenASIP proper: 54 -> 9. What is left is not upstream's to convert
either: the six hibi_adapter_vhdl units, two third-party LaTeX packages under
doc/latexdefs, and one qemu systemtest script.

⚠ LICENSE.txt IS NOT THE TWO-LINE VERSION THE PULL REQUEST PROPOSED. It grew
  during review to 230 lines, with the full Apache 2.0 text under "For the
  Apache 2.0 licensed files". That documents files which were ALREADY Apache
  (four tools/scripts, three testsuite scripts, a man page); nothing is
  relicensed TO Apache. Anything redistributing this prefix now carries that
  text too, which is more correct than before, not a new obligation.

⭐ The ten files relicensed here on 2026-10-07 are untouched by this patch —
   they do not exist upstream, so the two changes do not overlap.

Verified: the patch applied with no rejects, the oacc-riscv.in header region is
comments through line 29, and no file carrying our copyright mentions the LGPL.
⚠ The first attempt appeared to apply and changed nothing: `git apply` was
  piped into `head`, which closed the pipe and killed it by SIGPIPE, and the
  `$?` that followed was head's. Do not pipe git apply.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZfyQ25RniD8cECmpy3c5H
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.

2 participants