From: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Restore .git directory in git package downloads
Date: Thu, 27 Apr 2017 14:52:56 -0300 (BRT) [thread overview]
Message-ID: <682867300.20794745.1493315576819.JavaMail.zimbra@datacom.ind.br> (raw)
In-Reply-To: <20170426041048.xsxovkh53dhcif4l@sapphire.tkos.co.il>
Baruch, James,
On Wednesday, April 26, 2017 1:10:48 AM, Baruch Siach wrote:
> Hi James,
>
> On Tue, Apr 25, 2017 at 10:52:19PM -0500, James Balean wrote:
>> On 20 April 2017 at 09:22, Ricardo Martincoski
>> <ricardo.martincoski@gmail.com> wrote:
>> > - it would make the tarballs for git packages not reproducible as the
>> > contents now depend on the state of the remote server (i.e. in some
>> > cases a full clone is needed; assume a tarball is generated, then a
>> > new commit is created in the remote server in any branch, a new full
>> > clone with the same reference as version would include that new commit
>> > and therefore the tarball is different);
>>
>> Isn't it already the case that git tarballs are not reproducible? For
>> example, after a tarball is generated from a clone of 'master' or a tag,
>> Buildroot doesn't check and re-clone when changes are made to the branch
>> or tag on subsequent builds.
>
> For this reason we only use immutable git references (either commits ids or
> tags) for git downloaded <PKG>_VERSION.
>
>> Additionally, the same tarball filename is
>> also used for a full clone if a shallow clone fails. So tarballs can
>> already differ markedly between users.
>
> The content of the source tree should be the same for a given git reference,
> regardless of the clone type.
Indeed. Tarballs for git packages are already reproducible.
> Buildroot has been verifying git generated tarballs using hashes in
> packages/<pkg>/<pkg>.hash files for some time now without an issue, AFAIK.
Not yet, but we are almost there, see
http://patchwork.ozlabs.org/patch/741360/
Regards,
Ricardo
prev parent reply other threads:[~2017-04-27 17:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-19 4:00 [Buildroot] [PATCH] Restore .git directory in git package downloads James Balean
2017-04-19 4:15 ` Baruch Siach
2017-04-19 13:01 ` Jan Kundrát
2017-04-19 14:39 ` Andreas Naumann
2017-04-19 20:11 ` Arnout Vandecappelle
2017-04-19 23:37 ` Ricardo Martincoski
[not found] ` <58f7f1456cc7e_21d33f8c269493f44696f@ultri3.mail>
2017-04-20 3:40 ` Baruch Siach
2017-04-26 3:52 ` James Balean
2017-04-26 4:10 ` Baruch Siach
2017-04-27 17:52 ` Ricardo Martincoski [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=682867300.20794745.1493315576819.JavaMail.zimbra@datacom.ind.br \
--to=ricardo.martincoski@datacom.ind.br \
--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