* [Qemu-devel] [PATCH] configure: add sanity check to catch builds from "git archive"
@ 2018-04-18 10:11 Daniel P. Berrangé
2018-04-18 10:16 ` Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Daniel P. Berrangé @ 2018-04-18 10:11 UTC (permalink / raw)
To: qemu-devel
The "git archive" feature creates tarballs which are missing all
submodule content. GitHub unhelpfully provides users with "Download"
links that claim to give them valid source release tarballs. These
GitHub archives will not be buildable as they are created by the
"git archive" feature and so are missing content. The user gets
unhelpful messages from make such as:
fatal error: ui/input-keymap-atset1-to-qcode.c: No such file or directory
By adding a sanity check we can give users an informative message about
what they've done wrong.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
configure | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/configure b/configure
index 0a19b033bc..9f3777da1b 100755
--- a/configure
+++ b/configure
@@ -296,6 +296,21 @@ then
else
git_update=no
git_submodules=""
+
+ if ! test -f "$source_path/ui/keycodemapdb/README"
+ then
+ echo
+ echo "ERROR: missing file $source_path/ui/keycodemapdb/README"
+ echo
+ echo "This is not a GIT checkout but module content appears to"
+ echo "be missing. Do not use 'git archive' or GitHub download links"
+ echo "to acquire QEMU source archives. Non-GIT builds are only"
+ echo "supported with source archives linked from:"
+ echo
+ echo " https://www.qemu.org/download/"
+ echo
+ exit 1
+ fi
fi
git="git"
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [Qemu-devel] [PATCH] configure: add sanity check to catch builds from "git archive"
2018-04-18 10:11 [Qemu-devel] [PATCH] configure: add sanity check to catch builds from "git archive" Daniel P. Berrangé
@ 2018-04-18 10:16 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2018-04-18 10:16 UTC (permalink / raw)
To: Daniel P. Berrangé; +Cc: QEMU Developers
On 18 April 2018 at 11:11, Daniel P. Berrangé <berrange@redhat.com> wrote:
> The "git archive" feature creates tarballs which are missing all
> submodule content. GitHub unhelpfully provides users with "Download"
> links that claim to give them valid source release tarballs. These
> GitHub archives will not be buildable as they are created by the
> "git archive" feature and so are missing content. The user gets
> unhelpful messages from make such as:
>
> fatal error: ui/input-keymap-atset1-to-qcode.c: No such file or directory
>
> By adding a sanity check we can give users an informative message about
> what they've done wrong.
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Is it worth also mentioning in the error message the
existence of scripts/archive-source.sh to help people
who need to create tarballs for their test setups
(the way we do internally for docker builds)?
thanks
-- PMM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-18 10:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-18 10:11 [Qemu-devel] [PATCH] configure: add sanity check to catch builds from "git archive" Daniel P. Berrangé
2018-04-18 10:16 ` Peter Maydell
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.