]> code.ossystems Code Review - openembedded-core.git/commit
perl: Avoid race continually rebuilding miniperl
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 26 Jul 2020 14:02:20 +0000 (15:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jul 2020 09:37:54 +0000 (10:37 +0100)
commit95947fa630e1fecc599f975d732eb47dd4b748ff
treea676f16d552bc4e46dafc0c86b20a02a9536bc31
parentbe02e8dbfb0d1decce125322f9f1e11a649756c0
perl: Avoid race continually rebuilding miniperl

When we run "make install" we notice miniperl rebuilding multiple times.
Usually this is harmless however sometimes race issues occur such as
miniperl not being executable.

The issue is that crosspatch is a phony target so it always rebuilds.
Adding this as a dependency of miniperl means miniperl always rebuilds
too.

Avoid this by injecting a direct dependency avoiding the phony target.
miniperl is then only rebuilt when its input changes as desired.

Patch submitted to upstream perl-cross.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/files/perl-cross-makefile.patch [new file with mode: 0644]
meta/recipes-devtools/perl/perl_5.32.0.bb