From nobody Mon Feb 9 21:22:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1579194972; cv=none; d=zohomail.com; s=zohoarc; b=R66hE6FDExqygd23vHDnCRHUurSrJR6NqF33FuAbIvo+Ka+mt6S5gqGh+3VSpRFhBffGD8FER8BsTx7T2gL8ucfBMLCKqbqAZKrowtxb/m8xJJoGBrR783a5VzwJwV7Z3jd9RPJmgd8wbJRMlQcbJU3UhLjchDYQaAMF6ElGTHw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579194972; 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=JTKtvte7ffRu44GFXuvGjHc97CeGgr7mcy+ZknPrUgg=; b=BWxXqKLEJzC5HtzAadgELjzqcMiFMGx566ZqP4q4QfREQbHkjdrJiwf6KSnZhi4mnONsY0JqWNf6nuyOP5H5ahqS0nnKtskhB1Ox2oIzyXYg6aDMAMZEUI07ryQ+BELPTRZBWwMiySdLTDUWyHbRO/rgT7Y7N8mb2g5nXqtVEXs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 157919497230444.20854568595439; Thu, 16 Jan 2020 09:16:12 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-303-BXhKfmcCM0WeRpqXONA3Xw-1; Thu, 16 Jan 2020 12:16:09 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 96923800D53; Thu, 16 Jan 2020 17:16:02 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 66D3760F8D; Thu, 16 Jan 2020 17:16:02 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 19EF0845FA; Thu, 16 Jan 2020 17:16:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00GHFoEF004330 for ; Thu, 16 Jan 2020 12:15:50 -0500 Received: by smtp.corp.redhat.com (Postfix) id B612A7C41A; Thu, 16 Jan 2020 17:15:50 +0000 (UTC) Received: from foo.home.annexia.org (ovpn-117-237.ams2.redhat.com [10.36.117.237]) by smtp.corp.redhat.com (Postfix) with ESMTP id D83D984327; Thu, 16 Jan 2020 17:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579194971; 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=JTKtvte7ffRu44GFXuvGjHc97CeGgr7mcy+ZknPrUgg=; b=fdoC5XGg5vyqfwJhxKFrj51XgvB4xaq1rqovOJ9s9+9BSGIF9pFP/NUG+0Rsm0CvUsHiqB DrLOh9JnUSEAI8ciexhFgVa2XasV5RfA/5eE8rtvHmOTAb4zvpwrEYgMIqat0yTGyXtPd2 1Dy32NUgdpGMuhtkc+41Zk7zzGakFEU= From: "Richard W.M. Jones" To: libvir-list@redhat.com Subject: [PATCH 2/2] run.in: Include tools directory on $PATH. Date: Thu, 16 Jan 2020 17:15:42 +0000 Message-Id: <20200116171542.2764144-3-rjones@redhat.com> In-Reply-To: <20200116171542.2764144-1-rjones@redhat.com> References: <20200116171542.2764144-1-rjones@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: pkrempa@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: BXhKfmcCM0WeRpqXONA3Xw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" You normally want to run the locally compiled copy of virsh. Trying to run the installed version with the locally compiled library is a recipe for problems with missing symbols and so on. By adding tools to the path we can ensure that (eg) the libguestfs test suite will use compatible copies of the library and virsh. Signed-off-by: Richard W.M. Jones Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Erik Skultety --- run.in | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/run.in b/run.in index 3118f9a9a4..d508e64802 100644 --- a/run.in +++ b/run.in @@ -21,12 +21,10 @@ # With this script you can run libvirt programs without needing to # install them first. You just have to do for example: # -# ./run ./tools/virsh [args ...] +# ./run virsh [args ...] # -# If you are already in the tools/ subdirectory, then the following -# command will also work: -# -# ../run ./virsh [...] +# Note that this runs the locally compiled copy of virsh which +# is usually want you want. # # You can also run the C programs under valgrind like this: # @@ -38,7 +36,7 @@ # # This also works with sudo (eg. if you need root access for libvirt): # -# sudo ./run ./tools/virsh list --all +# sudo ./run virsh list --all # #---------------------------------------------------------------------- =20 @@ -58,6 +56,9 @@ export LD_LIBRARY_PATH prepend PKG_CONFIG_PATH "$b/src" export PKG_CONFIG_PATH =20 +prepend PATH "$b/tools" +export PATH + # Ensure that any 3rd party apps using libvirt.so from the build tree get # files resolved to the build/source tree too. Typically useful for langua= ge # bindings running tests against non-installed libvirt. --=20 2.24.1