linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fix btrfs-progs build
@ 2012-10-08 14:17 Christian Hesse
  2012-10-08 14:29 ` Chris Mason
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Hesse @ 2012-10-08 14:17 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

Hello everybody,

man pages for btrfs-progs are compressed by gzip by default. In Makefile the
variable GZIP is use, this evaluates to 'gzip gzip' on my system. From man
gzip:

> The environment variable GZIP can hold a set of default options for gzip.
> These options are interpreted first and can be overwritten by explicit
> command line parameters.

So using any other variable name fixes this. Patch is attached.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}

[-- Attachment #2: btrfs-progs.diff --]
[-- Type: text/x-patch, Size: 1114 bytes --]

diff --git a/man/Makefile b/man/Makefile
index 4a90b75..f7b57f7 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -1,4 +1,4 @@
-GZIP=gzip
+GZIPCMD=gzip
 INSTALL= install
 
 prefix ?= /usr/local
@@ -12,22 +12,22 @@ MANPAGES = mkfs.btrfs.8.gz btrfsctl.8.gz btrfsck.8.gz btrfs-image.8.gz \
 all: $(MANPAGES)
 
 mkfs.btrfs.8.gz: mkfs.btrfs.8.in
-	$(GZIP) -n -c mkfs.btrfs.8.in > mkfs.btrfs.8.gz
+	$(GZIPCMD) -n -c mkfs.btrfs.8.in > mkfs.btrfs.8.gz
 
 btrfs.8.gz: btrfs.8.in
-	$(GZIP) -n -c btrfs.8.in > btrfs.8.gz
+	$(GZIPCMD) -n -c btrfs.8.in > btrfs.8.gz
 
 btrfsctl.8.gz: btrfsctl.8.in
-	$(GZIP) -n -c btrfsctl.8.in > btrfsctl.8.gz
+	$(GZIPCMD) -n -c btrfsctl.8.in > btrfsctl.8.gz
 
 btrfsck.8.gz: btrfsck.8.in
-	$(GZIP) -n -c btrfsck.8.in > btrfsck.8.gz
+	$(GZIPCMD) -n -c btrfsck.8.in > btrfsck.8.gz
 
 btrfs-image.8.gz: btrfs-image.8.in
-	$(GZIP) -n -c btrfs-image.8.in > btrfs-image.8.gz
+	$(GZIPCMD) -n -c btrfs-image.8.in > btrfs-image.8.gz
 
 btrfs-show.8.gz: btrfs-show.8.in
-	$(GZIP) -n -c btrfs-show.8.in > btrfs-show.8.gz
+	$(GZIPCMD) -n -c btrfs-show.8.in > btrfs-show.8.gz
 
 clean :
 	rm -f $(MANPAGES)

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

* Re: fix btrfs-progs build
  2012-10-08 14:17 fix btrfs-progs build Christian Hesse
@ 2012-10-08 14:29 ` Chris Mason
  2012-10-08 14:30   ` Christian Hesse
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Mason @ 2012-10-08 14:29 UTC (permalink / raw)
  To: Christian Hesse; +Cc: linux-btrfs@vger.kernel.org

On Mon, Oct 08, 2012 at 08:17:13AM -0600, Christian Hesse wrote:
> Hello everybody,
> 
> man pages for btrfs-progs are compressed by gzip by default. In Makefile the
> variable GZIP is use, this evaluates to 'gzip gzip' on my system. From man
> gzip:
> 
> > The environment variable GZIP can hold a set of default options for gzip.
> > These options are interpreted first and can be overwritten by explicit
> > command line parameters.
> 
> So using any other variable name fixes this. Patch is attached.

Ok, which system is this?  Just curious, I'll pull in the patch.

-chris

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

* Re: fix btrfs-progs build
  2012-10-08 14:29 ` Chris Mason
@ 2012-10-08 14:30   ` Christian Hesse
  2012-10-08 14:33     ` Chris Mason
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Hesse @ 2012-10-08 14:30 UTC (permalink / raw)
  To: Chris Mason; +Cc: linux-btrfs@vger.kernel.org

Chris Mason <chris.mason@fusionio.com> on Mon, 2012/10/08 10:29:
> On Mon, Oct 08, 2012 at 08:17:13AM -0600, Christian Hesse wrote:
> > Hello everybody,
> > 
> > man pages for btrfs-progs are compressed by gzip by default. In Makefile
> > the variable GZIP is use, this evaluates to 'gzip gzip' on my system.
> > From man gzip:
> > 
> > > The environment variable GZIP can hold a set of default options for
> > > gzip. These options are interpreted first and can be overwritten by
> > > explicit command line parameters.
> > 
> > So using any other variable name fixes this. Patch is attached.
> 
> Ok, which system is this?  Just curious, I'll pull in the patch.

This is Arch Linux with gzip 1.5-1.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}

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

* Re: fix btrfs-progs build
  2012-10-08 14:30   ` Christian Hesse
@ 2012-10-08 14:33     ` Chris Mason
  2012-10-08 14:45       ` Christian Hesse
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Mason @ 2012-10-08 14:33 UTC (permalink / raw)
  To: Christian Hesse; +Cc: Chris Mason, linux-btrfs@vger.kernel.org

On Mon, Oct 08, 2012 at 08:30:31AM -0600, Christian Hesse wrote:
> Chris Mason <chris.mason@fusionio.com> on Mon, 2012/10/08 10:29:
> > On Mon, Oct 08, 2012 at 08:17:13AM -0600, Christian Hesse wrote:
> > > Hello everybody,
> > > 
> > > man pages for btrfs-progs are compressed by gzip by default. In Makefile
> > > the variable GZIP is use, this evaluates to 'gzip gzip' on my system.
> > > From man gzip:
> > > 
> > > > The environment variable GZIP can hold a set of default options for
> > > > gzip. These options are interpreted first and can be overwritten by
> > > > explicit command line parameters.
> > > 
> > > So using any other variable name fixes this. Patch is attached.
> > 
> > Ok, which system is this?  Just curious, I'll pull in the patch.
> 
> This is Arch Linux with gzip 1.5-1.

Strange, I'm running running arch linux with gzip 1.5-1 and it builds.
I wonder if something else is expanding it.  I'll take the patch
regardless, there's no reason to add build problems when we don't need
to.

-chris


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

* Re: fix btrfs-progs build
  2012-10-08 14:33     ` Chris Mason
@ 2012-10-08 14:45       ` Christian Hesse
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Hesse @ 2012-10-08 14:45 UTC (permalink / raw)
  To: Chris Mason; +Cc: Chris Mason, linux-btrfs@vger.kernel.org

Chris Mason <chris.mason@fusionio.com> on Mon, 2012/10/08 10:33:
> On Mon, Oct 08, 2012 at 08:30:31AM -0600, Christian Hesse wrote:
> > Chris Mason <chris.mason@fusionio.com> on Mon, 2012/10/08 10:29:
> > > On Mon, Oct 08, 2012 at 08:17:13AM -0600, Christian Hesse wrote:
> > > > Hello everybody,
> > > > 
> > > > man pages for btrfs-progs are compressed by gzip by default. In
> > > > Makefile the variable GZIP is use, this evaluates to 'gzip gzip' on
> > > > my system. From man gzip:
> > > > 
> > > > > The environment variable GZIP can hold a set of default options for
> > > > > gzip. These options are interpreted first and can be overwritten by
> > > > > explicit command line parameters.
> > > > 
> > > > So using any other variable name fixes this. Patch is attached.
> > > 
> > > Ok, which system is this?  Just curious, I'll pull in the patch.
> > 
> > This is Arch Linux with gzip 1.5-1.
> 
> Strange, I'm running running arch linux with gzip 1.5-1 and it builds.
> I wonder if something else is expanding it.  I'll take the patch
> regardless, there's no reason to add build problems when we don't need
> to.

This happens if you have exported GZIP to your environment. So probably most
people are not effected.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}

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

end of thread, other threads:[~2012-10-08 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-08 14:17 fix btrfs-progs build Christian Hesse
2012-10-08 14:29 ` Chris Mason
2012-10-08 14:30   ` Christian Hesse
2012-10-08 14:33     ` Chris Mason
2012-10-08 14:45       ` Christian Hesse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).