]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
libc-package.bbclass: Split locale hard link processing into two parts
authorJason Wessel <jason.wessel@windriver.com>
Fri, 16 Aug 2019 21:06:05 +0000 (14:06 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Aug 2019 14:29:02 +0000 (15:29 +0100)
commit8102c55bc1851233d3c5632e47e0adfddc4b23f8
tree46f6d89aac60f3d794763366cdccef6c2a09feb2
parentfb20d734612d403b3e41a1a781714fd5f63f7e35
libc-package.bbclass: Split locale hard link processing into two parts

The locale-processing in cross-localedef was proven to be unsafe to
run in parallel due to the way it tried to make hard links to files
that could disappear before the link operation was completed.

To avoid corruption of the pseudo database, and create a
deterministically generated link tree, the operation of the locale
generation and the hard link resolution have been split into two
separate parts.  A side effect of this change is that the do_package()
rule for glibc-locale will be slightly smaller because some of the
hard links were missed in the past, particularly if you had a lot of
cpus free to perform the work.

Before the patch:
% du -sk locale-tree
312524  locale-tree

With the patch:
% du -sk locale-tree
290772 locale-tree

A number of comparisons were performed such as diffing the output,
cross checking the link references using tar's listing output, and
comparing against the results with out a parallel build to ensure the
locale-tree is correct in its final form.

[YOCTO #11299]
[YOCTO #12434]

(From OE-Core rev: 93d935927dd0ec0fa6f0a80a71236a7b00a5d1a4)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/libc-package.bbclass