Skip to content

ci: ship the licence texts of the libraries each package bundles - #37

Merged
transfix merged 1 commit into
masterfrom
ci/bundle-licences
Nov 9, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/bundle-licences

Conversation

@transfix

@transfix transfix commented Nov 9, 2026

Copy link
Copy Markdown
Owner

F2Dock's packages bundle third-party shared libraries from the cvcpkg prefix, and none of them carried those libraries' licence texts. This makes every package ship them, together with a README listing each bundled package's version and licence.

Why

Package What it bundles
Linux tarball every library ldd resolves in the prefix
Windows zip every DLL in the prefix's bin/, the MinGW runtime included
macOS .app its 142-library closure (#36)

Several of these licences require their text to travel with the binary. gmp and mpfr are LGPL-3.0, libstdc++ is GPL-3.0 with the GCC Runtime Library Exception, and most of the rest require their copyright notice to be reproduced.

What changes

  • .github/scripts/bundle-licences.py PREFIX DEST --libs DIR [--require]
    • Copies every <prefix>/share/licenses/<package>/, where cvcpkg keeps a package's upstream texts, into DEST/<package>/.
    • Writes DEST/README.txt listing package, version and SPDX licence for everything bundled.
    • Maps each bundled library to its package through the prefix's installed manifests, and reports bundled libraries whose package has no texts, or that no manifest lists. With --require those are errors.
    • Runs on the Python that installed cvcpkg, so PyYAML is available on all three runners.
  • ci.yml and release.yml: all three package jobs run it.
    • Linux tarball and Windows zip: licenses/ beside bin/.
    • macOS .app: Contents/Resources/licenses/.

It is report-only for now, on purpose

Today's bundles mostly carry no texts. Against current prefixes:

Package Bundled packages With no licence texts Libraries no manifest lists
macOS .app 26 26 96
Windows zip 36 34 —

Only openssl (Windows) installs its own, plus eigen and libigl, which are header-only. The 96 unlisted macOS libraries come from bundles published without a manifest: abseil, lerc, tiff, libjpeg-turbo, libwebp, re2.

cy-pca/cvcpkg#576 makes every bundle carry its texts in share/licenses/<name>/. A published bundle gains them only when it is rebuilt at a new cvc_revision, though. Once F2Dock's closure is republished, adding --require to these three calls makes any gap a red job. Until then the packages ship what exists, and the README marks each gap [NO LICENCE TEXT IN THE BUNDLE].

Checked

Run locally against the real macOS arm64 and Windows x86_64 prefixes and against the .app bundled for #36: the counts above. --require exits 1 on the macOS case. Both workflow files parse.

Found while doing this, not addressed here

The libcvc 3.7.11 binary that every package bundles contains GPL-3.0 CGAL code. libcvc.so.3.7.11 carries instantiated CGAL::Kd_tree / Search_traits_2 / Fuzzy_sphere symbols (spatial searching), and those CGAL headers are SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial. libcvc's recipe says LGPL-2.1-only. F2Dock's own source stays LGPL-2.1, but its binary packages, by shipping that libcvc, distribute GPL-3.0 code. F2Dock uses libcvc only for RAWIV volume I/O and cvc::xmlrpc, so a libcvc built without CGAL would remove this. That is a libcvc decision.

The packages bundle third-party shared libraries from the cvcpkg prefix:
the Linux tarball every library ldd resolves there, the Windows zip every
DLL in the prefix, the macOS .app its 142-library closure. None carried
their licence texts, and several licences require them to travel with the
binary: gmp and mpfr are LGPL-3.0, the MinGW runtime's libstdc++ is
GPL-3.0 with the GCC Runtime Library Exception, most of the rest want their
copyright notice reproduced.

.github/scripts/bundle-licences.py PREFIX DEST --libs DIR copies every
<prefix>/share/licenses/<package>/ into DEST/<package>/ and writes
DEST/README.txt with each bundled package's version and licence. It maps
each bundled library to its package through the prefix's installed
manifests and reports the libraries whose package has no licence texts.
With --require those are an error.

All three package jobs, in ci.yml and release.yml, run it:
licenses/ beside bin/ in the Linux tarball and the Windows zip, and
Contents/Resources/licenses/ in the .app.

It is report-only for now. Today's bundles mostly carry no texts: against
the current prefixes, 26 of the 26 packages the .app bundles have none,
and 34 of 36 for the Windows zip. cy-pca/cvcpkg#576 makes every bundle
carry them, but a published bundle gains them only when it is rebuilt at a
new revision. Once the closure is republished, adding --require turns a
gap into a red job.
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.

1 participant