summaryrefslogtreecommitdiff
path: root/lang/python/python3/files/python3-package-lib2to3.mk
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2021-08-16 11:07:35 -0300
committerEneas U de Queiroz <cotequeiroz@gmail.com>2021-08-17 12:03:34 -0300
commit1e18c4324fd1fb43764057fb8f4e9c1ea4a17553 (patch)
tree2f89f20ff60f00a5bf3ec4909ac6b33335d5c7a6 /lang/python/python3/files/python3-package-lib2to3.mk
parent5fca3713f1fd93320cbba66b4249350077c80ec4 (diff)
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>
Diffstat (limited to 'lang/python/python3/files/python3-package-lib2to3.mk')
0 files changed, 0 insertions, 0 deletions