[Buildroot] [PATCH 2/2] package/file: add bzip2 optional dependency

Fabrice Fontaine fontaine.fabrice at gmail.com
Fri Jan 31 18:05:44 UTC 2020


bzip2 is an optional dependency since version 5.38 and
https://github.com/file/file/commit/b259a07ea95827f565faa20f0316e5b2704064f7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/file/file.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/file/file.mk b/package/file/file.mk
index 8d0968e6b2..ffa8b8b905 100644
--- a/package/file/file.mk
+++ b/package/file/file.mk
@@ -14,6 +14,13 @@ FILE_LICENSE = BSD-2-Clause, BSD-4-Clause (one file), BSD-3-Clause (one file)
 FILE_LICENSE_FILES = COPYING src/mygetopt.h src/vasprintf.c
 HOST_FILE_CONF_OPTS = --disable-libseccomp
 
+ifeq ($(BR2_PACKAGE_BZIP2),y)
+FILE_CONF_OPTS += --enable-bzlib
+FILE_DEPENDENCIES += bzip2
+else
+FILE_CONF_OPTS += --disable-bzlib
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
 FILE_CONF_OPTS += --enable-libseccomp
 FILE_DEPENDENCIES += libseccomp
-- 
2.24.1



More information about the buildroot mailing list