mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Add preparing of qemu fontconfig to Ubuntu 16.04 provisioning
If normal fontconfig paths are used, qemu parses what ever files it finds from the toolchain sysroot and the rest from the system fonts. Fix by copying the system font configurations to a location which prefix that can't be found from the toolchain sysroot. Links must also be dereferenced or their targets remain pointing to the toolchain sysroot. Task-number: QTBUG-59966 Change-Id: I9710c9fdebe81114080f47f1f59b2a049f87c070 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
committed by
Simon Hausmann
parent
ed39e440a9
commit
94e22fcd94
@@ -64,3 +64,15 @@ sudo update-binfmts --package qemu-arm --install arm \
|
||||
# doesn't help since host version creates cache for a wrong architecture and running
|
||||
# armv7 fc-cache segfaults on QEMU.
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y remove fonts-noto-cjk
|
||||
|
||||
# If normal fontconfig paths are used, qemu parses what ever files it finds from
|
||||
# the toolchain sysroot and the rest from the system fonts. Fix by copying the
|
||||
# system font configurations to a location which prefix that can't be found from
|
||||
# the toolchain sysroot. Links must also be dereferenced or their targets remain
|
||||
# pointing to the toolchain sysroot.
|
||||
QEMU_FONTCONFPATH=~/qemu_fonts
|
||||
QEMU_FONTCONFFILE=$QEMU_FONTCONFPATH/fonts.qemu.conf
|
||||
mkdir -p $QEMU_FONTCONFPATH
|
||||
cp -Lr /etc/fonts/* $QEMU_FONTCONFPATH
|
||||
sed $QEMU_FONTCONFPATH/fonts.conf -e "s:conf.d:$QEMU_FONTCONFPATH/conf.d:" > $QEMU_FONTCONFFILE
|
||||
echo "export QEMU_SET_ENV=\"FONTCONFIG_FILE=$QEMU_FONTCONFFILE,FONTCONFIG_PATH=$QEMU_FONTCONFPATH\"" >> ~/.profile
|
||||
|
||||
Reference in New Issue
Block a user