openwrt-packages/lang/perl
Eneas U de Queiroz f41827d277 perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.

Sometimes, two packages will try to relink the static host perl binary
at the same time.  Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.

This will lead to errors when a package will not be able to find a
module that was supposed to be installed.

To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.

This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures.  If timing is right, a package will fail with a "permission
denied" error.

So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 1e18c4324f)
2021-10-08 09:47:46 -07:00
..
files perl: define $sysroot for extensions 2020-02-08 23:08:58 -08:00
patches perl: fix build errors on macOS 2021-02-09 10:45:30 +02:00
Config.in perlmod: global knob to disable comment stripping modules 2017-01-11 14:31:09 -07:00
Makefile perlbase-data: Add dependency on perlbase-scalar 2021-09-02 13:46:47 -07:00
README.patches perl: Reorganize patches 2015-09-25 11:50:52 +02:00
perlbase.mk perlbase-data: Add dependency on perlbase-scalar 2021-09-02 13:46:47 -07:00
perlmod.mk perl: perlmod.mk: use flock when hostpkg/perl used 2021-10-08 09:47:46 -07:00
perlver.mk perl: update to 5.28.1 2018-12-03 15:58:49 -07:00

README.patches

The patches in this package are loosely sorted into the following categories:

0xx - Bugfixes
1xx - Cross-compile fixes
3xx - Workarounds
7xx - Testsuite fixes

Feel free to add another one if your new patch doesn't seem to fit into an
existing category.