From da2c3ea90ab6e647dde2f4f8d2e33449f699d66b Mon Sep 17 00:00:00 2001 From: AI Dev Date: Wed, 28 Oct 2026 08:41:55 +0000 Subject: [PATCH 1/2] majestic-fonts: Ubuntu Font Licence, and a licence file legal-info collects The package declared MIT and a LICENSE file it did not have. Both were wrong, and neither was ever noticed: with no version, Buildroot gives the package no source name, treats it as part of Buildroot itself, and its legal-info skips licence collection. So `make legal-info` did not fail. It recorded MIT for this font on 102 images and saved no licence text. The font is Ubuntu Mono. UbuntuMono-Regular.ttf, named "OpenIPC Mono" inside, has 170 mapped glyphs, and every outline matches upstream Ubuntu Mono Regular point for point (google/fonts ufl/ubuntumono). Upstream's name table says "Copyright 2011 Canonical Ltd. Licensed under the Ubuntu Font Licence 1.0". - LICENSE = UFL-1.0, and files/LICENSE carries that copyright line and the licence, verbatim from canonical/Ubuntu-fonts LICENCE.txt; - the package is a local-site package versioned 0.12, the font's own version, so legal-info collects the file. The custom extract step goes, because the local method copies the same directory; - majestic-fonts.hash pins the licence file. What lands on a camera is unchanged: the package still installs one file, /usr/share/fonts/truetype/UbuntuMono-Regular.ttf, byte-identical (sha256 ea790010...e49d27e before and after). --- general/package/majestic-fonts/files/LICENSE | 101 ++++++++++++++++++ .../majestic-fonts/majestic-fonts.hash | 2 + .../package/majestic-fonts/majestic-fonts.mk | 10 +- 3 files changed, 108 insertions(+), 5 deletions(-) create mode 100644 general/package/majestic-fonts/files/LICENSE create mode 100644 general/package/majestic-fonts/majestic-fonts.hash diff --git a/general/package/majestic-fonts/files/LICENSE b/general/package/majestic-fonts/files/LICENSE new file mode 100644 index 0000000000..7d66b106ff --- /dev/null +++ b/general/package/majestic-fonts/files/LICENSE @@ -0,0 +1,101 @@ +UbuntuMono-Regular.ttf ("OpenIPC Mono") is a 170-glyph subset of Ubuntu Mono +Regular, its outlines unchanged. + +Copyright 2011 Canonical Ltd. Licensed under the Ubuntu Font Licence 1.0. + +------------------------------- +UBUNTU FONT LICENCE Version 1.0 +------------------------------- + +PREAMBLE +This licence allows the licensed fonts to be used, studied, modified and +redistributed freely. The fonts, including any derivative works, can be +bundled, embedded, and redistributed provided the terms of this licence +are met. The fonts and derivatives, however, cannot be released under +any other licence. The requirement for fonts to remain under this +licence does not require any document created using the fonts or their +derivatives to be published under this licence, as long as the primary +purpose of the document is not to be a vehicle for the distribution of +the fonts. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this licence and clearly marked as such. This may +include source files, build scripts and documentation. + +"Original Version" refers to the collection of Font Software components +as received under this licence. + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to +a new environment. + +"Copyright Holder(s)" refers to all individuals and companies who have a +copyright ownership of the Font Software. + +"Substantially Changed" refers to Modified Versions which can be easily +identified as dissimilar to the Font Software by users of the Font +Software comparing the Original Version with the Modified Version. + +To "Propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification and with or without charging +a redistribution fee), making available to the public, and in some +countries other activities as well. + +PERMISSION & CONDITIONS +This licence does not grant any rights under trademark law and all such +rights are reserved. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of the Font Software, to propagate the Font Software, subject to +the below conditions: + +1) Each copy of the Font Software must contain the above copyright +notice and this licence. These can be included either as stand-alone +text files, human-readable headers or in the appropriate machine- +readable metadata fields within text or binary files as long as those +fields can be easily viewed by the user. + +2) The font name complies with the following: +(a) The Original Version must retain its name, unmodified. +(b) Modified Versions which are Substantially Changed must be renamed to +avoid use of the name of the Original Version or similar names entirely. +(c) Modified Versions which are not Substantially Changed must be +renamed to both (i) retain the name of the Original Version and (ii) add +additional naming elements to distinguish the Modified Version from the +Original Version. The name of such Modified Versions must be the name of +the Original Version, with "derivative X" where X represents the name of +the new work, appended to that name. + +3) The name(s) of the Copyright Holder(s) and any contributor to the +Font Software shall not be used to promote, endorse or advertise any +Modified Version, except (i) as required by this licence, (ii) to +acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with +their explicit written permission. + +4) The Font Software, modified or unmodified, in part or in whole, must +be distributed entirely under this licence, and must not be distributed +under any other licence. The requirement for fonts to remain under this +licence does not affect any document created using the Font Software, +except any version of the Font Software extracted from a document +created using the Font Software may only be distributed under this +licence. + +TERMINATION +This licence becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER +DEALINGS IN THE FONT SOFTWARE. diff --git a/general/package/majestic-fonts/majestic-fonts.hash b/general/package/majestic-fonts/majestic-fonts.hash new file mode 100644 index 0000000000..0e9a83c7d9 --- /dev/null +++ b/general/package/majestic-fonts/majestic-fonts.hash @@ -0,0 +1,2 @@ +# Locally computed +sha256 7ae9f5878941e37814b8f2cbcb0cf5710e77c87b3fc25336d5ccf122d0333709 LICENSE diff --git a/general/package/majestic-fonts/majestic-fonts.mk b/general/package/majestic-fonts/majestic-fonts.mk index da21f996bc..090df5b6b1 100644 --- a/general/package/majestic-fonts/majestic-fonts.mk +++ b/general/package/majestic-fonts/majestic-fonts.mk @@ -4,12 +4,12 @@ # ################################################################################ -MAJESTIC_FONTS_LICENSE = MIT -MAJESTIC_FONTS_LICENSE_FILES = LICENSE +MAJESTIC_FONTS_VERSION = 0.12 +MAJESTIC_FONTS_SITE_METHOD = local +MAJESTIC_FONTS_SITE = $(MAJESTIC_FONTS_PKGDIR)/files -define MAJESTIC_FONTS_EXTRACT_CMDS - cp $(MAJESTIC_FONTS_PKGDIR)/files/* $(@D)/ -endef +MAJESTIC_FONTS_LICENSE = UFL-1.0 +MAJESTIC_FONTS_LICENSE_FILES = LICENSE define MAJESTIC_FONTS_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/share/fonts/truetype From 4311035121fb3aaede638395aaa12c98c12a82ce Mon Sep 17 00:00:00 2001 From: AI Dev Date: Wed, 28 Oct 2026 08:50:09 +0000 Subject: [PATCH 2/2] majestic-fonts: ship the licence with the font The Ubuntu Font Licence wants the notice and the licence with every copy of the font. The image is a copy, so the text now goes beside it as /usr/share/fonts/truetype/UbuntuMono-Regular.LICENSE: 4860 bytes, about 2.1 KB once xz-compressed. The font file itself is unchanged. --- general/package/majestic-fonts/majestic-fonts.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/general/package/majestic-fonts/majestic-fonts.mk b/general/package/majestic-fonts/majestic-fonts.mk index 090df5b6b1..9971bc50a2 100644 --- a/general/package/majestic-fonts/majestic-fonts.mk +++ b/general/package/majestic-fonts/majestic-fonts.mk @@ -14,6 +14,7 @@ MAJESTIC_FONTS_LICENSE_FILES = LICENSE define MAJESTIC_FONTS_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/share/fonts/truetype $(INSTALL) -m 644 -t $(TARGET_DIR)/usr/share/fonts/truetype $(@D)/UbuntuMono-Regular.ttf + $(INSTALL) -m 644 $(@D)/LICENSE $(TARGET_DIR)/usr/share/fonts/truetype/UbuntuMono-Regular.LICENSE endef $(eval $(generic-package))