All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dexuan Cui <dexuan.cui@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 5/5] default-providers.inc: define update-alternatives and -native properly
Date: Tue,  6 Sep 2011 21:08:39 +0800	[thread overview]
Message-ID: <9bbc11b2a451bedd7ad79567ce3d58c1b6a9a5de.1315313790.git.dexuan.cui@intel.com> (raw)
In-Reply-To: <cover.1315313790.git.dexuan.cui@intel.com>
In-Reply-To: <cover.1315313790.git.dexuan.cui@intel.com>

For DEB packaging, we should use the -dpkg versions;
For IPK packaging, we should use the -cworth and opkg versions.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
---
 meta/conf/distro/include/default-providers.inc |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta/conf/distro/include/default-providers.inc b/meta/conf/distro/include/default-providers.inc
index d51ac64..f818f37 100644
--- a/meta/conf/distro/include/default-providers.inc
+++ b/meta/conf/distro/include/default-providers.inc
@@ -6,15 +6,14 @@ PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86"
 PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
 PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib"
-PREFERRED_PROVIDER_virtual/update-alternatives ?= "update-alternatives-cworth"
-PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native"
+PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "${@base_conditional('IMAGE_PKGTYPE', 'deb', 'update-alternatives-dpkg-native', 'opkg-native', d)}"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
 PREFERRED_PROVIDER_xf86-video-intel ?= "xf86-video-intel"
 
 #
 # Default virtual runtime providers
 #
-VIRTUAL-RUNTIME_update-alternatives ?= "update-alternatives-cworth"
+VIRTUAL-RUNTIME_update-alternatives ?= "${@base_conditional('IMAGE_PKGTYPE', 'deb', 'update-alternatives-dpkg', 'update-alternatives-cworth', d)}"
 
 #
 # Default recipe providers
-- 
1.7.6




  parent reply	other threads:[~2011-09-06 13:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-06 13:08 [PATCH 0/5] patches to fix deb packaging: bug 1070 Dexuan Cui
2011-09-06 13:08 ` [PATCH 1/5] populate_sdk_deb.bbclass: add the missing parameter - for tar Dexuan Cui
2011-09-06 13:08 ` [PATCH 2/5] package_deb.bbclass: put the stderr into log.do_xxx-attemptonly.xxx Dexuan Cui
2011-09-06 13:08 ` [PATCH 3/5] dpkg, dpkg-native: fix DEPENDS, RDEPENDS and pkg_postinst_dpkg Dexuan Cui
2011-09-06 13:08 ` [PATCH 4/5] opkg: it should Rdepend on update-alternatives-cworth Dexuan Cui
2011-09-06 13:08 ` Dexuan Cui [this message]
2011-09-07  0:23 ` [PATCH 0/5] patches to fix deb packaging: bug 1070 Saul Wold
2011-09-07  4:06   ` Cui, Dexuan
2011-09-08  3:47 ` Saul Wold

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=9bbc11b2a451bedd7ad79567ce3d58c1b6a9a5de.1315313790.git.dexuan.cui@intel.com \
    --to=dexuan.cui@intel.com \
    --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 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.