From nobody Tue Feb 10 00:21:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1569940126; cv=none; d=zoho.com; s=zohoarc; b=lXh11N/Sj/g//SVE4GUh3OJYCwExMYMlX6zV0HgZVo5kkInZnklIsiHy8DeQhBIxD6qGxMCgjnGaNBsNI9CE5N7k1jkT+eJhJ+lfaR9k9P0E0ydhvpCnWp1vQwrEEQtqFF/0HO0SDipOMdfGCDyAv4ouj61Vr4VOFuCQKDVU21Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569940126; 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:ARC-Authentication-Results; bh=X8uJVUOC5+9Wsn8Fu36AgfO59Qx9jgUKOeZO/Ke6IpQ=; b=CTjm+j97UT7UOo5Rir1ptC5HawZy+ILlzZwZE6ta0/NAObsAVe8ivvW/Y/pgWtZGojY9cyYYT4nDRynAE9f7Ws/XnToPNVQQpeB4jy5GR2W0fzHZ263yyKE6h8i2PRmw4SX8tc7ZVaxUqEDTIpx0E5DxfQN1LnvFE5/VgyLzhR4= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1569940126602987.691313737589; Tue, 1 Oct 2019 07:28:46 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id CF0E1A44AFD; Tue, 1 Oct 2019 14:28:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A33A760E1C; Tue, 1 Oct 2019 14:28:44 +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 62225180B761; Tue, 1 Oct 2019 14:28:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x91ESeiI029445 for ; Tue, 1 Oct 2019 10:28:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id B111E6012D; Tue, 1 Oct 2019 14:28:40 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id DFAA060166; Tue, 1 Oct 2019 14:28:39 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Tue, 1 Oct 2019 16:28:17 +0200 Message-Id: <20191001142833.314631-2-fidencio@redhat.com> In-Reply-To: <20191001142833.314631-1-fidencio@redhat.com> References: <20191001142833.314631-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= , abologna@redhat.com Subject: [libvirt] [jenkins-ci PATCH 01/17] guests: Deal with multilib path 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: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Tue, 01 Oct 2019 14:28:45 +0000 (UTC) When building a project using Meson, the project will be installed respecting the multi-library path. In order to get the right path we should do: - Debian based machines: - Use the value of `dpkg-architecture -q DEB_TARGET_MULTIARCH` - RPM based machines: - Use the value of `rpm --eval '%{_lib}'` Signed-off-by: Fabiano Fid=C3=AAncio --- guests/playbooks/update/templates/bashrc.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/guests/playbooks/update/templates/bashrc.j2 b/guests/playbooks= /update/templates/bashrc.j2 index 1f39cf2..794398c 100644 --- a/guests/playbooks/update/templates/bashrc.j2 +++ b/guests/playbooks/update/templates/bashrc.j2 @@ -14,6 +14,23 @@ export XDG_DATA_DIRS=3D"$VIRT_PREFIX/share:/usr/share:/u= sr/local/share" export GI_TYPELIB_PATH=3D"$VIRT_PREFIX/lib/girepository-1.0" export OSINFO_SYSTEM_DIR=3D"$VIRT_PREFIX/share/osinfo" =20 +# Add the multilib path to the LD_LIBRARY_PATH, PKG_CONFIG_PATH, and GI_TY= PELIB_PATH +# The multilib path can be discovered either using `dpkg-architecture` (on= Debian based +# machines) or by calling `rpm --eval '%{_lib}'` (on rpm based machines). + +package_format=3D"{{ package_format }}" +if test "$package_format" =3D "deb"; then + multilib=3D$(dpkg-architecture -q DEB_TARGET_MULTIARCH) + export LD_LIBRARY_PATH=3D"$VIRT_PREFIX/lib/$multilib:$LD_LIBRARY_PATH" + export PKG_CONFIG_PATH=3D"$VIRT_PREFIX/lib/$multilib/pkgconfig:$PKG_CO= NFIG_PATH" + export GI_TYPELIB_PATH=3D"$VIRT_PREFIX/lib/$multilib/girepository-1.0:= $GI_TYPELIB_PATH" +elif test "$package_format" =3D "rpm"; then + multilib=3D$(rpm --eval '%{_lib}') + export LD_LIBRARY_PATH=3D"$VIRT_PREFIX/$multilib:$LD_LIBRARY_PATH" + export PKG_CONFIG_PATH=3D"$VIRT_PREFIX/$multilib/pkgconfig:$PKG_CONFIG= _PATH" + export GI_TYPELIB_PATH=3D"$VIRT_PREFIX/$multilib/girepository-1.0:$GI_= TYPELIB_PATH" +fi + # We need to ask Perl for this information, since it's used to # construct installation paths plarch=3D$(perl -e 'use Config; print $Config{archname}') --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list