bluelog: fix build on macos
authorSergey V. Lobanov <sergey@lobanov.in>
Tue, 1 Feb 2022 21:38:57 +0000 (00:38 +0300)
committerRosen Penev <rosenp@gmail.com>
Wed, 2 Feb 2022 00:16:24 +0000 (16:16 -0800)
bluelog can not be compiled on macos due to Apple zcat is not
compatible with GNU zcat.

This patch replaces `zcat` with `gzip -dc`. `gzip -dc` has the
same behavior on GNU and Apple environments.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
utils/bluelog/Makefile

index 3c60d6108d60d4e30a9fa5d4ca3a1f941411a749..35a0e2bf6c8fee276befb5bc2388296908847e6b 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bluelog
 PKG_VERSION:=1.1.2
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=Bluelog-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/MS3FGX/Bluelog/tar.gz/$(PKG_VERSION)?
@@ -78,7 +78,7 @@ MAKE_FLAGS += \
 define Build/Prepare
        $(eval $(call Download,oui.txt))
        $(Build/Prepare/Default)
-       zcat $(DL_DIR)/$(OUI_SOURCE) > $(PKG_BUILD_DIR)/oui.tmp
+       gzip -dc $(DL_DIR)/$(OUI_SOURCE) > $(PKG_BUILD_DIR)/oui.tmp
 endef
 
 define Package/bluelog/install