Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Boeckel <mathstuf@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/4 v3] support/download/git: do not use git archive, handle it manually
Date: Wed, 6 Jul 2016 01:04:28 +0000 (UTC)	[thread overview]
Message-ID: <nlhleq$thi$1@ger.gmane.org> (raw)
In-Reply-To: 878txk55or.fsf@dell.be.48ers.dk

On Sat, 02 Jul, 2016 at 17:08:04 GMT, Peter Korsgaard wrote:
> I've wondered if it wouldn't have been simpler to keep git archive and
> then just append the git-archive output of the individual submodules
> (like we do for the generated documentation in make release) with git
> submodule foreach, E.G:
>
> https://ttboj.wordpress.com/2015/07/23/git-archive-with-submodules-and-tar-magic/
>
> Something like:
>
> git archive --prefix=foo/ ... > $TAR
> git submodule foreach --recursive \
>     'git archive --prefix=foo/$path/ $sha1 > $TAR.tmp && tar Af $TAR $TAR.tmp'
> rm $TAR.tmp
>
> But we can do that later if needed.

Here's another approach:

    https://gitlab.kitware.com/paraview/paraview/blob/master/Utilities/Maintenance/create_tarballs.bash#L176

You set up a custom index file and then use `read-tree -i` to read in
the submodules. IMO, using `git archive` should be a requirement because
of export-subst attributes which cause `$Format:$` bits to be replaced
in the archived files.

--Ben

  reply	other threads:[~2016-07-06  1:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-01  9:01 [Buildroot] [PATCH 0/4 v3] core/download: add support for git sub-modules (branch yem/git) Yann E. MORIN
2016-07-01  9:01 ` [Buildroot] [PATCH 1/4 v3] support/download/git: do not use bare clones Yann E. MORIN
2016-07-02 16:42   ` Peter Korsgaard
2016-07-01  9:01 ` [Buildroot] [PATCH 2/4 v3] support/download/git: do not use git archive, handle it manually Yann E. MORIN
2016-07-02 17:08   ` Peter Korsgaard
2016-07-06  1:04     ` Ben Boeckel [this message]
2016-07-01  9:01 ` [Buildroot] [PATCH 3/4 v3] support/download/git: add support for submodules Yann E. MORIN
2016-07-02 17:09   ` Peter Korsgaard
2016-07-01  9:01 ` [Buildroot] [PATCH 4/4 v3] core/pkg-infra: download git submodules if the package wants them Yann E. MORIN
2016-07-02 17:11   ` Peter Korsgaard
2016-07-02 23:40     ` Yann E. MORIN
2016-07-02 23:55       ` 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='nlhleq$thi$1@ger.gmane.org' \
    --to=mathstuf@gmail.com \
    --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