From: Eneas U de Queiroz Date: Wed, 11 Aug 2021 13:57:23 +0000 (-0300) Subject: perl: perlmod.mk: use 'install' for host binaries X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b3c416b2d8784c375d9b3879d0647d842acf5caf;p=feed%2Fpackages.git perl: perlmod.mk: use 'install' for host binaries When installing a host perl module, the host perl binary in the staging dir is replaced by using 'cp'. However, if the binary is running in a parallel job, cp will fail with a text file busy error. Use $(INSTALL_BIN), which unliks the file first to avoid the error. Signed-off-by: Eneas U de Queiroz (cherry picked from commit 19c7496648cb25500ca7007a7c1578a426c23a09) --- diff --git a/lang/perl/perlmod.mk b/lang/perl/perlmod.mk index 8a95099155..2ce3ceab03 100644 --- a/lang/perl/perlmod.mk +++ b/lang/perl/perlmod.mk @@ -35,8 +35,8 @@ PERLMOD_TESTSDIR:=/usr/share/perl/perlmod-tests define perlmod/host/relink rm -f $(1)/Makefile.aperl $(MAKE) -C $(1) perl - $(CP) $(1)/perl $(PERL_CMD) - $(CP) $(1)/perl $(STAGING_DIR_HOSTPKG)/usr/bin/perl + $(INSTALL_BIN) $(1)/perl $(PERL_CMD) + $(INSTALL_BIN) $(1)/perl $(STAGING_DIR_HOSTPKG)/usr/bin/perl endef define perlmod/host/Configure