From nobody Tue Feb 10 14:14:58 2026 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1621877392; cv=none; d=zohomail.com; s=zohoarc; b=is0TG9xjBw8XeTk6T0CPRRpyjPF8L6KhHddmHV1PH+uJQ3QL1iCa+CNbI4bt3naan+o5CcPGVXq+Rj1hosQC3YmMMt/GSV9sUrnHC6jDUD7aKh/yhzQD0eV2HfrVIZuSPtct652NAUT8bzBtjkiGKHfBRB+e1qHlBfe10CCkTDU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621877392; h=Content-Type:Content-Transfer-Encoding:Cc: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=PRKAqQVQk6atOGbruXu4fzvA7uFctSe6m5tKH4EPE8E=; b=Q3j0LUJEq+U/GdjVl3fAFHxRcmRH4kPvwAtqVKIsZOz36c3Y0DVCFoZdyJG0QB4GF9Ic+1sV4Km5S8DhGYg11RgT/FgvLwTjoapuyPfZIh4ChInyZflVnFk0cNB57QM2BlNS7cYBYxxd+vTCotE1nDovU9TDbkjO9u4FSFc2Wxs= 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+importer2=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 162187739265855.62148788324771; Mon, 24 May 2021 10:29:52 -0700 (PDT) Received: from localhost ([::1]:58396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llEOl-0000gN-E2 for importer2@patchew.org; Mon, 24 May 2021 13:29:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llDeW-00056y-IH for qemu-devel@nongnu.org; Mon, 24 May 2021 12:42:11 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:36584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llDeJ-0004PZ-Oj for qemu-devel@nongnu.org; Mon, 24 May 2021 12:42:03 -0400 Received: by mail-ed1-x530.google.com with SMTP id df21so32753567edb.3 for ; Mon, 24 May 2021 09:41:51 -0700 (PDT) Received: from avogadro.redhat.com ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id g4sm9581922edm.83.2021.05.24.09.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 09:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PRKAqQVQk6atOGbruXu4fzvA7uFctSe6m5tKH4EPE8E=; b=Nj39wwUBKfMBIanByECbgcdw187Y+VRABHLd9fIp9tPBXARJaKUGhROSlUTZOntP2B FGD3g0n0dZKC2I9NUty4WfnAHyGzL+alECUfL7CLJ5/YaHlGK9xfQtDyVjwwd39Xxex6 oJRPZyKUQC1ZNX/jLGQtoiLkXWxxuwu97vg4/MD4qfsnq/6O221eVgUDK38rUGGBgkaT MYyBIvisV4KkoaGEZ/YlSUrRko7jHS4nw7poytr9ecaOqmMisQimjsIz/PCtGvJVAn2x jENP7Q0ovCrzfblcvVXzTouoGsyKrGTYY8ekwiI7yyBM1UKvpiHq8464cMXYVCjkLTbz TSAg== 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:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=PRKAqQVQk6atOGbruXu4fzvA7uFctSe6m5tKH4EPE8E=; b=sbhW1m53174lljQ2wactINlCEmBWxYsLtH493fWp1TeRytPK2rQQPlKzF91CZi1Z45 6m42ruWyKBge9ByrqHTlH+8Zs8yvKBdzwtrMYc6Pkfn7HeE/zaEn/+JA61SJ62jPpRWB zsWsSnWpl+Qr3NBQNXO81RcJuWtyFyNcOmtIyHXOo6SIj65x2xZT/aPeWFTXGVY6BBq5 iT7AgcN2nOwDUPMfbvtFl66VfRi2czcpMCu8ZTTb9t1rx/J2UDQY40/GfnNLy2Z2KqcX iZVH76CYT+1Pp+1SRsnl5yu/ttp/cU8mOnQ3mYBVrKVfhSqFsUQKH4VBCBn0d1+SKxz6 GhbA== X-Gm-Message-State: AOAM533SeqZXcH487xjN8B9+YNoMm3eWoAR6dg7Vcag2LyPBwxRjTAKw L+ii/a5ZwCzaqdTQ0ykLtwQa+KP9MMHsWw== X-Google-Smtp-Source: ABdhPJwlSB7JR8b/mCXF6zkLIUvx/nYcd+n+cC7Orqvx36SPlrHhPL2fpXP2rEFN9nn6SWtQ1AWf5Q== X-Received: by 2002:a05:6402:951:: with SMTP id h17mr26957486edz.212.1621874510439; Mon, 24 May 2021 09:41:50 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 26/28] configure: Avoid error messages about missing *-config-*.h files Date: Mon, 24 May 2021 18:41:29 +0200 Message-Id: <20210524164131.383778-27-pbonzini@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524164131.383778-1-pbonzini@redhat.com> References: <20210524164131.383778-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x530.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.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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: , Cc: Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Thomas Huth When compiling with --disable-system there is a harmless yet still annoying error message at the end of the "configure" step: sed: can't read *-config-devices.h: No such file or directory When only building the tools or docs, without any emulator at all, there is even an additional message about missing *-config-target.h files. Fix it by checking whether any of these files are available before using them. Fixes: e0447a834d ("configure: Poison all current target-specific #defines") Reported-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210519113840.298174-1-thuth@redhat.com> Signed-off-by: Paolo Bonzini --- configure | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/configure b/configure index cca532bb0c..90c0807347 100755 --- a/configure +++ b/configure @@ -6503,10 +6503,14 @@ fi =20 # Create list of config switches that should be poisoned in common code... # but filter out CONFIG_TCG and CONFIG_USER_ONLY which are special. -sed -n -e '/CONFIG_TCG/d' -e '/CONFIG_USER_ONLY/d' \ - -e '/^#define / { s///; s/ .*//; s/^/#pragma GCC poison /p; }' \ - *-config-devices.h *-config-target.h | \ - sort -u > config-poison.h +target_configs_h=3D$(ls *-config-devices.h *-config-target.h 2>/dev/null) +if test -n "$target_configs_h" ; then + sed -n -e '/CONFIG_TCG/d' -e '/CONFIG_USER_ONLY/d' \ + -e '/^#define / { s///; s/ .*//; s/^/#pragma GCC poison /p; }' \ + $target_configs_h | sort -u > config-poison.h +else + :> config-poison.h +fi =20 # Save the configure command line for later reuse. cat <config.status --=20 2.31.1