diff options
author | Kai Kang <kai.kang@windriver.com> | 2018-10-26 17:45:36 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-29 17:26:47 +0000 |
commit | 123670227d37e2524d8001dcac984381431e175a (patch) | |
tree | e6fdbc97281b9b483b6d4e6a86c4cb50314dc59b /meta/recipes-extended/groff | |
parent | 57fd1c9b6669bfaad4abe8b597f8c0f744926b35 (diff) | |
download | poky-123670227d37e2524d8001dcac984381431e175a.tar.gz |
groff: not search fonts on build host
groff searches fonts on build host which are provided by ghostscript.
The number of font files installed by groff are different according to
whether ghostscript fonts are installed on build host. Fix it by not
search font dirs on the host.
(From OE-Core rev: 01bce5fada48ecc7bd76c3d7fbade3c034518573)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/groff')
-rw-r--r-- | meta/recipes-extended/groff/groff-1.22.3/groff-not-search-fonts-on-build-host.patch | 20 | ||||
-rw-r--r-- | meta/recipes-extended/groff/groff_1.22.3.bb | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-extended/groff/groff-1.22.3/groff-not-search-fonts-on-build-host.patch b/meta/recipes-extended/groff/groff-1.22.3/groff-not-search-fonts-on-build-host.patch new file mode 100644 index 0000000000..ff8f320592 --- /dev/null +++ b/meta/recipes-extended/groff/groff-1.22.3/groff-not-search-fonts-on-build-host.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | groff searchs fonts which are provided by ghostscript on build host. | ||
2 | It causes non-determinism issue. So not search font dirs on host. | ||
3 | |||
4 | Upstream-Status: Inappropriate [cross build specific] | ||
5 | |||
6 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
7 | |||
8 | diff --git a/font/devpdf/Foundry.in b/font/devpdf/Foundry.in | ||
9 | index a6e968f..8094642 100644 | ||
10 | --- a/font/devpdf/Foundry.in | ||
11 | +++ b/font/devpdf/Foundry.in | ||
12 | @@ -65,7 +65,7 @@ ZD|Y||||Dingbats!d050000l.pfb | ||
13 | #====================================================================== | ||
14 | |||
15 | #Foundry|Name|Searchpath | ||
16 | -foundry|U|(gs):/usr/share/fonts/type1/gsfonts :/opt/local/share/fonts/urw-fonts # the URW fonts delivered with ghostscript (may be different) | ||
17 | +foundry|U|(gs) # the URW fonts delivered with ghostscript (may be different) | ||
18 | #Define Flags for afmtodit | ||
19 | |||
20 | r=-i 0 -m | ||
diff --git a/meta/recipes-extended/groff/groff_1.22.3.bb b/meta/recipes-extended/groff/groff_1.22.3.bb index ce7ce3e791..ba90cadd88 100644 --- a/meta/recipes-extended/groff/groff_1.22.3.bb +++ b/meta/recipes-extended/groff/groff_1.22.3.bb | |||
@@ -11,6 +11,7 @@ SRC_URI = "${GNU_MIRROR}/groff/groff-${PV}.tar.gz \ | |||
11 | file://groff-1.22.2-correct-man.local-install-path.patch \ | 11 | file://groff-1.22.2-correct-man.local-install-path.patch \ |
12 | file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ | 12 | file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ |
13 | file://0001-replace-perl-w-with-use-warnings.patch \ | 13 | file://0001-replace-perl-w-with-use-warnings.patch \ |
14 | file://groff-not-search-fonts-on-build-host.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | SRC_URI[md5sum] = "cc825fa64bc7306a885f2fb2268d3ec5" | 17 | SRC_URI[md5sum] = "cc825fa64bc7306a885f2fb2268d3ec5" |