Merge pull request #16326 from cotequeiroz/install_host
perlmod.mk, unixodbc: use 'install' instead of 'cp' to install host binaries to avoid "Text file busy" error.
This commit is contained in:
commit
51f9a12a54
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=unixodbc
|
||||
PKG_VERSION:=2.3.9
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=unixODBC-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.unixodbc.org
|
||||
|
@ -152,7 +152,7 @@ endef
|
|||
|
||||
define Host/Install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
|
||||
$(CP) $(HOST_BUILD_DIR)/exe/odbc_config $(STAGING_DIR_HOST)/bin
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/exe/odbc_config $(STAGING_DIR_HOST)/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,unixodbc))
|
||||
|
|
Loading…
Reference in a new issue