* [PATCH 0/1] pigz: set ALTERNATIVE for nativesdk package to empty
@ 2015-04-28 6:47 Chen Qi
2015-04-28 6:48 ` [PATCH 1/1] " Chen Qi
0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2015-04-28 6:47 UTC (permalink / raw)
To: openembedded-core
The following changes since commit a9eededcb33b2ee41a061298610126436dfc2c11:
ptest: add recommends to ptest-runner (2015-04-27 15:26:15 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib ChenQi/nativesdk-pigz-alternative
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/nativesdk-pigz-alternative
Chen Qi (1):
pigz: set ALTERNATIVE for nativesdk package to empty
meta/recipes-extended/pigz/pigz.inc | 3 +++
1 file changed, 3 insertions(+)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] pigz: set ALTERNATIVE for nativesdk package to empty
2015-04-28 6:47 [PATCH 0/1] pigz: set ALTERNATIVE for nativesdk package to empty Chen Qi
@ 2015-04-28 6:48 ` Chen Qi
0 siblings, 0 replies; 2+ messages in thread
From: Chen Qi @ 2015-04-28 6:48 UTC (permalink / raw)
To: openembedded-core
Set ALTERNATIVE for nativesdk package to empty to avoid warnings like below.
WARNING: pigz: NOT adding alternative provide xxx/bin/gunzip: xxx/bin/pigz does not exist
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-extended/pigz/pigz.inc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc
index c271f70..6a6a553 100644
--- a/meta/recipes-extended/pigz/pigz.inc
+++ b/meta/recipes-extended/pigz/pigz.inc
@@ -15,6 +15,7 @@ DEPENDS = "zlib"
inherit update-alternatives
+# do_install for target
do_install_class-target() {
# Install files into /bin (FHS), which is typical place for gzip
install -d ${D}${base_bindir}
@@ -23,6 +24,7 @@ do_install_class-target() {
ln -nsf pigz ${D}${base_bindir}/pigzcat
}
+# do_install for native and nativesdk package
do_install() {
install -d ${D}${bindir}
install ${B}/pigz ${D}${bindir}/gzip
@@ -32,6 +34,7 @@ do_install() {
ALTERNATIVE_PRIORITY = "80"
ALTERNATIVE_${PN} = "gunzip gzip zcat"
+ALTERNATIVE_${PN}_class-nativesdk = ""
ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip"
ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip"
ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-28 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-28 6:47 [PATCH 0/1] pigz: set ALTERNATIVE for nativesdk package to empty Chen Qi
2015-04-28 6:48 ` [PATCH 1/1] " Chen Qi
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.