All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Khem Raj" <raj.khem@gmail.com>
To: Peter Morrow <pdmorrow@gmail.com>,
	openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-oe][PATCH] lvm2: allow lvm2-scripts sort rdep to be configurable
Date: Tue, 20 Jul 2021 09:45:08 -0700	[thread overview]
Message-ID: <1bf5f71e-841b-e4ec-03a4-d6d75b4bfe0c@gmail.com> (raw)
In-Reply-To: <20210720130412.733320-1-pemorrow@linux.microsoft.com>



On 7/20/21 6:04 AM, Peter Morrow wrote:
> By default lvm2-scripts has a runtime dependency on coreutils to
> provide the "sort" binary. There are alternative providers for "sort"
> such as busybox. It isn't desirabled in some cases to pull in a large
> package such as coreutils when busybox can provide the sort binary. This
> patch allows the dependency to be changed to something other than
> coreutils.
> 
> Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
> ---
>   meta-oe/recipes-support/lvm2/lvm2_2.03.11.bb | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-oe/recipes-support/lvm2/lvm2_2.03.11.bb b/meta-oe/recipes-support/lvm2/lvm2_2.03.11.bb
> index 7f3f000e0..fbf424f44 100644
> --- a/meta-oe/recipes-support/lvm2/lvm2_2.03.11.bb
> +++ b/meta-oe/recipes-support/lvm2/lvm2_2.03.11.bb
> @@ -69,11 +69,15 @@ RDEPENDS_${PN}-udevrules = "libdevmapper"
>   RDEPENDS_${PN}_append_class-target = " libdevmapper"
>   RDEPENDS_${PN}_append_class-nativesdk = " libdevmapper"
>   
> +# Select the runtime dependency for lvm2-scripts which provides the "sort"
> +# binary.
> +VIRTUAL-RUNTIME_sort ?= "coreutils"
> +

if coreutils is pulled in via other rdeps then this will be ineffective. 
Secondly, it seems more like a global setting instead of per recipe 
setting. Maybe turn it into packageconfig

PACKAGECONFIG[busybox-sort] = ",,,busybox"
PACKAGECONFIG[coreutils-sort] = ",,,coreutils"

and then default to coreutils


>   RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) \
>                             bash \
>                             util-linux-lsblk \
>                             util-linux-findmnt \
> -                          coreutils \
> +                          ${VIRTUAL-RUNTIME_sort} \
>   "
>   RRECOMMENDS_${PN}_class-target = "${PN}-scripts (= ${EXTENDPKGV})"
>   
> 
> 
> 
> 
> 

      reply	other threads:[~2021-07-20 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-20 13:04 [meta-oe][PATCH] lvm2: allow lvm2-scripts sort rdep to be configurable Peter Morrow
2021-07-20 16:45 ` Khem Raj [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1bf5f71e-841b-e4ec-03a4-d6d75b4bfe0c@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=pdmorrow@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.