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 <cotequeiroz@gmail.com>
This commit is contained in:
parent
0e4e08ff24
commit
19c7496648
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ PERLMOD_TESTSDIR:=/usr/share/perl/perlmod-tests
|
||||||
define perlmod/host/relink
|
define perlmod/host/relink
|
||||||
rm -f $(1)/Makefile.aperl
|
rm -f $(1)/Makefile.aperl
|
||||||
$(MAKE) -C $(1) perl
|
$(MAKE) -C $(1) perl
|
||||||
$(CP) $(1)/perl $(PERL_CMD)
|
$(INSTALL_BIN) $(1)/perl $(PERL_CMD)
|
||||||
$(CP) $(1)/perl $(STAGING_DIR_HOSTPKG)/usr/bin/perl
|
$(INSTALL_BIN) $(1)/perl $(STAGING_DIR_HOSTPKG)/usr/bin/perl
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define perlmod/host/Configure
|
define perlmod/host/Configure
|
||||||
|
|
Loading…
Reference in a new issue