From nobody Mon Feb 9 00:05:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1675691629; cv=none; d=zohomail.com; s=zohoarc; b=N5ZDo/D1gQgtPoihkG9c7C7t8It/W1ORm7QoGIpvzu2WRhkibxK/XaPUJOa2WUMyNiPxyIIrTtaGawXay4mc1j10hbDAPRmlnn25tAxSx5KGgxIZz0LA8v2UQHsWYEid8zrKM8SSSJ5vFF0PcUrZHXbPUCPzW+wdfOQV7c471wg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675691629; 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=dTYUtDUvF82pUxOZ1RefsyOCbJnmkAITkU3jPV2OqZE=; b=f7oN+AAZ+L6ELnlVeJ31mrMntyk9sEwt5Oz6WuJc2Yz3k/Y/CMUzLkPww97B7ztK9WLzCg7z2+sd7OFI/LlN6u2CN/hVa9h0QDEcrtJE4dSVBpUtXn0oBoAH8PM3ramNMTCLoWooR1U2rrGYW/5iAUdVHZmOmJxlC1KMXltNUZU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1675691629039209.89034165436533; Mon, 6 Feb 2023 05:53:49 -0800 (PST) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-60-Bza0RKnxM6yW3nfLSMlXmg-1; Mon, 06 Feb 2023 08:53:41 -0500 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AE6392A5957B; Mon, 6 Feb 2023 13:53:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9A179492C3F; Mon, 6 Feb 2023 13:53:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 908F1194658C; Mon, 6 Feb 2023 13:53:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7B8281946589 for ; Mon, 6 Feb 2023 13:53:31 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6E29414171B6; Mon, 6 Feb 2023 13:53:31 +0000 (UTC) Received: from ridgehead.redhat.com (ovpn-193-197.brq.redhat.com [10.40.193.197]) by smtp.corp.redhat.com (Postfix) with ESMTP id DEC6A140EBF6; Mon, 6 Feb 2023 13:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675691628; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=dTYUtDUvF82pUxOZ1RefsyOCbJnmkAITkU3jPV2OqZE=; b=UlDy7x/5y38urX5VJm1/kNl+b9DM9eZg1TIClAihm5ElcK9xkQzUewhKFlmYyTngJA9MAI 5njRyTARRj0uAwb8J8rUr0+FdgsOnf9g7tGHsQVYKhZsdOhIehBGLs396OIxApskrFdV7z xrS9Y9qD2oN1sKp3a1SXpqN2KKZSmAY= X-MC-Unique: Bza0RKnxM6yW3nfLSMlXmg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 16/20] ci: build.sh: Update git index in local container environments on 'dist' Date: Mon, 6 Feb 2023 14:53:13 +0100 Message-Id: <80dc3fcab83231f51193e921a5be06b5b29b91ca.1675691295.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Skultety Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1675691630788100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Meson dist build is unhappy with the git clone we mount into local container environments and forces updating git's index. Since this is only relevant to the dist build, only update the index then. Signed-off-by: Erik Skultety --- Honestly I have no good explanation why dist kept complaining about uncommi= tted changes even though there weren't any. It probably has something to do with the fact how git clone --local works, but I don't see why - an option would= be to convert to using '--no-hardlinks'. Anyhow, 'update-index --refresh' was = the only thing that helped to solve the problem so that the dist tarball could be created inside a container locally followed by an RPM build. ci/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/build.sh b/ci/build.sh index b6596300be..6731db50c1 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -33,6 +33,10 @@ run_build() { } =20 run_dist() { + # dist is unhappy in local container environment complaining about + # uncommitted changes in the repo which is often not the case - refres= hing + # git's index solves the problem + git update-index --refresh meson dist -C build --no-tests } =20 --=20 2.39.1