[openwrt/openwrt] util-linux: Fix build when libmagic is present

LEDE Commits lede-commits at lists.infradead.org
Sun Sep 6 17:41:09 EDT 2020


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/83e946d7183f6123fd8da492652a6aad1fb414fa

commit 83e946d7183f6123fd8da492652a6aad1fb414fa
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Tue Sep 1 15:37:03 2020 -0700

    util-linux: Fix build when libmagic is present
    
    When the libmagic from the file package in the packages feed was also
    compiled and provided its libmagic.so file, util-linux tried to link
    against it. Avoid this by explicitly disable libmagic support.
    
    This fixes the following build error:
    Package more is missing dependencies for the following libraries:
    libmagic.so.1
    
    Fixes: 36d9ed360a34 ("util-linux: update to 2.36")
    Acked-by: Sebastian Kemper <sebastian_ml at gmx.net>
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    [Add commit description]
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/utils/util-linux/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile
index 0fc9819c58..05ceaa413e 100644
--- a/package/utils/util-linux/Makefile
+++ b/package/utils/util-linux/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=util-linux
 PKG_VERSION:=2.36
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.36
@@ -526,6 +526,7 @@ CONFIGURE_ARGS += \
 	--without-python		\
 	--without-udev			\
 	--without-readline		\
+	--without-libmagic		\
 	--with-ncursesw
 
 TARGET_CFLAGS += $(FPIC) -std=gnu99



More information about the lede-commits mailing list