From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] download/git: force gzip compression level 6
Date: Tue, 12 Sep 2017 08:05:10 +0200 [thread overview]
Message-ID: <20170912060510.GB3625@scaer> (raw)
In-Reply-To: <1505168020-23634-1-git-send-email-brain@jikos.cz>
Petr, All,
On 2017-09-12 00:13 +0200, Petr Kulhavy spake thusly:
> Force gzip compression level 6 when calculating hash of a downloaded GIT repo.
> To make sure the tar->gzip->checksum chain always provides consistent result.`
>
> The script was relying on the default compression level, which must not be
> necessarily consistent among different gzip versions. The level 6 is gzip's
> current default compression level.
Not only is it the _current_ default, it has always been so since the
first release.
> Signed-off-by: Petr Kulhavy <brain@jikos.cz>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> support/download/git | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/support/download/git b/support/download/git
> index fc2957d..f590ff6 100755
> --- a/support/download/git
> +++ b/support/download/git
> @@ -101,4 +101,4 @@ LC_ALL=C sort <"${basename}.list" >"${basename}.list.sorted"
> # sources.buildroot.org and used in the *.hash files
> tar cf - --numeric-owner --owner=0 --group=0 --mtime="${date}" --format=gnu \
> -T "${basename}.list.sorted" >"${output}.tar"
> -gzip -n <"${output}.tar" >"${output}"
> +gzip -6 -n <"${output}.tar" >"${output}"
> --
> 2.7.4
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2017-09-12 6:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 22:13 [Buildroot] [PATCH 1/1] download/git: force gzip compression level 6 Petr Kulhavy
2017-09-12 6:05 ` Yann E. MORIN [this message]
2017-09-12 21:36 ` Peter Korsgaard
2017-09-13 5:07 ` Yann E. MORIN
2017-09-21 13:41 ` Peter Korsgaard
2017-10-16 21:54 ` Peter Korsgaard
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=20170912060510.GB3625@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox