Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] Add dependency on bash to gzip for runtime
@ 2015-09-17 14:46 Jonathan Ben-Avraham
  2015-09-17 14:46 ` [Buildroot] [PATCH 2/2] Add dependency on gzip to lxc " Jonathan Ben-Avraham
  2015-09-17 15:01 ` [Buildroot] [PATCH 1/2] Add dependency on bash to gzip " Baruch Siach
  0 siblings, 2 replies; 17+ messages in thread
From: Jonathan Ben-Avraham @ 2015-09-17 14:46 UTC (permalink / raw)
  To: buildroot

From: Jonathan Ben Avraham <yba@tkos.co.il>

The GNU gzip package provides eleven executable files, all but one of
which are bash shell scripts. If we allow inclusion of gzip without
bash, then on executing commands such as lxc-checkconfig that actually
use these shell scripts, you will get errors like 'zgrep: not found',
even though the zgrep executable is in PATH.

This patch also sharpens up the help text and eliminates the claim to
provide gzcat.

Signed-off-by: Jonathan Ben Avraham <yba@tkos.co.il>
---
 package/gzip/Config.in |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/package/gzip/Config.in b/package/gzip/Config.in
index a251425..9e2dc0d 100644
--- a/package/gzip/Config.in
+++ b/package/gzip/Config.in
@@ -1,11 +1,14 @@
 config BR2_PACKAGE_GZIP
 	bool "gzip"
-	depends on BR2_USE_WCHAR
+	depends on BR2_USE_WCHAR && BR2_PACKAGE_BASH
 	help
-	  Standard GNU compressor. Provides things like gzip,
-	  gunzip, gzcat, etc...
+	  The GNU implementation of gzip (http://www.gzip.org).
+	  Provides: gunzip, gzexe, gzip, zcat, zcmp, zdiff, zforce,
+	  zgrep, zless, zmore, and znew. All of the executables except
+	  gzip are Bourne-Again shell scripts. Busybox provides a gzip
+	  applet.
 
 	  http://www.gnu.org/software/gzip/gzip.html
 
-comment "gzip needs a toolchain w/ wchar"
-	depends on !BR2_USE_WCHAR
+comment "gzip needs bash and a toolchain w/ wchar"
+	depends on !BR2_USE_WCHAR || !BR2_PACKAGE_BASH
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-09-20 11:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-17 14:46 [Buildroot] [PATCH 1/2] Add dependency on bash to gzip for runtime Jonathan Ben-Avraham
2015-09-17 14:46 ` [Buildroot] [PATCH 2/2] Add dependency on gzip to lxc " Jonathan Ben-Avraham
2015-09-17 15:03   ` Baruch Siach
2015-09-17 15:20     ` Jonathan Ben Avraham
2015-09-17 17:16       ` Thomas Petazzoni
2015-09-17 15:01 ` [Buildroot] [PATCH 1/2] Add dependency on bash to gzip " Baruch Siach
2015-09-17 15:16   ` Jonathan Ben Avraham
2015-09-17 16:20     ` Baruch Siach
2015-09-17 16:33       ` Jonathan Ben Avraham
2015-09-17 17:23         ` Thomas Petazzoni
2015-09-17 19:04           ` Baruch Siach
2015-09-17 20:15             ` Thomas Petazzoni
2015-09-19 20:36               ` Jonathan Ben Avraham
2015-09-20  8:22                 ` Thomas Petazzoni
2015-09-20 10:39                   ` Arnout Vandecappelle
2015-09-20 11:16                     ` Thomas Petazzoni
2015-09-20 11:35                       ` Baruch Siach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox