All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH v5] procps: split ps and sysctl into individual packages
@ 2020-12-16 22:16 Sinan Kaya
  2021-01-12 14:09 ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 3+ messages in thread
From: Sinan Kaya @ 2020-12-16 22:16 UTC (permalink / raw)
  To: openembedded-core; +Cc: Sinan Kaya

Move the ps and sysctl tools into its own package. Useful for
size constrained systems that only want the ps and/or sysctl tools.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
 meta/recipes-extended/procps/procps_3.3.16.bb | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/meta/recipes-extended/procps/procps_3.3.16.bb b/meta/recipes-extended/procps/procps_3.3.16.bb
index 2810ebd285a..df340ea183f 100644
--- a/meta/recipes-extended/procps/procps_3.3.16.bb
+++ b/meta/recipes-extended/procps/procps_3.3.16.bb
@@ -74,3 +74,28 @@ python __anonymous() {
 # 'ps' isn't suitable for use as a security tool so whitelist this CVE.
 # https://bugzilla.redhat.com/show_bug.cgi?id=1575473#c3
 CVE_CHECK_WHITELIST += "CVE-2018-1121"
+
+PROCPS_PACKAGES = "${PN}-lib \
+                   ${PN}-ps \
+                   ${PN}-sysctl"
+
+PACKAGE_BEFORE_PN = "${PROCPS_PACKAGES}"
+RDEPENDS_${PN} += "${PROCPS_PACKAGES}"
+
+RDEPENDS_${PN}-ps += "${PN}-lib"
+RDEPENDS_${PN}-sysctl += "${PN}-sysctl"
+
+FILES_${PN}-lib = "${libdir}"
+FILES_${PN}-ps = "${base_bindir}/ps.${BPN}"
+FILES_${PN}-sysctl = "${base_sbindir}/sysctl.${BPN} ${sysconfdir}/sysctl.conf ${sysconfdir}/sysctl.d"
+
+ALTERNATIVE_${PN}_remove = "ps"
+ALTERNATIVE_${PN}_remove = "sysctl"
+
+ALTERNATIVE_${PN}-ps = "ps"
+ALTERNATIVE_TARGET[ps] = "${base_bindir}/ps"
+ALTERNATIVE_LINK_NAME[ps] = "${base_bindir}/ps"
+
+ALTERNATIVE_${PN}-sysctl = "sysctl"
+ALTERNATIVE_TARGET[sysctl] = "${base_sbindir}/sysctl"
+ALTERNATIVE_LINK_NAME[sysctl] = "${base_sbindir}/sysctl"
\ No newline at end of file
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [meta-oe][PATCH v5] procps: split ps and sysctl into individual packages
  2020-12-16 22:16 [meta-oe][PATCH v5] procps: split ps and sysctl into individual packages Sinan Kaya
@ 2021-01-12 14:09 ` Ross Burton
  2021-01-12 18:57   ` Sinan Kaya
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2021-01-12 14:09 UTC (permalink / raw)
  To: Sinan Kaya; +Cc: OE-core

On Wed, 16 Dec 2020 at 22:16, Sinan Kaya <okaya@kernel.org> wrote:
> Move the ps and sysctl tools into its own package. Useful for
> size constrained systems that only want the ps and/or sysctl tools.

Both of these are part of busybox.  If you're in massively size
constrained systems, why not just use busybox?

Ross

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [meta-oe][PATCH v5] procps: split ps and sysctl into individual packages
  2021-01-12 14:09 ` [OE-core] " Ross Burton
@ 2021-01-12 18:57   ` Sinan Kaya
  0 siblings, 0 replies; 3+ messages in thread
From: Sinan Kaya @ 2021-01-12 18:57 UTC (permalink / raw)
  To: Ross Burton; +Cc: OE-core

On 1/12/2021 9:09 AM, Ross Burton wrote:
> On Wed, 16 Dec 2020 at 22:16, Sinan Kaya <okaya@kernel.org> wrote:
>> Move the ps and sysctl tools into its own package. Useful for
>> size constrained systems that only want the ps and/or sysctl tools.
> Both of these are part of busybox.  If you're in massively size
> constrained systems, why not just use busybox?

That's true. I needed more functionality for these two specific tools.
The rest is all busybox as you suggested.

To be fair, ps in busybox really sucks IMO.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-12 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 22:16 [meta-oe][PATCH v5] procps: split ps and sysctl into individual packages Sinan Kaya
2021-01-12 14:09 ` [OE-core] " Ross Burton
2021-01-12 18:57   ` Sinan Kaya

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.