From patchwork Thu Sep 29 12:21:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Korsnes X-Patchwork-Id: 13381 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 EBB9FC433F5 for ; Thu, 29 Sep 2022 12:21:55 +0000 (UTC) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by mx.groups.io with SMTP id smtpd.web08.9754.1664454106908599884 for ; Thu, 29 Sep 2022 05:21:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@remarkable.no header.s=google header.b=c5DueE21; spf=pass (domain: remarkable.no, ip: 209.85.167.41, mailfrom: johan.korsnes@remarkable.no) Received: by mail-lf1-f41.google.com with SMTP id j16so1987509lfg.1 for ; Thu, 29 Sep 2022 05:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remarkable.no; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=K0zBWWgjrcwARSrEiMrpZ1CJ8zOgylTVr3cQGUMbmpw=; b=c5DueE21NN+KoEn83z5/9yxZZ7nSdzmZ6t8dWQE4ZLB8hbEXTUuPFJqU10kHiZbADD 3QFuvfeAHOOTsSf/1ZmGU8D5hGNnxs9Bxr+rTm6vPWTwe94SHG6vyqHLOrsCjIpTI90l VEf//Yj87UlK4c0vAIrB0iOH8yliSWonIC8iis0DzMoHNfICaEKtTKmr+TyT7C0rsaVX P2Qq1z/JZ8Pyl2GdynRXloW4kEgKOD2G6wqjVrCEGYwjIrllyQKeVcl989X/qwlZh9eg wlgepkXv5cKyOG/4/7+hgGx0ahI6nEOXJLZBs6JYk6g4MsEPv9HoxAKTZeFzrEv7RtXR V5Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=K0zBWWgjrcwARSrEiMrpZ1CJ8zOgylTVr3cQGUMbmpw=; b=6N3bj8G081sWAKMkodX9SrIbUBWwVLaAykna9seFZVqVXYCbopZYMiOYWTkg4ZZ0x9 QMjiodN3LJ9dCRRLpEmp2UYg/LZ0BrqOITXQvVRxQmFBeOoQW0HHywTVgoBrbrdlNO44 vXwttyA01Cq95A/Js2B4eBSfIWJl9Fwkr8Zi+EGBaJETVUqEaJJvXV35g4MqWjwpNZLO KQVIIgY2BJJqFHZBNBGfDtJ65+MzYj5aWr7JUj+lnR9gSk8OkVGU+HhYRd/SrK7Cin3q jHXLn4F0vbT1ywJfkggjcmOr3BEldMet3Wncz6twJjJt4DQBvje8+5PS4ZvHaVitkvx7 SpRg== X-Gm-Message-State: ACrzQf1UxHRcRoJ0TJ7sYx0tTTOXWYHvqVHJo1my3/zh2i7SuyWQweWE 8AoSjEfMzjxVUHbEUY4f4JNx5I1zUqvQXwI= X-Google-Smtp-Source: AMsMyM7WO8SjmZHeoUGz6AMrD/fRrf+/ub8PSo1UA/4LkD+M1nVSdL6tU2psEuPxAJcqc8U10ncfSg== X-Received: by 2002:a05:6512:2384:b0:497:ad1c:799 with SMTP id c4-20020a056512238400b00497ad1c0799mr1251773lfv.294.1664454104903; Thu, 29 Sep 2022 05:21:44 -0700 (PDT) Received: from localhost.localdomain (217-13-24-82.dd.nextgentel.com. [217.13.24.82]) by smtp.gmail.com with ESMTPSA id m8-20020a056512358800b004947f8b6266sm770986lfr.203.2022.09.29.05.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 05:21:44 -0700 (PDT) From: Johan Korsnes To: docs@lists.yoctoproject.org, bitbake-devel@lists.openembedded.org Cc: Johan Korsnes , Richard Purdie , Quentin Schulz , Ross Burton , Nicolas Dechesne Subject: [PATCH v2] bitbake: user-manual: inform about spaces in :remove Date: Thu, 29 Sep 2022 14:21:33 +0200 Message-Id: <20220929122133.261961-1-johan.korsnes@remarkable.no> X-Mailer: git-send-email 2.37.3 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 ; Thu, 29 Sep 2022 12:21:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/3258 Inform the reader that there should be no need for spaces in the value when using removal override `:remove`. Considering why spaces are used in the other override operators, it might seem obvious that they aren't needed for the removal operator. But, it seems like I'm not the first to be confused about this. Cc: Richard Purdie Cc: Quentin Schulz Cc: Ross Burton Cc: Nicolas Dechesne Signed-off-by: Johan Korsnes Reviewed-by: Michael Opdenacker --- v1->v2 * better wording :) --- .../doc/bitbake-user-manual/bitbake-user-manual-metadata.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst index 337821612c..bc27eb1b6b 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst @@ -330,7 +330,8 @@ Removal (Override Style Syntax) You can remove values from lists using the removal override style syntax. Specifying a value for removal causes all occurrences of that -value to be removed from the variable. +value to be removed from the variable. Unlike ":append" and ":prepend", +there is no need to add a leading or trailing space to the value. When you use this syntax, BitBake expects one or more strings. Surrounding spaces and spacing are preserved. Here is an example::