Skip to contentSkip to conversation

package/file: add xz optional dependency

PATCH New Fabrice Fontaine 2 participants 3 messages Jan 31, 2020 – Feb 1, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/file: add xz optional dependency

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

---
 package/file/file.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/file/file.mk +7 -0
index 3ae7c85976..8d0968e6b2 100644
@@ -21,5 +21,12 @@ else
 FILE_CONF_OPTS += --disable-libseccomp
 endif
 
+ifeq ($(BR2_PACKAGE_XZ),y)
+FILE_CONF_OPTS += --enable-xzlib
+FILE_DEPENDENCIES += xz
+else
+FILE_CONF_OPTS += --disable-xzlib
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
2.24.1
#1 lore raw

PATCH 2/2 package/file: add bzip2 optional dependency

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

---
 package/file/file.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/file/file.mk +7 -0
index 8d0968e6b2..ffa8b8b905 100644
@@ -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
Signature · 1 line
2.24.1
#2 lore raw

PATCH 1/2 package/file: add xz optional dependency

In reply to Fabrice Fontaine
Quoted 7 lines · On Fri, 31 Jan 2020 19:05:43 +0100 Fabrice Fontaine…

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

---
 package/file/file.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Both applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com