package/file: zlib is optional, not mandatory
PATCH 1/2 package/file: zlib is optional, not mandatory
zlib is optional since version 4.22 and
https://github.com/file/file/commit/b950f1f426f8855e69d6f3dcc32067e931e015b7
and --enable-zlib has been fixed since version 5.37 and
https://github.com/file/file/commit/8c6dcd7ef690e90a3e897e8f886513750ed2c04d
--- package/file/Config.in | 1 - package/file/file.mk | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-)
package/file/Config.in +0 -1
@@ -1,6 +1,5 @@ config BR2_PACKAGE_FILE bool "file" - select BR2_PACKAGE_ZLIB help Program to identify a file's format by scanning binary data for known patterns.
package/file/file.mk +8 -1
@@ -6,7 +6,7 @@ FILE_VERSION = 5.38 FILE_SITE = ftp://ftp.astron.com/pub/file -FILE_DEPENDENCIES = host-file zlib +FILE_DEPENDENCIES = host-file HOST_FILE_DEPENDENCIES = host-zlib FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' FILE_INSTALL_STAGING = YES
@@ -37,5 +37,12 @@ else FILE_CONF_OPTS += --disable-xzlib endif +ifeq ($(BR2_PACKAGE_ZLIB),y) +FILE_CONF_OPTS += --enable-zlib +FILE_DEPENDENCIES += zlib +else +FILE_CONF_OPTS += --disable-zlib +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))
Signature · 1 line
2.24.1
PATCH 2/2 package/file: drop host-file
file does not need a dependency on host-file and as host-file was only used by file, drop host-file altogether
--- package/file/file.mk | 4 ---- 1 file changed, 4 deletions(-)
package/file/file.mk +0 -4
@@ -6,15 +6,12 @@ FILE_VERSION = 5.38 FILE_SITE = ftp://ftp.astron.com/pub/file -FILE_DEPENDENCIES = host-file -HOST_FILE_DEPENDENCIES = host-zlib FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' FILE_INSTALL_STAGING = YES 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 # We're patching configure.ac FILE_AUTORECONF = YES -HOST_FILE_CONF_OPTS = --disable-libseccomp ifeq ($(BR2_PACKAGE_BZIP2),y) FILE_CONF_OPTS += --enable-bzlib
@@ -45,4 +42,3 @@ FILE_CONF_OPTS += --disable-zlib endif $(eval $(autotools-package)) -$(eval $(host-autotools-package))
Signature · 1 line
2.24.1
PATCH 2/2 package/file: drop host-file
Fabrice, All,
On 2020-02-01 12:04 +0100, Fabrice Fontaine spake thusly:
Quoted 4 lines
file does not need a dependency on host-file and as host-file was only used by file, drop host-file altogether
Signed-off-by Fabrice Fontaine <[email protected]>
That dependendcy was dded in 2005, with a message stating (roughly) that we need to have a file version on the host that is not older than the version on the target.
And indeed, it does not build on my autobuilder, with this error message (yes, file is nice enough to not fail miserably and provide a useful message):
Making all in magic
Cannot use the installed version of file (5.14) to cross-compile file 5.38
Please install file 5.38 locally first
So, I'll reject this patch.
Regards,
Yann E. MORIN.
Quoted 36 lines
--- package/file/file.mk | 4 ---- 1 file changed, 4 deletions(-)package/file/file.mk +0
-4@@ -6,15 +6,12 @@ FILE_VERSION = 5.38 FILE_SITE = ftp://ftp.astron.com/pub/file -FILE_DEPENDENCIES = host-file -HOST_FILE_DEPENDENCIES = host-zlib FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' FILE_INSTALL_STAGING = YES 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 # We're patching configure.ac FILE_AUTORECONF = YES -HOST_FILE_CONF_OPTS = --disable-libseccomp ifeq ($(BR2_PACKAGE_BZIP2),y) FILE_CONF_OPTS += --enable-bzlib@@ -45,4 +42,3 @@ FILE_CONF_OPTS += --disable-zlib endif $(eval $(autotools-package)) -$(eval $(host-autotools-package))Signature · 6 lines
2.24.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/2 package/file: zlib is optional, not mandatory
In reply to Fabrice FontaineFabrice, All,
On 2020-02-01 12:04 +0100, Fabrice Fontaine spake thusly:
Quoted 6 lines
zlib is optional since version 4.22 and
https://github.com/file/file/commit/b950f1f426f8855e69d6f3dcc32067e931e015b7
and --enable-zlib has been fixed since version 5.37 and
https://github.com/file/file/commit/8c6dcd7ef690e90a3e897e8f886513750ed2c04dSigned-off-by Fabrice Fontaine <[email protected]>
Now that I've found a power plug and my battery can charge again: applied to master, thanks. ;-)
Regards,
Yann E. MORIN.
Quoted 49 lines
--- package/file/Config.in | 1 - package/file/file.mk | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-)package/file/Config.in +0
-1@@ -1,6 +1,5 @@ config BR2_PACKAGE_FILE bool "file" - select BR2_PACKAGE_ZLIB help Program to identify a file's format by scanning binary data for known patterns.package/file/file.mk +8
-1@@ -6,7 +6,7 @@ FILE_VERSION = 5.38 FILE_SITE = ftp://ftp.astron.com/pub/file -FILE_DEPENDENCIES = host-file zlib +FILE_DEPENDENCIES = host-file HOST_FILE_DEPENDENCIES = host-zlib FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' FILE_INSTALL_STAGING = YES@@ -37,5 +37,12 @@ else FILE_CONF_OPTS += --disable-xzlib endif +ifeq ($(BR2_PACKAGE_ZLIB),y) +FILE_CONF_OPTS += --enable-zlib +FILE_DEPENDENCIES += zlib +else +FILE_CONF_OPTS += --disable-zlib +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))Signature · 6 lines
2.24.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'