Skip to content

chore(license): adopt the upstream 9.4 licence and per-file modification notices - #536

Merged
juliusknorr merged 27 commits into
mainfrom
licence/9.4
Dec 4, 2026
Merged

juliusknorr merged 27 commits into
mainfrom
licence/9.4

Conversation

@juliusknorr

@juliusknorr juliusknorr commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Upstream ONLYOFFICE relicensed with 9.4: AGPL-3.0-only with new additional terms. The logo clause is dropped, modified versions must say so and keep a record of changes, and the About must show the notices. This PR moves the repo to that licence and adds the required notices.

  • Restore Ascensio's original file headers that an earlier commit had stripped
  • Files outside the 9.4 pin (8) get their last upstream header back verbatim (keepHeader list); notice dropped where it equals upstream (2)
  • Cherry-pick upstream's 9.4 licence commits (-x, licence files and headers only, no code)
  • Mark every file we changed with "Modified by Euro-Office contributors, see MODIFICATIONS.txt" and SPDX-FileCopyrightText: Euro-Office contributors after the upstream header; files we added get the SPDX pair only
  • REUSE.toml for files that can't hold a notice (vendored, generated)
  • MODIFICATIONS.txt: a note linking the git history. Release builds generate the full dated record
  • .github/workflows/licence.yml: gate PRs and default-branch pushes (missing or broken notices, changed licence files)
  • Third-party: licence texts in LICENSES/ for every library in 3DPARTY.md, entries point at the pinned versions; copyright lines from the sources, or a note where upstream has none
  • README: ONLYOFFICE attribution and licence terms

Attribution wording: "based on the original ONLYOFFICE software developed by Ascensio System SIA".

Tests: the licence gate passes on this branch, modrecord --note --check passes. Repo licence tests: scripts/test_3dparty_licences.py. The Licence notices check fails until Euro-Office/.github#41 lands.

Land together with: Euro-Office/sdkjs#312, Euro-Office/web-apps#524, Euro-Office/server#96, Euro-Office/sdkjs-forms#9, Euro-Office/desktop-sdk#69, Euro-Office/desktop-apps#158, Euro-Office/document-server-package#41, Euro-Office/document-server-proxy#3, Euro-Office/Docker-DocumentServer#2, Euro-Office/DesktopEditors#434, Euro-Office/DocumentServer#641

@juliusknorr
juliusknorr force-pushed the licence/9.4 branch 2 times, most recently from 9d727f5 to 522a4d2 Compare December 3, 2026 14:57
@juliusknorr juliusknorr changed the title chore(license): adopt the ONLYOFFICE 9.4 licence and per-file modification notices chore(license): adopt the upstream 9.4 licence and per-file modification notices Dec 3, 2026

@Aiiaiiio Aiiaiiio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good!

@juliusknorr
juliusknorr marked this pull request as ready for review December 3, 2026 18:44
@juliusknorr
juliusknorr requested a review from a team as a code owner December 3, 2026 18:44
@juliusknorr
juliusknorr requested review from OlhaUshkalenko and chrip and removed request for a team December 3, 2026 18:44
harfbuzz/nc-build.py now builds tag 8.5.0. COPYING at 8.5.0 is identical to the text in LICENSES/. The test checks that every linked version is pinned by an nc-build.py; all other entries already match.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: header-only change; the relicence.sh header gates check the upstream headers and our block

#420 added SPDX lines with Ascensio's 2010-2023 years to the socketio sources. In the three headers they now follow upstream's 9.4 header and our block, so they only contradict upstream's 2009-2026. socketio_internal_private.cpp, code #420 moved out of upstream's header, gets upstream's 9.4 header in place of the pre-9.4 one (with the dropped Section 7(a) clause) and our block.
A substring match let a short version such as 8.5 pass for 8.5.0. The version now has to be a whole quoted string in an nc-build.py, or the start of a pinned commit hash or of CEF's version.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
…lack

gumbo, openssl, libheif, libde265, minizip-ng, djvulibre and hyphen ship their copyright lines outside the licence file: append them from the source file at the pinned version (src/parser.c, README.md, mz.h, COPYRIGHT, README). boost, librevenge, libodfgen and libetonyek have no project-wide copyright line upstream; their entries say so. The test fails if an entry has neither.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Same wording as the DocumentServer and DesktopEditors READMEs: the attribution to Ascensio System SIA, the Section 7 additional terms in LICENSE and a pointer to MODIFICATIONS.txt.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: README text only
Stamped with licence-modification-tooling 624f487 (relicence.sh).

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
The gate only needs git and Python 3.11+, so it does not need the few
self-hosted runners, and fork PRs then don't run on them.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: CI config, proven by the licence check on this PR
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: licence header change only
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: README change only
@juliusknorr

Copy link
Copy Markdown
Member Author

@chrip thanks. The split hash files now carry Ascensio's header with our block after it. header.license stays as upstream ships it: nothing we build uses it, since min.py isn't called. We'll make licence a required check right after the landing and add a short note for open PRs on how to resolve header conflicts and run the stamp.

@juliusknorr
juliusknorr merged commit 56fd1e7 into main Dec 4, 2026
20 checks passed
@juliusknorr
juliusknorr deleted the licence/9.4 branch December 4, 2026 14:44
@juliusknorr juliusknorr added the upstream Also affects ONLYOFFICE upstream, or comes from an upstream change label Dec 4, 2026

This branch was previously deployed

1 inactive deployment
build-cache — fc061bda Deployed Dec 4, 2026 by juliusknorr via publish / publish #1759
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore upstream Also affects ONLYOFFICE upstream, or comes from an upstream change

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

4 participants