From nobody Mon Feb 9 07:25:48 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1621499131; cv=none; d=zohomail.com; s=zohoarc; b=GhcRKVQ2HLn2e0uafytqXnIgxPM5XkKVwjQdnDrhg/v4sP+BoshErq9rjfG/MBkzvM9mH5ym9js5fQG6zotKyHua0RFZuO27d6WY4JcJDAumS6QDSJRIuxP95KYO0qgGhCC9uKIxuH9+ScswzYXtESm+i4C4HgNZXCt0iRJhTCQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621499131; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bvDJqezYLepT2RXLvaDux71VTpVELHG55s53GJHq5qM=; b=l5OtWjcGbRaxytRP07oLK9ZTpZty7LavzrThwg62HpQarx6U9/kgtzK/swkY42XZv/ALP3uqwbkRr6gDP217S+UyLRKDA49WBDD+HQstBz33i+qM0Fk6K+Bd+rWTw+oaYosXpoL8G60H+fniF7jpPJKa8rLj6V3mas0vu0qGK5Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1621499131359155.23395567257876; Thu, 20 May 2021 01:25:31 -0700 (PDT) Received: from localhost ([::1]:50108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljdzm-0008IK-5e for importer@patchew.org; Thu, 20 May 2021 04:25:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljdxW-0005Mt-2h for qemu-devel@nongnu.org; Thu, 20 May 2021 04:23:14 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:54929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljdxN-0001Sd-C4 for qemu-devel@nongnu.org; Thu, 20 May 2021 04:23:03 -0400 Received: by mail-wm1-x32e.google.com with SMTP id o127so8608771wmo.4 for ; Thu, 20 May 2021 01:23:00 -0700 (PDT) Received: from avogadro.redhat.com ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id v10sm2603506wrq.0.2021.05.20.01.22.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 01:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bvDJqezYLepT2RXLvaDux71VTpVELHG55s53GJHq5qM=; b=kxGeCAJvBhfPmu30v3LFLfmyjHZ3ga07oxKMcnl+c4xLsGB53YyPvgiwMj8fuaWF4U pMZzfFSrKGTvgZaBRkBjvpWaLzIU78YBbUsZRsl06ype3ZhPX83UfccFjHscADPdFHR6 ZClM9eHkQxqKwvj+iugMwENSayPqZJSM+y8Twl0+5ToAZjqGy00p/LK7ORfLOFDNKHu5 Z08ii/RqfamuD3ZeBTVoiql7oB/Hup7G2UQwq8PROqrENPiXl7X0YfTToSfE9APaKVbD DNdhj12ka4fQPP/V7ZEsfDT1KsV/RZgFrq5aG+NcOq9BQb1/KAs1euLKJLjHhw68NWw8 gGGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=bvDJqezYLepT2RXLvaDux71VTpVELHG55s53GJHq5qM=; b=jxua6011APXZEGyq2CjvQCTci4rwvb/PZLO2u73Z/nvlzvCkXd5f6B4nrkH7W5yqX3 2z4kEfiqt3DRUUJ9mwS+z29BWOpyiIakqCij1NcBNK8frzakoMP68ZgLltye3HDEKQf7 sZcroZwnPuBGQDjh4aZMAkie3NkBEdhfZJwh5nuvmHn/qBb3a5f4wpZm429cHmkzuvhM sH59gXru7rxZ6xd/Df9+DJf00AXy/Lx08pCgmX8+sjs0jmryrLMBbDSRayJaeyvYHs7A QhCzaz3SqofzOgDG5xttEeVGZbs+cYpH4q9e5VJzLOowLNryQx8xVtAnttCmgEjx93s+ QrNQ== X-Gm-Message-State: AOAM531U41DuQuVD3yl2sbuZKnk2wYWQ/OSD6iCCXLtfUwOv0ynVp1mf 8PZVImq4VyCQ2IUUrXA65vePURcPRNXOAw== X-Google-Smtp-Source: ABdhPJwPGi331u1GWUPOoWMOpfRy81Jm7Pf848iObL9pZ0IT0xmtV+TtA+nQf+AJY5p/Ey8nDEjR9g== X-Received: by 2002:a1c:f705:: with SMTP id v5mr2827916wmh.69.1621498980017; Thu, 20 May 2021 01:23:00 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 02/26] configure: check for submodules if --with-git-submodules=ignore Date: Thu, 20 May 2021 10:22:33 +0200 Message-Id: <20210520082257.187061-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520082257.187061-1-pbonzini@redhat.com> References: <20210520082257.187061-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=paolo.bonzini@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Right now --with-git-submodules=3Dignore has a subtle difference from just running without a .git directory, in that it does not check that submodule sources actually exist. Move the check for ui/keycodemapdb/README so that it happens even if the user specified --with-git-submodules=3Dignore, with a customized error message that is more suitable for this situation. Signed-off-by: Paolo Bonzini --- configure | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/configure b/configure index 1bb29fcda1..4681cbe2d7 100755 --- a/configure +++ b/configure @@ -260,24 +260,6 @@ then else git_submodules_action=3D"ignore" git_submodules=3D"" - - 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 link= s" - 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/#source" - echo - echo "Developers working with GIT can use scripts/archive-source.s= h" - echo "if they need to create valid source archives." - echo - exit 1 - fi fi git=3D"git" =20 @@ -1582,6 +1564,28 @@ case $git_submodules_action in fi ;; ignore) + if ! test -f "$source_path/ui/keycodemapdb/README" + then + echo + echo "ERROR: missing GIT submodules" + echo + if test -e "$source_path/.git"; then + echo "--with-git-submodules=3Dignore specified but submodu= les were not" + echo "checked out. Please initialize and update submodule= s." + else + echo "This is not a GIT checkout but module content appear= s to" + echo "be missing. Do not use 'git archive' or GitHub downl= oad 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/#source" + echo + echo "Developers working with GIT can use scripts/archive-= source.sh" + echo "if they need to create valid source archives." + fi + echo + exit 1 + fi ;; *) echo "ERROR: invalid --with-git-submodules=3D value '$git_submodul= es_action'" --=20 2.31.1