From: Anthony PERARD <anthony.perard@citrix.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
xen-devel@lists.xenproject.org, Wei Liu <wei.liu2@citrix.com>,
Juergen Gross <jgross@suse.com>
Subject: Re: [PATCH] mktarball: For qemu upstream, use their scripts/archive-source.sh
Date: Wed, 18 Apr 2018 12:38:32 +0100 [thread overview]
Message-ID: <20180418113832.GA21802@perard> (raw)
In-Reply-To: <1523984677-5909-1-git-send-email-ian.jackson@eu.citrix.com>
On Tue, Apr 17, 2018 at 06:04:37PM +0100, Ian Jackson wrote:
> diff --git a/tools/misc/mktarball b/tools/misc/mktarball
> index 73282b5..42d5430 100755
> --- a/tools/misc/mktarball
> +++ b/tools/misc/mktarball
> @@ -29,7 +29,21 @@ mkdir -p $tdir
>
> git_archive_into $xen_root $tdir/xen-$desc
>
> -git_archive_into $xen_root/tools/qemu-xen-dir-remote $tdir/xen-$desc/tools/qemu-xen
> +# We can't use git_archive_into with qemu upstream because it uses
> +# git-submodules. git-submodules are an inherently broken git feature
> +# which should never be used in any circumstance. Unfortunately, qemu
I don't think xen.git is the right place to bash the use of git
submodule. Especially when there is no way, in xen.git, to find out
ahead of time which git trees the xen build system is going to want to
download.
> +# upstream uses them. Relevantly for us, git archive does not work
> +# properly when there are submodules.
> +(
> + cd $xen_root/tools/qemu-xen-dir-remote
> + # if it's not clean, the qemu script will call `git stash' !
It's actually `git stash create`. The script doesn't modify the source
worktree. The script seems to be intended to make a tarball of the
worktree (so also things not commited yet), and we use it make a tarball
of a commit.
There is scripts/make-release that is simpler (called via `make dist`),
but it probably stuff the tarball with more than we need (roms).
> + git --no-pager diff --stat HEAD
> + scripts/archive-source.sh $tdir/xen-$desc/tools/qemu-xen.tar
> + cd $tdir/xen-$desc/tools
> + mkdir qemu-xen
> + tar <qemu-xen.tar Cxf qemu-xen -
> + rm qemu-xen.tar
> +)
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
prev parent reply other threads:[~2018-04-18 11:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-17 17:04 [PATCH] mktarball: For qemu upstream, use their scripts/archive-source.sh Ian Jackson
2018-04-17 17:16 ` George Dunlap
2018-04-17 17:31 ` Ian Jackson
2018-04-18 11:38 ` Anthony PERARD [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=20180418113832.GA21802@perard \
--to=anthony.perard@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jgross@suse.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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 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.