All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: device-mapper development <dm-devel@redhat.com>,
	christophe.varoqui@opensvc.com
Cc: Christian Hesse <mail@eworm.de>
Subject: Re: [PATCH 1/1] fix build, replace GZIP with GZIPCMD
Date: Wed, 10 Sep 2014 10:24:04 +0200	[thread overview]
Message-ID: <54100AA4.5080008@redhat.com> (raw)
In-Reply-To: <1410251280-16898-1-git-send-email-mail@eworm.de>

Dne 9.9.2014 v 10:28 Christian Hesse napsal(a):
> Files are compressed by gzip. In Makefiles the variable GZIP is
> used, 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.
> ---
>   Makefile.inc             | 2 +-
>   kpartx/Makefile          | 2 +-
>   libmpathpersist/Makefile | 4 ++--
>   mpathpersist/Makefile    | 2 +-
>   multipathd/Makefile      | 2 +-
>   5 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/Makefile.inc b/Makefile.inc
> index 20ae23e..662b1a2 100644
> --- a/Makefile.inc
> +++ b/Makefile.inc
> @@ -42,7 +42,7 @@ libdir	    = $(prefix)/$(LIB)/multipath
>   unitdir     = $(prefix)/usr/lib/systemd/system
>   mpathpersistdir = $(TOPDIR)/libmpathpersist
>
> -GZIP        = gzip -9 -c
> +GZIPCMD        = gzip -9 -c
>   INSTALL_PROGRAM = install


This rather looks like a bug in your system you should fix locally.


>
>   ifndef RPM_OPT_FLAGS
> diff --git a/kpartx/Makefile b/kpartx/Makefile
> index 4ba38ba..d533c9e 100644
> --- a/kpartx/Makefile
> +++ b/kpartx/Makefile
> @@ -21,7 +21,7 @@ all: $(EXEC)
>
>   $(EXEC): $(OBJS)
>   	$(CC) $(OBJS) -o $(EXEC) $(LDFLAGS)
> -	$(GZIP) $(EXEC).8 > $(EXEC).8.gz
> +	$(GZIPCMD) $(EXEC).8 > $(EXEC).8.gz


Probably pastbin output of your  makefile processing here.
Together with your environmental vars.


> --- a/libmpathpersist/Makefile
> +++ b/libmpathpersist/Makefile
> @@ -22,8 +22,8 @@ $(LIBS):
>   	$(CC) -Wall -fPIC -c $(CFLAGS) *.c
>   	$(CC)  -shared $(LIBDEPS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS)
>   	ln -s $(LIBS) $(DEVLIB)
> -	$(GZIP) mpath_persistent_reserve_in.3 > mpath_persistent_reserve_in.3.gz	
> -	$(GZIP) mpath_persistent_reserve_out.3 > mpath_persistent_reserve_out.3.gz	
> +	$(GZIPCMD) mpath_persistent_reserve_in.3 > mpath_persistent_reserve_in.3.gz
> +	$(GZIPCMD) mpath_persistent_reserve_out.3 > mpath_persistent_reserve_out.3.gz

On the other hand - I'm quite puzzled why upstream build bothers to compress 
man pages?

Common practice is to leave this up-to distro packagers to maintain compressed 
man pages?

Or is there some new guide line for projects to build man pages in compressed 
form?

Zdenek

      reply	other threads:[~2014-09-10  8:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-09  8:28 [PATCH 1/1] fix build, replace GZIP with GZIPCMD Christian Hesse
2014-09-10  8:24 ` Zdenek Kabelac [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54100AA4.5080008@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=christophe.varoqui@opensvc.com \
    --cc=dm-devel@redhat.com \
    --cc=mail@eworm.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.