From: "Sinan Kaya" <okaya@kernel.org>
To: openembedded-core@lists.openembedded.org
Cc: Sinan Kaya <okaya@kernel.org>
Subject: [meta-oe][PATCH v4 2/3] net-tools: split into binary packages
Date: Thu, 3 Dec 2020 23:28:25 +0000 [thread overview]
Message-ID: <20201203232826.28519-2-okaya@kernel.org> (raw)
In-Reply-To: <20201203232826.28519-1-okaya@kernel.org>
Support per binary package to not bloat the system with unneeded
tools.
Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
.../net-tools/net-tools_1.60-20181103.bb | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-20181103.bb b/meta/recipes-extended/net-tools/net-tools_1.60-20181103.bb
index e97731073e8..f9253123c24 100644
--- a/meta/recipes-extended/net-tools/net-tools_1.60-20181103.bb
+++ b/meta/recipes-extended/net-tools/net-tools_1.60-20181103.bb
@@ -21,6 +21,7 @@ UPSTREAM_VERSION_UNKNOWN = "1"
S = "${WORKDIR}/git"
inherit gettext
+inherit lib_subpackage
# The Makefile is lame, no parallel build
PARALLEL_MAKE = ""
@@ -93,18 +94,10 @@ base_bindir_progs = "ifconfig netstat route \
${@bb.utils.contains('PACKAGECONFIG', 'hostname', 'dnsdomainname domainname hostname nisdomainname ypdomainname', '', d)} \
"
-ALTERNATIVE_${PN} = "${base_sbindir_progs} ${base_bindir_progs}"
ALTERNATIVE_${PN}-doc += "${@bb.utils.contains('PACKAGECONFIG', 'hostname', 'hostname.1 dnsdomainname.1', '', d)}"
ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1"
ALTERNATIVE_LINK_NAME[dnsdomainname.1] = "${mandir}/man1/dnsdomainname.1"
ALTERNATIVE_PRIORITY[hostname.1] = "10"
-
-python __anonymous() {
- for prog in d.getVar('base_sbindir_progs').split():
- d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_sbindir'), prog))
- for prog in d.getVar('base_bindir_progs').split():
- d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_bindir'), prog))
-}
ALTERNATIVE_PRIORITY = "100"
BBCLASSEXTEND = "native nativesdk"
--
2.17.1
next prev parent reply other threads:[~2020-12-03 23:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-03 23:28 [meta-oe][PATCH v4 1/3] introduce lib_subpackage Sinan Kaya
2020-12-03 23:28 ` Sinan Kaya [this message]
2020-12-03 23:28 ` [meta-oe][PATCH v4 3/3] procps: split into binary subpackages Sinan Kaya
2020-12-04 11:01 ` [OE-core] [meta-oe][PATCH v4 1/3] introduce lib_subpackage Phil Blundell
2020-12-04 13:30 ` Sinan Kaya
2020-12-05 22:23 ` Phil Blundell
2020-12-06 0:54 ` Sinan Kaya
[not found] ` <164DFA8489EB0A7A.29396@lists.openembedded.org>
2020-12-09 23:47 ` Sinan Kaya
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=20201203232826.28519-2-okaya@kernel.org \
--to=okaya@kernel.org \
--cc=openembedded-core@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox