Debian Codegraph @

debian/README.Source

raw
1 COMPLIANCE WITH OFL LICENSE
2 ---------------------------
3
4 Source Sans 3 is released by Adobe under the OFL 1.1 license with the Reserved
5 Font Name of Source. To be compliant with this license, any distributed binary
6 fonts must be identical to those distributed upstream. It is frequently
7 difficult to comply with this requirement when building from source as small
8 differences in build environments result in slightly different font binaries.
9
10 Information about how to deal with this restriction in Debian is summarized on
11 the font wiki.
12
13 https://wiki.debian.org/Fonts/Bugs/rfn-violation
14
15 This package uses the third option for compliance with the OFL.
16
17 "Build the font from source using tools from Debian main during the package
18 build but distribute the upstream build in the binary package instead. In this
19 case it is not required to move the font to contrib."
20
21 Upstream ships their source and their compiled binary fonts in two distinct
22 Git branches.
23
24 Source:
25
26 https://github.com/adobe-fonts/source-sans/tree/main
27
28 Compiled binary fonts:
29
30 https://github.com/adobe-fonts/source-sans/tree/release
31
32 Uscan downloads from these two locations and stores them as separate tarballs:
33
34 fonts-adobe-sourcesans3_<version-number>.orig.tar.xz
35 fonts-adobe-sourcesans3_<version-number>.orig-precompiled-binary-fonts.tar.xz
36
37 The build process compiles Source Sans 3 from source, but then uses the fonts
38 from precompiled-binary-fonts when populating the binary package.
39
40 To create a package using the fonts built from source instead of the binary
41 fonts shipped upstream, modify debian/install following the instructions in its
42 comments.
43
44
45 DOWNLOADING NEW UPSTREAM SOURCE
46 -------------------------------
47
48 'gbp import-orig --uscan' doesn't seem to have support for MUT (Multiple
49 Upstream Tarballs). To download the source, run the following command:
50
51 uscan --download-version <version>
52
53 Running 'uscan --download-current-version' fails because uscan passes the
54 current version to the first download but doesn't pass it to the second.
55 However, manually specifying the version correctly passes it to both downloads.
56 So, for example, you can run 'uscan --download-version 3.052'.
57
58 Once the MUT has been downloaded, it can be imported into gbp (git-buildpackage)
59 by running:
60
61 gbp import-orig ../<tarball>
62
63 -- Soren Stoutner <[email protected]> Tue, 27 Aug 2024 11:08:22 -0700