All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter Morrow" <pdmorrow@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-oe][PATCH] lvm2: allow lvm2-scripts sort rdep to be configurable
Date: Tue, 20 Jul 2021 14:04:12 +0100	[thread overview]
Message-ID: <20210720130412.733320-1-pemorrow@linux.microsoft.com> (raw)

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"
+
 RDEPENDS_${PN}-scripts = "${PN} (= ${EXTENDPKGV}) \
                           bash \
                           util-linux-lsblk \
                           util-linux-findmnt \
-                          coreutils \
+                          ${VIRTUAL-RUNTIME_sort} \
 "
 RRECOMMENDS_${PN}_class-target = "${PN}-scripts (= ${EXTENDPKGV})"
 
-- 
2.20.1


             reply	other threads:[~2021-07-20 13:04 UTC|newest]

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

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=20210720130412.733320-1-pemorrow@linux.microsoft.com \
    --to=pdmorrow@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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.