Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C43BF531DA for ; Tue, 14 Apr 2026 05:05:30 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.12014.1776143120625605402 for ; Mon, 13 Apr 2026 22:05:20 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@windriver.com header.s=PPS06212021 header.b=EFEO8xTE; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=85645fefe5=zhixiong.chi@windriver.com) Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63E4r5Ih4067311; Mon, 13 Apr 2026 22:05:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=PPS06212021; bh=lZUH7N8psmMK1gunYgZnXu kaw4BkjzZJsv9uYP8vbCQ=; b=EFEO8xTEv9Q8TIAklPnpTYT3enQXZuaHUmI3Vt FxBDUOkGqAc9NwWjjJY7n//IS4XeMcnejmMM812kIoo7fpH7blc2NKh3dAeu/IfV jK1vzSkVnrtbj9ucthp/MyZnJV0J9KuGhBXYp4QXKAHcYiVGWvJbBm1/DrDBBmPf fZB88NTB5z3xcaf1gZfq7MhAVQ/ULk7JXB7KMXb4nUXRM32/4EUALedU9TmXA+bS 7sxt05xXLsmLTTnGyBzCst2OHitfI73jW90ive8rn+w1WUidLJ/8doXQKfHZ+Ig7 2HuYADtDYTUdpHDgnbAWY8OqleMbm8kDmKotJbHI7B564jAw== Received: from ch5pr02cu005.outbound.protection.outlook.com (mail-northcentralusazon11012061.outbound.protection.outlook.com [40.107.200.61]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4dh86m89yt-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 13 Apr 2026 22:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Qj8AhjSDOtRSFbmZ6qaeuOntp/NCKYsWXYx028FFthV1yRRaXV20xEgynthXzqnZDV6tH2BiqnD3gMq3pLHTqfZhoyLds5HWyhVPf2SzW1WtXVB6Ase96yxYOAIj0dIdgscz3i41xY+Mf27x/PNl1BLHVYHoZCKhSHD2BYSuRM6loXjvPZA4fwtHGbcBsRnHkwJYUjIOLZzQHSY2CA4qRUpZDV/gFD/2oRE3SSrSVJPFI6p57DkrE0idA8EsjoqzkPg5effzDlF0xK+6h4tlOCI9AAvvobGcRWyN+N9KjvYdgLu80LgVRdHTgVV8pinUOI4yiUHtrns/7bPX/E8bnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lZUH7N8psmMK1gunYgZnXukaw4BkjzZJsv9uYP8vbCQ=; b=LHU+XEJEfLdX8OCuiIP2EvwUKNGCuSCOzKvzEXnCJHY9nMFQaM1WQ9sLXtc5s0rEqCjVaHTlYcErNAPwe0rpfeWMz/eNl6CN3rRpSGdmO3H0x/bJC41onKiUk8VZJi4PJkn2X3cXbiCid+PYjJCWBSnfKYtrCY+4bdtPXweKU2K17hi47SbAx1+tZG5SUDb5k+6LEXWoUlpsUdo7pDTc3AJmEu5zlp7YWdJM8zLYh2zHAQG9rTdTkY61Wyx6ALNtr28CIN/6sXU3TeOWnL3vhbUed3CHgxnXoM8sjHeKOkeOzU6oHi5Xnrv0dAwdQM7GCrfbYh6OY6CWiT0MpQGJ7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from IA3PR11MB8986.namprd11.prod.outlook.com (2603:10b6:208:577::21) by CY8PR11MB7289.namprd11.prod.outlook.com (2603:10b6:930:99::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9818.20; Tue, 14 Apr 2026 05:04:15 +0000 Received: from IA3PR11MB8986.namprd11.prod.outlook.com ([fe80::e6f0:6afb:6ef9:ab5c]) by IA3PR11MB8986.namprd11.prod.outlook.com ([fe80::e6f0:6afb:6ef9:ab5c%5]) with mapi id 15.20.9745.012; Tue, 14 Apr 2026 05:04:15 +0000 Content-Type: multipart/alternative; boundary="------------ldS5hLwM5BntnJuarvT05CQi" Message-ID: Date: Tue, 14 Apr 2026 13:04:09 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [meta-virtualization][PATCH 2/2] libvirt: add secrets PACKAGECONFIG Content-Language: en-US To: Bruce Ashfield Cc: meta-virtualization@lists.yoctoproject.org References: <20260411101842.3462555-1-zhixiong.chi@windriver.com> <20260411101842.3462555-2-zhixiong.chi@windriver.com> From: "Chi, Zhixiong" In-Reply-To: X-ClientProxiedBy: TPYP295CA0046.TWNP295.PROD.OUTLOOK.COM (2603:1096:7d0:8::17) To IA3PR11MB8986.namprd11.prod.outlook.com (2603:10b6:208:577::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA3PR11MB8986:EE_|CY8PR11MB7289:EE_ X-MS-Office365-Filtering-Correlation-Id: 7eb6a179-7e41-4e04-cb47-08de99e3469a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|4022899009|1800799024|366016|8096899003|13003099007|56012099003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: dQf7p4qpTWBFIcSo47QGPmYt6rZU0eP2xSygHzJey8BS8PNDiZ0cOkZkUgc9At87CACFZc2JEEfjvsnzQtYFQ6HGtQGLkOEdycuS87EsZbIK6cLK5sk5hnN19zp2/U8EKfFTw24kSX3rSRYIAM9ywgI5nt0/ecYBBU75ZCf4eWzAE2ISTzZferjp/r6sBTfnF4+0atuYb/BkR9Kb4MYYBoXJMROGo7wPRXMaiMe2HoJBSsTXszCqIMuNWy5sC+1Z2jf9wVvZIp+OZIjNmijGntARkjGAhMyFSTFj9U1lbqbIZ4rSSLQrowLrp7GKBGaQEi5LfJEtngJ+jAxcxvJaetSvYkxAuO0Xp3B9xgnn5KkHbVVcl9qn8+WXI7BXVPgGlQuYx1JttgvZm70tEdx0TU1RL1CSSsPuTxZwjTDnRnlGWksb0oAWk1iCchIOj9P+MFHyKC1Rp5oMxuEDZn5xbDwjPftaXkJ36QrD/v1vGLKaoFK7l3PRgPWbjqkzQJ4NemAh0xdrqdD/X9aOALJI6ZpTY/owsoC3GR02NODPc4bV8JV2PAIPE7BwoVROImNFyoU6Emiq8xVUYEgEWckxfpv0Nh6796d1IpcB1xZd2AybFdHiMsz0Jv1rwaquxtOYphxfETie5+H02kPFuqQXSjx/gzKdGhni9tqxEVvO8vTiRFg4tYx9rpDDfzMR3JXg X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:IA3PR11MB8986.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(4022899009)(1800799024)(366016)(8096899003)(13003099007)(56012099003)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V1pQS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MiXowixs1oy1U4aBLLaHHg== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7eb6a179-7e41-4e04-cb47-08de99e3469a X-MS-Exchange-CrossTenant-AuthSource: IA3PR11MB8986.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2026 05:04:15.5294 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: b+/XHW+bWvq53ftnCaQbCqBB+cXVaqobqDb+Pn4mLDqtj9eYj4A1H7/1VwGligFTlYVL9TAYBJ96T8qnsZx9G4+yC/Ujok3oP+P1oJiz+Qc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7289 X-Authority-Analysis: v=2.4 cv=Q5riJY2a c=1 sm=1 tr=0 ts=69ddcb0f cx=c_pps a=1c0oZQ8MA7sDNsoFSDv1iA==:117 a=6eWqkTHjU83fiwn7nKZWdM+Sl24=:19 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=HK-ge7EqtdluswH-FwHe:22 a=iGHA9ds3AAAA:8 a=5zBmwohVAAAA:8 a=vnynRzA7AAAA:8 a=t7CeM3EgAAAA:8 a=pGLkceISAAAA:8 a=R_xijZuorxu3qrKqGoYA:9 a=lqcHg5cX4UMA:10 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uc8VlMhjAWsCgeBPREwA:9 a=AR5tMIBVosW-tygt:21 a=_W_S_7VecoQA:10 a=nM-MV4yxpKKO9kiQg6Ot:22 a=vWgD8zG0H4_5ii-OlP9Z:22 a=KzGtPItofEgYnRrcTJYe:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: igxOKGFv3YChd3QDRHaIZkeYI0mprzE7 X-Proofpoint-ORIG-GUID: igxOKGFv3YChd3QDRHaIZkeYI0mprzE7 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE0MDA0NSBTYWx0ZWRfX8mI6LN2hkMrC iBL1X7d6e4qR0sqWyeXeWBH57c8HqXZrCz3JP7g6rZZ31vMQJNE6DDGRChkuRA5bDaKAW/7E+p+ F6EEAZ5921o6fJMVWSNfFYO8BAY7IhrOGXE9+OPZmvQO9rSVGhc2MrdfInDSNZ48pickeoaMzF+ wqRFQDVFTrr0JO3yEIyNoB+08jsZZU9k4wn77IHBJ4fZjgjjjFpe5Gmt6KKHD1hHg7iD34J3dp3 ITI49RbwL3VID6ZFl7vj6upuOO+j3sDjVtEG+uOAWLqhk4t4B/FtbbqCL/r3VBUQ1FSODryzMKo /PdG59Vishl/o8HGoqgxyQkFU+uCxCickMC3Y1aqS106T4gXT/fTSFWQCOs31QmeEBMRJQek6U6 LLcdQhPAVOuhAwOcOHnMyFJQqZP4FrCqtgFlR5+D1KWvgGF6US+Jjk9fFj7NIPG6gL3921xagJx sl0GDdc8kBn2yVEV74Q== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-14_01,2026-04-13_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 spamscore=0 lowpriorityscore=0 clxscore=1011 impostorscore=0 adultscore=0 malwarescore=0 bulkscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604140045 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 14 Apr 2026 05:05:30 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-virtualization/message/9701 --------------ldS5hLwM5BntnJuarvT05CQi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 63E4r5Ih4067311 On 4/13/26 22:16, Bruce Ashfield wrote: > ** > *CAUTION: This email comes from a non Wind River email account!* > Do not click links or open attachments unless you recognize the sender=20 > and know the content is safe. > > > On Sat, Apr 11, 2026 at 6:18=E2=80=AFAM Zhixiong Chi via=20 > lists.yoctoproject.org=20 > =20 > wrote: > > After being upgraded to v12.1.0, the new > virt-secret-init-encryption.service > has been introduced, and it requires systemd to add openssl to > PACKAGECONFIG. > Because systemd-creds encrypt command will be executed in the > service file. > > Meanwhile this service was added into the dependency chain of the > main service > libvirtd.service. > > In systemd recipe, the openssl PACKAGECONFIG is disabled at > default. Finally > the service file virt-secret-init-encryption.service and libvirtd > will be > failed. > > > Considering it didn't exist before, then yes, it is disabled by=20 > default.=C2=A0 But that > we can see from the patch. > > If the new service was introduced by the uprev, is it enabled by=20 > default by > libvirt itself, or is it doing some sort of build time detection ? We=20 > need to > document that in the commit message. That is what your commit message > already implies, I just want it to be clearly stated. > > We should also be capturing what the user would see in the system logs, > on the console, or wherever if this service is enabled. Is it an error=20 > ? is > it functional ? > Updated the comments in V2 patch including the services status when=20 secret service is enabled . > > > So add secrets PACKAGECONFIG for libvirt and conditional removal > the new > virt-secret-init-encryption in the libvirt.service. > > Signed-off-by: Zhixiong Chi > --- > =C2=A0recipes-extended/libvirt/libvirt_git.bb > > | 11 +++++++++++ > =C2=A01 file changed, 11 insertions(+) > > diff --git a/recipes-extended/libvirt/libvirt_git.bb > > b/recipes-extended/libvirt/libvirt_git.bb > > index fbee9c5b..3075149b 100644 > --- a/recipes-extended/libvirt/libvirt_git.bb > > +++ b/recipes-extended/libvirt/libvirt_git.bb > > @@ -177,6 +177,8 @@ PACKAGECONFIG[firewalld] =3D > "-Dfirewalld=3Denabled, -Dfirewalld=3Ddisabled," > =C2=A0PACKAGECONFIG[libpcap] =3D "-Dlibpcap=3Denabled, > -Dlibpcap=3Ddisabled,libpcap,libpcap" > =C2=A0PACKAGECONFIG[numad] =3D "-Dnumad=3Denabled, -Dnumad=3Ddisabl= ed," > =C2=A0PACKAGECONFIG[nftables] =3D "" > +# Require systemd to add openssl to PACKAGECONFIG, so disable it > at default. > +PACKAGECONFIG[secrets] =3D "-Ddriver_secrets=3Denabled, > -Ddriver_secrets=3Ddisabled," > > =C2=A0# Enable the Python tool support > =C2=A0require libvirt-python.inc > > @@ -225,6 +227,15 @@ do_install:append() { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mv ${= D}${prefix}/lib/systemd/system/* > ${D}${systemd_system_unitdir} > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0rmdir= ${D}${prefix}/lib/systemd/system > ${D}${prefix}/lib/systemd > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fi > + > > > We need a comment above those sed expressions to indicate the final=20 > result. > i.e. service is completely removed. Done in V2. > > But again, back to my first comments. If libvirt is enabling this by=20 > default, and it > isn't doing some sort of runtime/buildtime detection, is this really=20 > the only way that > libvirt has to disable it ? Add the benefit description about this approach in v2. Provide the opportunity to choose the specific configurations they wish=20 to activate, thereby avoiding potential PACKAGECONFIG conflicts between packages. > > Bruce > > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ! ${@bb.utils.contain= s('PACKAGECONFIG', 'secrets', > 'true', 'false', d)}; then > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sed -i \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 -e > '/^Requires=3Dvirt-secret-init-encryption.service/d' \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 -e > '/^After=3Dvirt-secret-init-encryption.service/d' \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 -e '/^Environment=3DSECRETS_ENCRYPTION_KEY=3D/d' \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 -e '/^LoadCredentialEncrypted=3D/d' \ > + ${D}${systemd_system_unitdir}/libvirtd.service > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi > =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 # The /run/libvirt directories created = by the Makefile are > --=20 > 2.49.0 > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > View/Reply Online (#9692): > https://lists.yoctoproject.org/g/meta-virtualization/message/9692 > > Mute This Topic: > https://lists.yoctoproject.org/mt/118773077/1050810 > > Group Owner: meta-virtualization+owner@lists.yoctoproject.org > > Unsubscribe: > https://lists.yoctoproject.org/g/meta-virtualization/unsub > > [bruce.ashfield@gmail.com] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > > > > --=20 > - Thou shalt not follow the NULL pointer, for chaos and madness await=20 > thee at its end > - "Use the force Harry" - Gandalf, Star Trek II > --------------ldS5hLwM5BntnJuarvT05CQi Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 63E4r5Ih4067311


On 4/13/26 22:16, Bruce Ashfield wrote= :
=20
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.


On Sat, Apr 11, 2026 at 6:18=E2=80=AFAM Zhixiong Chi via lists.yoctoproject.org <zhixiong.chi=3Dwindriver.com@lists.yoctoproject.org> wrote:
After being upgraded to v12.1.0, the new virt-secret-init-encryption.service
has been introduced, and it requires systemd to add openssl to PACKAGECONFIG.
Because systemd-creds encrypt command will be executed in the service file.

Meanwhile this service was added into the dependency chain of the main service
libvirtd.service.

In systemd recipe, the openssl PACKAGECONFIG is disabled at default. Finally
the service file virt-secret-init-encryption.service and libvirtd will be
failed.

Cons= idering it didn't exist before, then yes, it is disabled by default.  But that
we c= an see from the patch.

If the new service was introduced by the uprev, is it enabled by default by
libv= irt itself, or is it doing some sort of build time detection ? We need to
docu= ment that in the commit message. That is what your commit message
alre= ady implies, I just want it to be clearly stated.

We should also be capturing what the user would see in the system logs,
on t= he console, or wherever if this service is enabled. Is it an error ? is
it functional ?

Updated the comments in V2 patch including the services status when secret service is enabled .
 

So add secrets PACKAGECONFIG for libvirt and conditional removal the new
virt-secret-init-encryption in the libvirt.service.

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
---
 recipes-extended/libvirt/libvirt_git= .bb | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/recipes-extended/libvirt/libv= irt_git.bb b/recipes-extended/libvirt/libvirt_git.bb
index fbee9c5b..3075149b 100644
--- a/recipes-extended/libvirt/
libvirt_git= .bb
+++ b/recipes-extended/libvirt/libvirt_git= .bb
@@ -177,6 +177,8 @@ PACKAGECONFIG[firewalld] =3D "-Dfirewalld=3Denabled, -Dfirewalld=3Ddisabled,"<= br>  PACKAGECONFIG[libpcap] =3D "-Dlibpcap=3Denabled, -Dlibpcap=3Ddisabled,libpcap,libpcap"
 PACKAGECONFIG[numad] =3D "-Dnumad=3Denabled, -Dnumad=3Ddisabled,"
 PACKAGECONFIG[nftables] =3D ""
+# Require systemd to add openssl to PACKAGECONFIG, so disable it at default.
+PACKAGECONFIG[secrets] =3D "-Ddriver_secrets=3Denable= d, -Ddriver_secrets=3Ddisabled,"

 # Enable the Python tool support
 require libvirt-python.inc
@@ -225,6 +227,15 @@ do_install:append() {
                &nb= sp;mv ${D}${prefix}/lib/systemd/system/* ${D}${systemd_system_unitdir}
                &nb= sp;rmdir ${D}${prefix}/lib/systemd/system ${D}${prefix}/lib/systemd
             fi
+

We n= eed a comment above those sed expressions to indicate the final result.
i.e. service is completely removed.
Done in V2.

But again, back to my first comments. If libvirt is enabling this by default, and it
isn'= t doing some sort of runtime/buildtime detection, is this really the only way that
libv= irt has to disable it ?

Add the benefit description about this approach in v2.
Provide the opportunity to choose the specific configurations they wish to activate,
thereby avoiding potential PACKAGECONFIG conflicts between packages.


Bruc= e

 
+            if ! ${@bb.utils= .contains('PACKAGECONFIG', 'secrets', 'true', 'false', d)}; then
+                se= d -i \
+                &n= bsp;   -e '/^Requires=3Dvirt-secret-init-encryption.service/d' \
+                &n= bsp;   -e '/^After=3Dvirt-secret-init-encryption.service/d' \
+                &n= bsp;   -e '/^Environment=3DSECRETS_ENCRYPTION_KEY=3D/d' \
+                &n= bsp;   -e '/^LoadCredentialEncrypted=3D/d' \
+                &n= bsp;   ${D}${systemd_system_unitdir}/libvirtd.service
+            fi
        fi

        # The /run/libvirt directories = created by the Makefile are
--
2.49.0


-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
Links: You receive all messages sent to this group.
View/Reply Online (#9692): https://lists.yoctoproject.org/g/meta-virtualization/message/9692
Mute This Topic: https://lists.yoctoproject.org/mt/118773077/1050810 Group Owner: meta-virtualization+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-



--
- Thou shalt not fol= low the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

--------------ldS5hLwM5BntnJuarvT05CQi--