Repository navigation
ci: ship the licence texts of the libraries each package bundles - #37
Merged
Merged
Conversation
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.
This was referenced Nov 10, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
lddresolves in the prefixbin/, the MinGW runtime included.appSeveral 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]<prefix>/share/licenses/<package>/, where cvcpkg keeps a package's upstream texts, intoDEST/<package>/.DEST/README.txtlisting package, version and SPDX licence for everything bundled.--requirethose are errors.licenses/besidebin/..app:Contents/Resources/licenses/.It is report-only for now, on purpose
Today's bundles mostly carry no texts. Against current prefixes:
.appOnly 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 newcvc_revision, though. Once F2Dock's closure is republished, adding--requireto 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
.appbundled for #36: the counts above.--requireexits 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.11carries instantiatedCGAL::Kd_tree/Search_traits_2/Fuzzy_spheresymbols (spatial searching), and those CGAL headers areSPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial. libcvc's recipe saysLGPL-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 andcvc::xmlrpc, so a libcvc built without CGAL would remove this. That is a libcvc decision.