coreutils: stdbuf: fix missing libstdbuf.so 4493/head
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 19 Jun 2017 01:47:00 +0000 (09:47 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 19 Jun 2017 04:03:23 +0000 (12:03 +0800)
Fixes #1674

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
utils/coreutils/Makefile

index 0d52b60ea4c1bab51a5bcaf280c54858404deff4..3fbc75e09f1ba52e26caba7fd7eb4b48c9432f93 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=coreutils
 PKG_VERSION:=8.23
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/coreutils
@@ -43,6 +43,8 @@ DEPENDS_ls = +libacl +libcap
 DEPENDS_mv = +libacl
 DEPENDS_vdir = +libacl +libcap
 
+FILES_stdbuf := usr/lib/coreutils/libstdbuf.so
+
 define Package/coreutils/Default
   SECTION:=utils
   CATEGORY:=Utilities
@@ -105,6 +107,10 @@ define BuildPlugin
   define Package/$(1)/install
        $(INSTALL_DIR) $$(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $$(1)/usr/bin/
+       $(foreach f,$(FILES_$(2)),
+               $(INSTALL_DIR) $$(1)/$(dir $(f))
+               $(INSTALL_BIN) $(PKG_INSTALL_DIR)/$(f) $$(1)/$(f)
+       )
   endef
 
   $$(eval $$(call BuildPackage,$(1)))