From: Fabrice Fontaine Date: Fri, 31 Jan 2020 19:05:44 +0100 Subject: [Buildroot] [PATCH 2/2] package/file: add bzip2 optional dependency In-Reply-To: <20200131180544.1135547-1-fontaine.fabrice@gmail.com> References: <20200131180544.1135547-1-fontaine.fabrice@gmail.com> Message-ID: <20200131180544.1135547-2-fontaine.fabrice@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net bzip2 is an optional dependency since version 5.38 and https://github.com/file/file/commit/b259a07ea95827f565faa20f0316e5b2704064f7 Signed-off-by: Fabrice Fontaine --- 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