From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aCN4Glixi2I15wAAbAwnHQ (envelope-from ) for ; Mon, 23 May 2022 18:07:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2Ch7Glixi2L/oAAA9RJhRA (envelope-from ) for ; Mon, 23 May 2022 18:07:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 408811400A for ; Mon, 23 May 2022 18:07:52 +0200 (CEST) Received: from localhost ([::1]:43588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntAb1-0005kW-AJ for larch@yhetil.org; Mon, 23 May 2022 12:07:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntAZf-0005i1-AB for guix-devel@gnu.org; Mon, 23 May 2022 12:06:28 -0400 Received: from baptiste.telenet-ops.be ([2a02:1800:120:4::f00:13]:57970) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntAZd-0001sl-RO for guix-devel@gnu.org; Mon, 23 May 2022 12:06:27 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id aG6B2700A4UW6Th01G6BjB; Mon, 23 May 2022 18:06:11 +0200 Message-ID: <17afc8bcc17d5432943c2e64b960c021133c7282.camel@telenet.be> Subject: Re: libvirt: A potential problem in the package and looking for guidance From: Maxime Devos To: Ludovic =?ISO-8859-1?Q?Court=E8s?= , Allan Adair Cc: guix-devel Date: Mon, 23 May 2022 18:06:11 +0200 In-Reply-To: <8735h046bc.fsf@gnu.org> References: <8881f77c80bbc6fc4950ed64e2aef77f5a32c16f.camel@adair.no> <8735h046bc.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-XABUVj2VVdFVHXoSKm7H" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1653321971; bh=1H/kcdGyCfS3tDb+64SC90j+Mq6s21yzA6rKuuQjNCs=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=LatB1ej5xxGzkFFBYZUPHufg54JBX5ueiTvj32xecwUMV3P0JBP1Z+fW6XJstOPDc 50JylxYCb9XpbHCncTECqR4Uj43ywvXCK243WQWxv3+BlmQQGPtiXMsHbaHmzOMmP1 1yOj+Hb9m/Mh5RKjf/l/PwIeEjSvGAqcoz7U8J8FbaRhrUy/fCCAm4mtr7h7Y+5WWD JjikyinKoiVAKl+/QfPjeyiWhR6f6mjqwA6+wW7DEXA//ebH/OV91vPIlW2hz/CDDL zpIyvJQVSASvc22oZE8/a44hXMw01PFWXohzv36asc8ad4ag/HHhfGJz0uFVKLJJF5 qcYbeVnxOnT8w== Received-SPF: pass client-ip=2a02:1800:120:4::f00:13; envelope-from=maximedevos@telenet.be; helo=baptiste.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653322072; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1H/kcdGyCfS3tDb+64SC90j+Mq6s21yzA6rKuuQjNCs=; b=r+8PafRgX8LuD2oDb7Y7YfP4WrKFWg/tH+V8Xg+FkE9r8/VPpsPOYMGvwJcx4KMkBFhgnp VuS9aIspsrxpQBl5x7tzog6E956bLC/fu67jHAkl2d02f9ydbElvXXfRspeFXnekTTvNZx YrnxtbljbDhQ9V2Q6/6SI1KQR5CiLGQO0Y3X4EWpSvsv39EO61BF+gYokgNMqWm2kjHuUl dn6YQ1gyaJHfwKOpxEDCnd8bsmhFgWo9Hh1/IfR1yaxxKrZNt9e+iNiLnXZMO1HgFyq6gb tLjr6e01MkWON5JH3zMrgAfkRvGRAjuQNOeAV+uVeBi5cZni2PU4ShAvE3mYPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653322072; a=rsa-sha256; cv=none; b=N2qCn1wEmvzCl7FKqLMTY3GdFNnfYo3ZHTLMyWFzAX3T8zFwAcL6bIu8EY+QbmlwBa4zd/ kXrdxobYLR25F28qQu0fzElTiyav4+OIF9e9LcdDR6LxBRECcTY3B5fnpnFKCwGSgoicqC fDjNNkGH42orlaZE9ZcxIcNQVT5+UA0FBIhaMMVVcWwZc6tdOJbHEwVRlikZGgKszoYb+Q YZiYJ2OG8PNyKnYfIVATOhaLFffFFpo6g6NQwJwWb28Usf0X0UNiZhPB0MbJrGTW6fQRu7 3RlIsL15zoo06tUKsFmTB6ywGGanBpljLcDNIoph4rNoFx6CdQmDO6SU1fqqng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=LatB1ej5; dmarc=pass (policy=none) header.from=telenet.be; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.25 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=LatB1ej5; dmarc=pass (policy=none) header.from=telenet.be; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 408811400A X-Spam-Score: -6.25 X-Migadu-Scanner: scn1.migadu.com X-TUID: VglA7f0tC03U --=-XABUVj2VVdFVHXoSKm7H Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op ma 23-05-2022 om 17:28 [+0200]: > Hi, >=20 > Allan Adair skribis: >=20 > > =C2=A0=C2=A0 File "/gnu/store/g2x37cxh2ag5h66f0p9zaz9pkz2vcvgg-python-l= ibvirt- > > 7.9.0/lib/python3.9/site-packages/libvirt.py", line 1353, in create > > =C2=A0=C2=A0=C2=A0=C2=A0 raise libvirtError('virDomainCreate() failed') > > libvirt.libvirtError: '/usr/libexec/qemu-bridge-helper' is not a suitab= le > > bridge helper: No such file or directory > >=20 > >=20 > > Because the package is searching specifically for "/usr/libexec/qemu- > > bridge-helper", I think this is a bug in the package definition. "/usr" > > should probably be a prefix from the store, right? > >=20 > > Any comments or suggestions? >=20 > Presumably that =E2=80=9C/usr/libexec/qemu-bridge-helper=E2=80=9D referen= ce is > hard-coded in the source.=C2=A0 The solution in situations like this is t= o > replace it (using =E2=80=98substitute*=E2=80=99) by the absolute file nam= e of the > corresponding program in /gnu/store. >=20 > =C2=A0 (substitute* "some/file.py" > =C2=A0=C2=A0=C2=A0 (("/usr/libexec/qemu-bridge-helper") > =C2=A0=C2=A0=C2=A0=C2=A0 (search-input-file inputs "/bin/qemu-bridge-help= er"))) Additionally, you can do "grep -RF /usr/libexec /gnu/store/g2x37cxh2ag5h66f0p9zaz9pkz2vcvgg-python-l= ibvirt-7.9.0" in a shell to find the name of the source file to substitutify. Greetings, Maxime. --=-XABUVj2VVdFVHXoSKm7H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYouw8xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7v+tAQD+9l/M3XupxFeX1Es4dq2EcAOZ vhe109aw9E9gAS0OTgD+O1w10z3Wzs0LA9HyoAJjpa6BoT2srgrEtdWBwlC3+w4= =kCgz -----END PGP SIGNATURE----- --=-XABUVj2VVdFVHXoSKm7H--