All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] fbgrab: explicitly build fbgrab target to workaround gzip issue
@ 2017-05-17 14:52 Peter Korsgaard
  2017-05-17 19:48 ` Thomas Petazzoni
  2017-05-17 20:46 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-05-17 14:52 UTC (permalink / raw)
  To: buildroot

Fixes #9871

gzip reads default command line options from the environment variable GZIP.
The fbgrab Makefile internally also uses a GZIP make variable to know what
command to use to compress the manpage. Unfortunaly make will export the
value of this make variable to the environment if GZIP is already present in
the enviroment, confusing gzip (as 'gzip' isn't a valid command line argument).

This can either be triggered by users having GZIP set in their environment
(E.G.  for custom options), or by enabling BR2_REPRODUCIBLE, where we use
this feature to force the -n option (to not store name/timestamp) to gzip.

We don't really need to compress the manpage as it isn't installed anyway,
so work around the issue by only building the fbgrab application.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/fbgrab/fbgrab.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/fbgrab/fbgrab.mk b/package/fbgrab/fbgrab.mk
index 15e0a95c9..d81a5ee2a 100644
--- a/package/fbgrab/fbgrab.mk
+++ b/package/fbgrab/fbgrab.mk
@@ -11,7 +11,7 @@ FBGRAB_LICENSE = GPL-2.0
 FBGRAB_LICENSE_FILES = COPYING
 
 define FBGRAB_BUILD_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) fbgrab
 endef
 
 define FBGRAB_INSTALL_TARGET_CMDS
-- 
2.11.0

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

* [Buildroot] [PATCH] fbgrab: explicitly build fbgrab target to workaround gzip issue
  2017-05-17 14:52 [Buildroot] [PATCH] fbgrab: explicitly build fbgrab target to workaround gzip issue Peter Korsgaard
@ 2017-05-17 19:48 ` Thomas Petazzoni
  2017-05-17 20:46 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-17 19:48 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 17 May 2017 16:52:51 +0200, Peter Korsgaard wrote:
> Fixes #9871
> 
> gzip reads default command line options from the environment variable GZIP.
> The fbgrab Makefile internally also uses a GZIP make variable to know what
> command to use to compress the manpage. Unfortunaly make will export the
> value of this make variable to the environment if GZIP is already present in
> the enviroment, confusing gzip (as 'gzip' isn't a valid command line argument).
> 
> This can either be triggered by users having GZIP set in their environment
> (E.G.  for custom options), or by enabling BR2_REPRODUCIBLE, where we use
> this feature to force the -n option (to not store name/timestamp) to gzip.
> 
> We don't really need to compress the manpage as it isn't installed anyway,
> so work around the issue by only building the fbgrab application.
> 
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
>  package/fbgrab/fbgrab.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH] fbgrab: explicitly build fbgrab target to workaround gzip issue
  2017-05-17 14:52 [Buildroot] [PATCH] fbgrab: explicitly build fbgrab target to workaround gzip issue Peter Korsgaard
  2017-05-17 19:48 ` Thomas Petazzoni
@ 2017-05-17 20:46 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-05-17 20:46 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > Fixes #9871
 > gzip reads default command line options from the environment variable GZIP.
 > The fbgrab Makefile internally also uses a GZIP make variable to know what
 > command to use to compress the manpage. Unfortunaly make will export the
 > value of this make variable to the environment if GZIP is already present in
 > the enviroment, confusing gzip (as 'gzip' isn't a valid command line argument).

 > This can either be triggered by users having GZIP set in their environment
 > (E.G.  for custom options), or by enabling BR2_REPRODUCIBLE, where we use
 > this feature to force the -n option (to not store name/timestamp) to gzip.

 > We don't really need to compress the manpage as it isn't installed anyway,
 > so work around the issue by only building the fbgrab application.

 > Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2017-05-17 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17 14:52 [Buildroot] [PATCH] fbgrab: explicitly build fbgrab target to workaround gzip issue Peter Korsgaard
2017-05-17 19:48 ` Thomas Petazzoni
2017-05-17 20:46 ` Peter Korsgaard

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.