Browse Source

findutils: Fix conflict with busybox find/xargs

Use the new ALTERNATIVES mechanism to fix installation conflict
against busybox find and xargs.  Also add myself back as maintainer
since folks seem to be asking me anyway.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
lilik-openwrt-22.03
Daniel F. Dickinson 6 years ago
parent
commit
891ce6fca3
1 changed files with 15 additions and 12 deletions
  1. +15
    -12
      utils/findutils/Makefile

+ 15
- 12
utils/findutils/Makefile View File

@ -8,13 +8,14 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=findutils PKG_NAME:=findutils
PKG_VERSION:=4.6.0 PKG_VERSION:=4.6.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=GPL-3.0+ PKG_LICENSE:=GPL-3.0+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/$(PKG_NAME) PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
PKG_HASH:=ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d PKG_HASH:=ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d
PKG_MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -47,16 +48,18 @@ endef
define Package/findutils-find define Package/findutils-find
$(call Package/findutils/Default) $(call Package/findutils/Default)
TITLE+= - find utility TITLE+= - find utility
ALTERNATIVES:=300:/usr/bin/find:/usr/libexec/findutils-find
endef endef
define Package/findutils-locate
define Package/findutils-xargs
$(call Package/findutils/Default) $(call Package/findutils/Default)
TITLE+= - locate and updatedb utility
TITLE+= - xargs utility
ALTERNATIVES:=300:/usr/bin/xargs:/usr/libexec/findutils-xargs
endef endef
define Package/findutils-xargs
define Package/findutils-locate
$(call Package/findutils/Default) $(call Package/findutils/Default)
TITLE+= - xargs utility
TITLE+= - locate and updatedb utility
endef endef
CONFIGURE_ARGS += --localstatedir=/srv/var CONFIGURE_ARGS += --localstatedir=/srv/var
@ -67,8 +70,13 @@ define Package/findutils/install
endef endef
define Package/findutils-find/install define Package/findutils-find/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/libexec/findutils-find
endef
define Package/findutils-xargs/install
$(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/libexec/findutils-xargs
endef endef
define Package/findutils-locate/install define Package/findutils-locate/install
@ -78,11 +86,6 @@ define Package/findutils-locate/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/ $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
endef endef
define Package/findutils-xargs/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/bin/
endef
$(eval $(call BuildPackage,findutils)) $(eval $(call BuildPackage,findutils))
$(eval $(call BuildPackage,findutils-find)) $(eval $(call BuildPackage,findutils-find))
$(eval $(call BuildPackage,findutils-locate)) $(eval $(call BuildPackage,findutils-locate))


Loading…
Cancel
Save