liberation-fonts: do not inherit allarch
PATCH 1/1 liberation-fonts: do not inherit allarch
The fontcache class performs post-installation cache updating and needs target architecture information.
--- meta/recipes-graphics/ttf-fonts/liberation-fonts_2.00.1.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-graphics/ttf-fonts/liberation-fonts_2.00.1.bb +4 -1
@@ -10,7 +10,10 @@ LICENSE = "OFL-1.1" LIC_FILES_CHKSUM = "file://LICENSE;md5=f96db970a9a46c5369142b99f530366b" PE = "1" -inherit allarch fontcache +# The fonts are arch independent, but fontcache is not! +# Do not inherit allarch. +# +inherit fontcache FONT_PACKAGES = "${PN}"
Signature · 1 line
2.7.4
Quoted 2 lines · Joe Slater
The fontcache class performs post-installation cache updating and needs target architecture information.
Can you expand a bit on this? Do you mean that the postinstalls written into the packages are arch specific? Can we stop the scripts being arch specific?
Cheers,
Richard
A number of postinstall's run target binaries, whether on the host or target. This means they invoke qemu on the host and try to tell it where bits are. I think it might not be necessary to pass explicit information about library locations to qemu, but that is the way it is done, and that information is arch dependent. It might well be the case that "confusion" occurs only when multilib is enabled, but the point is that it does happen.
I think it used to be the case that an attempt was made to run native versions of target tools during postinstall, but that seems to have been abandoned in favor of using qemu. This means that if there is no qemu support, postinstall is deferred to first boot. This is no problem except for read-only fs's, but they have other problems anyway.
Joe
-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Thursday, December 21, 2017 2:28 PM
To: Slater, Joseph; [email protected]
Subject: Re: [OE-core] [oe-core][PATCH 1/1] liberation-fonts: do not inherit allarch
Quoted 2 lines · Joe Slater
The fontcache class performs post-installation cache updating and needs target architecture information.
Can you expand a bit on this? Do you mean that the postinstalls written into the packages are arch specific? Can we stop the scripts being arch specific?
Cheers,
Richard
Quoted 7 lines · Joseph
A number of postinstall's run target binaries, whether on the host or target. This means they invoke qemu on the host and try to tell it where bits are. I think it might not be necessary to pass explicit information about library locations to qemu, but that is the way it is done, and that information is arch dependent. It might well be the case that "confusion" occurs only when multilib is enabled, but the point is that it does happen.
I think Ross had a different patch to deal with the multilib-qemu libray confusion, so this might not yet be necessary.
Also, if this needs to be fixed, you need to fix it everywhere - cantarell-fonts, adwaita-icon-theme, etc. etc.
Alex
I tried the patch to the allarch class and the problem does away. Joe
________________________________________
From: Alexander Kanavin [[email protected]]
Sent: Friday, December 22, 2017 12:34 AM
To: Slater, Joseph; Richard Purdie; [email protected]; BURTON, ROSS
Subject: Re: [OE-core] [oe-core][PATCH 1/1] liberation-fonts: do not inherit allarch
Quoted 7 lines · Joseph
A number of postinstall's run target binaries, whether on the host or target. This means they invoke qemu on the host and try to tell it where bits are. I think it might not be necessary to pass explicit information about library locations to qemu, but that is the way it is done, and that information is arch dependent. It might well be the case that "confusion" occurs only when multilib is enabled, but the point is that it does happen.
I think Ross had a different patch to deal with the multilib-qemu libray confusion, so this might not yet be necessary.
Also, if this needs to be fixed, you need to fix it everywhere - cantarell-fonts, adwaita-icon-theme, etc. etc.
Alex