* [PATCH 0/2] Fixes for groff and toolchain-scripts.bbclass
@ 2018-10-26 9:45 kai.kang
2018-10-26 9:45 ` [PATCH 1/2] groff: not search fonts on build host kai.kang
2018-10-26 9:45 ` [PATCH 2/2] toolchain-scripts.bbclass: fix paths of siteconfig files kai.kang
0 siblings, 2 replies; 3+ messages in thread
From: kai.kang @ 2018-10-26 9:45 UTC (permalink / raw)
To: openembedded-core
From: Kai Kang <kai.kang@windriver.com>
The following changes since commit 3be5331986289bf11040c241fd54239fb2011695:
testimage.bbclass: define ptest suite variable (2018-10-25 14:53:44 +0100)
are available in the Git repository at:
git://git.pokylinux.org/poky-contrib kangkai/misc
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/misc
Kai Kang (2):
groff: not search fonts on build host
toolchain-scripts.bbclass: fix paths of siteconfig files
meta/classes/toolchain-scripts.bbclass | 9 +++++----
...groff-not-search-fonts-on-build-host.patch | 20 +++++++++++++++++++
meta/recipes-extended/groff/groff_1.22.3.bb | 1 +
3 files changed, 26 insertions(+), 4 deletions(-)
create mode 100644 meta/recipes-extended/groff/groff-1.22.3/groff-not-search-fonts-on-build-host.patch
--
2.18.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] groff: not search fonts on build host
2018-10-26 9:45 [PATCH 0/2] Fixes for groff and toolchain-scripts.bbclass kai.kang
@ 2018-10-26 9:45 ` kai.kang
2018-10-26 9:45 ` [PATCH 2/2] toolchain-scripts.bbclass: fix paths of siteconfig files kai.kang
1 sibling, 0 replies; 3+ messages in thread
From: kai.kang @ 2018-10-26 9:45 UTC (permalink / raw)
To: openembedded-core
From: Kai Kang <kai.kang@windriver.com>
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.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
...groff-not-search-fonts-on-build-host.patch | 20 +++++++++++++++++++
meta/recipes-extended/groff/groff_1.22.3.bb | 1 +
2 files changed, 21 insertions(+)
create mode 100644 meta/recipes-extended/groff/groff-1.22.3/groff-not-search-fonts-on-build-host.patch
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 @@
+groff searchs fonts which are provided by ghostscript on build host.
+It causes non-determinism issue. So not search font dirs on host.
+
+Upstream-Status: Inappropriate [cross build specific]
+
+Signed-off-by: Kai Kang <kai.kang@windriver.com>
+
+diff --git a/font/devpdf/Foundry.in b/font/devpdf/Foundry.in
+index a6e968f..8094642 100644
+--- a/font/devpdf/Foundry.in
++++ b/font/devpdf/Foundry.in
+@@ -65,7 +65,7 @@ ZD|Y||||Dingbats!d050000l.pfb
+ #======================================================================
+
+ #Foundry|Name|Searchpath
+-foundry|U|(gs):/usr/share/fonts/type1/gsfonts :/opt/local/share/fonts/urw-fonts # the URW fonts delivered with ghostscript (may be different)
++foundry|U|(gs) # the URW fonts delivered with ghostscript (may be different)
+ #Define Flags for afmtodit
+
+ 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 \
file://groff-1.22.2-correct-man.local-install-path.patch \
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
file://0001-replace-perl-w-with-use-warnings.patch \
+ file://groff-not-search-fonts-on-build-host.patch \
"
SRC_URI[md5sum] = "cc825fa64bc7306a885f2fb2268d3ec5"
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] toolchain-scripts.bbclass: fix paths of siteconfig files
2018-10-26 9:45 [PATCH 0/2] Fixes for groff and toolchain-scripts.bbclass kai.kang
2018-10-26 9:45 ` [PATCH 1/2] groff: not search fonts on build host kai.kang
@ 2018-10-26 9:45 ` kai.kang
1 sibling, 0 replies; 3+ messages in thread
From: kai.kang @ 2018-10-26 9:45 UTC (permalink / raw)
To: openembedded-core
From: Kai Kang <kai.kang@windriver.com>
It can't find right siteconfig files in toolchain-scripts.bbclass after
adapting to RSS. Correct the paths.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
meta/classes/toolchain-scripts.bbclass | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 6d1ba69473..cfc5eb9fae 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -158,7 +158,7 @@ EOF
#we get the cached site config in the runtime
TOOLCHAIN_CONFIGSITE_NOCACHE = "${@siteinfo_get_files(d)}"
-TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${STAGING_DIR}/${MLPREFIX}${MACHINE}/${target_datadir}/${TARGET_SYS}_config_site.d"
+TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${COMPONENTS_DIR}/${DEFAULTTUNE}"
TOOLCHAIN_NEED_CONFIGSITE_CACHE ??= "virtual/${MLPREFIX}libc ncurses"
DEPENDS += "${TOOLCHAIN_NEED_CONFIGSITE_CACHE}"
@@ -178,11 +178,12 @@ toolchain_create_sdk_siteconfig () {
# Resolve virtual/* names to the real recipe name using sysroot-providers info
case $sitefile in virtual/*)
sitefile=`echo $sitefile | tr / _`
- sitefile=`cat ${STAGING_DIR_TARGET}/sysroot-providers/$sitefile`
+ sitefile=`cat ${STAGING_DIR_TARGET}/sysroot-providers/$sitefile | sed "s/^${MLPREFIX}//"`
esac
- if [ -r ${TOOLCHAIN_CONFIGSITE_SYSROOTCACHE}/${sitefile}_config ]; then
- cat ${TOOLCHAIN_CONFIGSITE_SYSROOTCACHE}/${sitefile}_config >> $siteconfig
+ sitefile_config=${TOOLCHAIN_CONFIGSITE_SYSROOTCACHE}/${MLPREFIX}${sitefile}/${target_datadir}/${TARGET_SYS}_config_site.d/${sitefile}_config
+ if [ -r $sitefile_config ]; then
+ cat $sitefile_config >> $siteconfig
fi
done
}
--
2.18.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-26 10:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-26 9:45 [PATCH 0/2] Fixes for groff and toolchain-scripts.bbclass kai.kang
2018-10-26 9:45 ` [PATCH 1/2] groff: not search fonts on build host kai.kang
2018-10-26 9:45 ` [PATCH 2/2] toolchain-scripts.bbclass: fix paths of siteconfig files kai.kang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox