Ticket #11076: openwrt-coreutils-stdbuf.patch

File openwrt-coreutils-stdbuf.patch, 965 bytes (added by ambrop7@…, 4 years ago)
  • utils/coreutils/Makefile

     
    88include $(TOPDIR)/rules.mk 
    99 
    1010PKG_NAME:=coreutils 
    11 PKG_VERSION:=8.8 
     11PKG_VERSION:=8.15 
    1212PKG_RELEASE:=1 
    1313 
    14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 
    1515PKG_SOURCE_URL:=@GNU/coreutils 
    16 PKG_MD5SUM:=bad596d9654e299eedea0eaf93f178fa 
     16PKG_MD5SUM:=094909fafa86110140b32e4948941545 
    1717PKG_BUILD_DEPENDS:=libpthread 
    1818 
    1919include $(INCLUDE_DIR)/package.mk 
     
    9292  define Package/$(1)/install 
    9393        $(INSTALL_DIR) $$(1)/usr/bin 
    9494        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $$(1)/usr/bin/ 
     95 
     96    ifeq ($(2),stdbuf) 
     97        $(INSTALL_DIR) $$(1)/usr/lib/coreutils 
     98        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/coreutils/libstdbuf.so $$(1)/usr/lib/coreutils/ 
     99    endif 
    95100  endef 
    96101 
    97102  $$(eval $$(call BuildPackage,$(1)))