perl: Run make depend to fix build race condition
authorAndreas Gnau <andreas.gnau@iopsys.eu>
Tue, 5 Mar 2024 18:30:09 +0000 (19:30 +0100)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Sun, 28 Jul 2024 21:53:19 +0000 (15:53 -0600)
commit68c0a57f57f70aea324c4585c0499d7c4ea0416c
tree88e810ac6d237a41734f4ab38d0b5d0335cb1c66
parenta237a81084e673cca3a1f6f78af5c7054dc30395
perl: Run make depend to fix build race condition

Run make depend before building perl. This fixes parallel build failures
on machines with a high number of cores.

Example error 1:

    /bin/ln -s /build/staging_dir/hostpkg/usr/bin/generate_uudmap generate_uidmap
    make[5]: ./generate_uudmap: Command not found
    make[5]: *** [Makefile:321: bitcount.h] Error 127

Example error 2:

    /bin/ln -s /build/staging_dir/hostpkg/usr/bin/generate_uudmap generate_udmap
    ./generate_uudmap uudmap.h bitcount.h mg_data.h
    /bin/ln: failed to create symbolic link 'generate_uudmap': File exists
    make[5]: *** [Makefile:325: generate_uudmap] Error 1

Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996953
Link: https://salsa.debian.org/perl-team/interpreter/perl/-/commit/366bc98c916a3455f15c532aa33a5636d2fe2803
Closes: https://github.com/openwrt/packages/issues/8238
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
lang/perl/Makefile