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 C27ECC64ED6 for ; Tue, 28 Feb 2023 10:04:17 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.web11.19971.1677578649424132093 for ; Tue, 28 Feb 2023 02:04:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=dv5e3dwE; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.53, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f53.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so5484073wmi.3 for ; Tue, 28 Feb 2023 02:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=siPX2pPALAYXwrqwWD8Drn6SHBNMgthSF4v+giKwQNo=; b=dv5e3dwEOsX7JyJD3p6mtFPqFs9JXrYI2PA9mJ5hxqPK44JHriVv7xWNIDJfd2N+Cn g0VE9jVY+sfsods26MC0jKmISyg2e1MazTfpQCXIIGNbg2FHMcYUmaOPZ+n9Gg2D7E15 CXnKeixRPEcyjeOW00bwf1ptMUn0oL8dLIUek= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=siPX2pPALAYXwrqwWD8Drn6SHBNMgthSF4v+giKwQNo=; b=6zewc/Mm+kD4Eigl6ITgh1oVp18aBCFobE5FZF6PIeLx/0jdDZGlA35mDQy4Jh60Y+ MuSM5OuACwk8ql1GC7pDJ+f44+qXqfAA1SxjPCBbZ7WVEp7dOrwz/hhH4ZikgCculIJ2 Jp4dfYuCzGRFEzXuhzhWBNHU6XHxKO2T8bY7lC5K2Gs7RbSzjYKH2fxlseXuC9dstxOP YqVGcMEDvQWGZeOxKGf7oKAHkEALrTOy1Amf3v0qzuYzpfiSNndKSTNT9porNtWVGz35 qmknrkZYQrziF2YtN3N+PbvIaKemnrA98IsiY4WVSmkSaWdo39rnCNVDu1I77nyjWCe3 zw+A== X-Gm-Message-State: AO0yUKX8eTru+AEHbORaqZ/weLfS+q15DxSAAAQkXyq6VFWgGVdc3p6h hCd9yFKU74bjvlvnVvPUJs/szg== X-Google-Smtp-Source: AK7set+Qr8iM5DoKkubC/5C6VGvNvg9uFwXeSYAuny4XgeXBaP7ypoCx3ltjscAPZIiCqpDb57F8iQ== X-Received: by 2002:a05:600c:3088:b0:3eb:3c76:c241 with SMTP id g8-20020a05600c308800b003eb3c76c241mr1626465wmn.13.1677578647631; Tue, 28 Feb 2023 02:04:07 -0800 (PST) Received: from ?IPv6:2001:8b0:aba:5f3c:ba1a:ef91:9631:3e11? ([2001:8b0:aba:5f3c:ba1a:ef91:9631:3e11]) by smtp.gmail.com with ESMTPSA id n5-20020a5d6605000000b002c54d8b89efsm9264330wru.26.2023.02.28.02.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 02:04:07 -0800 (PST) Message-ID: Subject: Re: [OE-core] [DISTRO|MACHINE]_FEATURES_BACKFILL_CONSIDERED: confusing variable names? From: Richard Purdie To: michael.opdenacker@bootlin.com, Tom Hochstein , OE-core Cc: YP docs mailing list Date: Tue, 28 Feb 2023 10:04:06 +0000 In-Reply-To: <82ebb063-3d90-1f8c-3c93-d5e3a84fe764@bootlin.com> References: <8a4852e0-7d49-dfc3-7f41-9bf6c0c28016@bootlin.com> <82ebb063-3d90-1f8c-3c93-d5e3a84fe764@bootlin.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3-1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Feb 2023 10:04:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/177832 On Tue, 2023-02-28 at 10:52 +0100, Michael Opdenacker via lists.openembedded.org wrote: > Greetings, >=20 > Thank you all for your replies and comments! >=20 > On 24.02.23 at 00:24, Tom Hochstein wrote: > > I agree. The problem I have with these variable names is that it's ambi= guous whether the features will be included or excluded from the backfill. = All you can tell from the names is that the values were 'considered'. What = does that mean? You have to go to the manual to find the full meaning. > >=20 > > What's important about the variables is that they will be 'excluded' fr= om the backfill, so this does look much clearer to me: > >=20 > > DISTRO_FEATURES_BACKFILL_EXCLUDED +=3D "some-feature" >=20 >=20 > Richard, would you accept it if I sent a patch replacing=20 > "BACKFILL_CONSIDERED" by "BACKFILL_EXCLUDED" in the two variables? >=20 > Of course, I can understand if that's too late for the next release, and= =20 > instead document this oddity, at least before we can make a change again. I don't want to rush into this. The idea of the variable was that the list were things that distro maintainers would need to consider when upgrading and then "mark as considered" so in that context, excluding them makes less sense. I'm sure there was discussion about the name at the time. I'm nervous about renaming variables in general as it does create pain for users upgrading and some community feedback has been that we're bordering on frustrating users. I know we have mechanisms now to help but it isn't pain free. > > Is there a good reason why we have this separate variable and can't jus= t do this? > >=20 > > DISTRO_FEATURES_BACKFILL:remove =3D "some-feature" >=20 >=20 > Good question. Maybe because ":remove" is final, and cannot be=20 > overridden, if I understood correctly? Right, the concern would have been it couldn't be undone and the distro setups from when this dates from were more complex. Cheers, Richard