[Buildroot] [PATCH 1/1] package/fontconfig: fix per-package build with NLS

Fabrice Fontaine fontaine.fabrice at gmail.com
Sun Aug 15 07:38:31 UTC 2021


Le dim. 15 août 2021 à 09:25, Thomas Petazzoni
<thomas.petazzoni at bootlin.com> a écrit :
>
> On Fri, 13 Aug 2021 23:16:48 +0200
> Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:
>
> > Add TARGET_NLS_DEPENDENCIES and host-gettext dependency to avoid the
> > following build failure with host-cairo raised because fontconfig
> > installs its ITS files in the wrong directory (i.e. outside of
> > gettext-tiny symlink):
> >
> > mkdir -p /tmp/instance-0/output-1/per-package/host-cairo/host
> > rsync -a --link-dest=/tmp/instance-0/output-1/per-package/host-fontconfig/host/ /tmp/instance-0/output-1/per-package/host-fontconfig/host/ /tmp/instance-0/output-1/per-package/host-cairo/host
> > rsync -a --link-dest=/tmp/instance-0/output-1/per-package/host-freetype/host/ /tmp/instance-0/output-1/per-package/host-freetype/host/ /tmp/instance-0/output-1/per-package/host-cairo/host
> > rsync -a --link-dest=/tmp/instance-0/output-1/per-package/host-libglib2/host/ /tmp/instance-0/output-1/per-package/host-libglib2/host/ /tmp/instance-0/output-1/per-package/host-cairo/host
> > cannot delete non-empty directory: share/gettext
> > could not make way for new symlink: share/gettext
> >
> > Fixes:
> >  - http://autobuild.buildroot.org/results/00e29958cecfffa4e994ab549637117dd8f55c30
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> > ---
> >  package/fontconfig/fontconfig.mk | 6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)
>
> Do you have some more details as to why this is specific to per-package
> builds?
The build failure is only raised with per-package build because
per-package-rsync function in pkg-utils.mk is not able to rsync
share/gettext as gettext is a "standard" directory for fontconfig and
a symlink for other packages (e.g. libglib2).
However, even if we don't have build failures, the missing
dependencies could probably raise unexpected runtime issues with
"normal" builds.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Best Regards,

Fabrice


More information about the buildroot mailing list