All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gzip: fix installation path
@ 2015-01-06 14:42 Gustavo Zacarias
  0 siblings, 0 replies; only message in thread
From: Gustavo Zacarias @ 2015-01-06 14:42 UTC (permalink / raw)
  To: buildroot

Make gzip install binaries to / rather than /usr to fix bug #7766, it's
the FHS mandated target.

This also avoids duplicating binaries with busybox when both are
installed.

Also make gzip install after busybox if both are enabled to make the
proper gzip package override any busybox version since it's usually more
lightweight in functionality and slower.

And add a hash file while at it.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/gzip/gzip.hash | 2 ++
 package/gzip/gzip.mk   | 4 ++++
 2 files changed, 6 insertions(+)
 create mode 100644 package/gzip/gzip.hash

diff --git a/package/gzip/gzip.hash b/package/gzip/gzip.hash
new file mode 100644
index 0000000..56f052f
--- /dev/null
+++ b/package/gzip/gzip.hash
@@ -0,0 +1,2 @@
+# Locally calculated after checking pgp signature
+sha256	37dfed1a485d53212c43b3fa2a7c7952f09bf5cd86e37121c222341ee1b27847  gzip-1.6.tar.xz
diff --git a/package/gzip/gzip.mk b/package/gzip/gzip.mk
index e1a7bef..4ae2ae0 100644
--- a/package/gzip/gzip.mk
+++ b/package/gzip/gzip.mk
@@ -7,6 +7,10 @@
 GZIP_VERSION = 1.6
 GZIP_SOURCE = gzip-$(GZIP_VERSION).tar.xz
 GZIP_SITE = $(BR2_GNU_MIRROR)/gzip
+# Some other tools expect it to be in /bin
+GZIP_CONF_OPTS = --exec-prefix=/
+# Prefer full gzip over potentially lightweight/slower from busybox
+GZIP_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
 GZIP_LICENSE = GPLv3+
 GZIP_LICENSE_FILES = COPYING
 
-- 
2.0.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-06 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06 14:42 [Buildroot] [PATCH] gzip: fix installation path Gustavo Zacarias

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.