From nobody Mon Feb 9 06:50:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1692986223; cv=none; d=zohomail.com; s=zohoarc; b=CaCjx/b8pMRVi2y3tXazszHzi6qLzk0pYhvXIUk/P1esa84ETHeiD+zWirSu7Ea+ZKvac+Wj/UMURTFwtxdJ7M0wtxSNQzmE/Qxz/jVIXzcX41xzbga+SvCB5DsdLU6AzZaGd+yuV4n2ROd2g7e+RevIz0rWZZxyAaDTETo1t30= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692986223; 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=yEXpMOvwQtLzCAfNII7N6voisFSDEgvylu5tj9QoKl0=; b=kLwLHfiS4PVH+n7FzkQkUZOTl8LDX189Vr9HrdG5u45t1S+G1+Y1nGE3cTupFHj06iHstrrhgLf0IQ+ZGsAL5jkyhcCyeqJ9RYPtgUaKOTW1MphJH5YHfa4iD8fooZ4baW9wD+NwtxLG3ZubLyt3b9KZ0YY+yWsHQi6o1s7cInQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1692986223981557.122279607272; Fri, 25 Aug 2023 10:57:03 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [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-481-JEQI1_HdPuSQHXy1GK1yww-1; Fri, 25 Aug 2023 13:55:55 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 746993C11C76; Fri, 25 Aug 2023 17:55:52 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5D2D340282C; Fri, 25 Aug 2023 17:55:52 +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 4049619465B8; Fri, 25 Aug 2023 17:55:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id C6E7E19465A8 for ; Fri, 25 Aug 2023 17:55:49 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B4B274021B9; Fri, 25 Aug 2023 17:55:49 +0000 (UTC) Received: from orca.. (unknown [10.45.225.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3964C4A9004; Fri, 25 Aug 2023 17:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692986223; 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=yEXpMOvwQtLzCAfNII7N6voisFSDEgvylu5tj9QoKl0=; b=Op6dLzeKoYadDmAoBq3uVLj63AW1ghM7Vo61EiwPgVf376J89K5a4XtEy4aOcE+nUq9dSx 68X11ZU+7qSLvXBWn1LZhScF/pvTqxnJ5qmb7Z0tDRedaGPXXxmDhkEU574FmCXtEWZagp OgvmhwlYUNCn68qTc9WYpUZqT7IytUg= X-MC-Unique: JEQI1_HdPuSQHXy1GK1yww-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 07/33] ci: build.sh: Add a helper function to create the dist tarball Date: Fri, 25 Aug 2023 19:55:15 +0200 Message-ID: <611ba120d82c7e1239dbae9f00eab39a1922a357.1692986130.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 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.10 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: 1692986224264100001 Content-Type: text/plain; charset="utf-8"; x-default="true" This helper function does not correspond to a particular GitLab job, it just logically separates the necessary step of creating a dist tarball from the RPM build job that takes over. One notable change here is the need to update git's file index which causes issues in local container executions which rely on a shallow copy of the libvirt repo created as: $ git clone --local Even if all changes have been committed, git often complained otherwise. Updating the index in a GitLab environment is a NOP. Signed-off-by: Erik Skultety --- ci/build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ci/build.sh b/ci/build.sh index c2f54707ce..c56e45f51f 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -54,3 +54,15 @@ run_build() { run_meson_setup run_cmd "$CMD" } + +run_dist() { + local CMD=3D"meson dist -C build --no-tests" + + run_meson_setup + + # 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 + run_cmd "$CMD" +} --=20 2.41.0