Re: [Angstrom-devel] [meta-angstrom][v2014.06] update-alternatives: use package created by opkg-utils

2014-07-16 Thread Khem Raj
On Jul 14, 2014 12:52 PM, mk max.oss...@gmail.com wrote:

 Hi Khem

   Without this patch the opkg-utils recipe is built and the opkg-utils
package is
   installed for VIRTUAL-RUNTIME_update-alternatives.
 
  Please cherry-pick following from master
 
  commit 14e08075a40d8959332f6f8c1f70d4d129544f9d
 
 This commit is already part of the angstrom-v2014.06-yocto1.6 branch.

 The issue is that each recipe which uses the update-alternatives.bbclass
 (e.g. busybox) gets VIRTUAL-RUNTIME_update-alternatives added to its
 RDEPENDS.

http://cgit.openembedded.org/openembedded-core/tree/meta/classes/update-alternatives.bbclass?h=daisy#n225

 Without this patch opkg-utils (plus a bunch of python packages it
 depends on) gets installed instead of update-alternatives-opkg.
 I tried this on a fresh checkout of angstrom-v2014.06-yocto1.6
 and a build of
 MACHINE=beagleboard ./oebb.sh bitbake console-image

 The recipe opkg-utils builds the packages opkg-utils and
 update-alternatives-opkg. So
 PREFERRED_PROVIDER_virtual/update-alternatives-native and
 PREFERRED_PROVIDER_virtual/update-alternative should be set to the
 recipe and
 ANGSTROM_IPK_UPDATE_ALTERNATIVES, DISTRO_UPDATE_ALTERNATIVES,
 VIRTUAL-RUNTIME_update-alternatives to the package.

i see. this should be ok then


 Am I missing something

 Regards
 Max




___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


Re: [Angstrom-devel] [meta-angstrom][v2014.06] update-alternatives: use package created by opkg-utils

2014-07-14 Thread Khem Raj
On Sun, Jul 13, 2014 at 6:43 AM, Max Krummenacher max.oss...@gmail.com wrote:
 In daisy update-alternatives has been moved from opkg to the opkg-utils 
 recipe.
 opkg-utils now creates an additional package update-alternatives-opkg.

 Without this patch the opkg-utils recipe is built and the opkg-utils package 
 is
 installed for VIRTUAL-RUNTIME_update-alternatives.

Please cherry-pick following from master

commit 14e08075a40d8959332f6f8c1f70d4d129544f9d

Author: Khem Raj raj.k...@gmail.com

Date:   Wed Jan 22 10:30:06 2014 -0800


Adjust to the omission of opkg UPDATE_ALTERNATIVES change from OE-Core



Signed-off-by: Khem Raj raj.k...@gmail.com



and adjust if needed.

 ---
  conf/distro/include/angstrom-package-ipk.inc | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

 diff --git a/conf/distro/include/angstrom-package-ipk.inc 
 b/conf/distro/include/angstrom-package-ipk.inc
 index 7e0c68c..8a9894c 100644
 --- a/conf/distro/include/angstrom-package-ipk.inc
 +++ b/conf/distro/include/angstrom-package-ipk.inc
 @@ -4,12 +4,12 @@ ANGSTROM_FEED_CONFIGS ?= angstrom-feed-configs

  EXTRAOPKGCONFIG = opkg-config-base ${ANGSTROM_FEED_CONFIGS}

 -ANGSTROM_IPK_UPDATE_ALTERNATIVES ?= opkg-utils
 +ANGSTROM_IPK_UPDATE_ALTERNATIVES ?= update-alternatives-opkg

  DISTRO_UPDATE_ALTERNATIVES = ${ANGSTROM_IPK_UPDATE_ALTERNATIVES}

  # we need the same provider for opkg and u-a
  PREFERRED_PROVIDER_virtual/update-alternatives-native ?= opkg-utils-native
 -PREFERRED_PROVIDER_virtual/update-alternatives = 
 ${ANGSTROM_IPK_UPDATE_ALTERNATIVES}
 +PREFERRED_PROVIDER_virtual/update-alternatives = opkg-utils
  VIRTUAL-RUNTIME_update-alternatives = ${ANGSTROM_IPK_UPDATE_ALTERNATIVES}

 --
 1.8.4.5


 ___
 Angstrom-distro-devel mailing list
 Angstrom-distro-devel@linuxtogo.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


Re: [Angstrom-devel] [meta-angstrom][v2014.06] update-alternatives: use package created by opkg-utils

2014-07-14 Thread mk
Hi Khem

  Without this patch the opkg-utils recipe is built and the opkg-utils 
  package is
  installed for VIRTUAL-RUNTIME_update-alternatives.
 
 Please cherry-pick following from master
 
 commit 14e08075a40d8959332f6f8c1f70d4d129544f9d
 
This commit is already part of the angstrom-v2014.06-yocto1.6 branch.

The issue is that each recipe which uses the update-alternatives.bbclass
(e.g. busybox) gets VIRTUAL-RUNTIME_update-alternatives added to its
RDEPENDS.
http://cgit.openembedded.org/openembedded-core/tree/meta/classes/update-alternatives.bbclass?h=daisy#n225

Without this patch opkg-utils (plus a bunch of python packages it
depends on) gets installed instead of update-alternatives-opkg. 
I tried this on a fresh checkout of angstrom-v2014.06-yocto1.6
and a build of
MACHINE=beagleboard ./oebb.sh bitbake console-image

The recipe opkg-utils builds the packages opkg-utils and
update-alternatives-opkg. So
PREFERRED_PROVIDER_virtual/update-alternatives-native and 
PREFERRED_PROVIDER_virtual/update-alternative should be set to the
recipe and 
ANGSTROM_IPK_UPDATE_ALTERNATIVES, DISTRO_UPDATE_ALTERNATIVES,
VIRTUAL-RUNTIME_update-alternatives to the package.

Am I missing something

Regards 
Max





___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


[Angstrom-devel] [meta-angstrom][v2014.06] update-alternatives: use package created by opkg-utils

2014-07-13 Thread Max Krummenacher
In daisy update-alternatives has been moved from opkg to the opkg-utils recipe.
opkg-utils now creates an additional package update-alternatives-opkg.

Without this patch the opkg-utils recipe is built and the opkg-utils package is
installed for VIRTUAL-RUNTIME_update-alternatives.
---
 conf/distro/include/angstrom-package-ipk.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/conf/distro/include/angstrom-package-ipk.inc 
b/conf/distro/include/angstrom-package-ipk.inc
index 7e0c68c..8a9894c 100644
--- a/conf/distro/include/angstrom-package-ipk.inc
+++ b/conf/distro/include/angstrom-package-ipk.inc
@@ -4,12 +4,12 @@ ANGSTROM_FEED_CONFIGS ?= angstrom-feed-configs
 
 EXTRAOPKGCONFIG = opkg-config-base ${ANGSTROM_FEED_CONFIGS}
 
-ANGSTROM_IPK_UPDATE_ALTERNATIVES ?= opkg-utils
+ANGSTROM_IPK_UPDATE_ALTERNATIVES ?= update-alternatives-opkg
 
 DISTRO_UPDATE_ALTERNATIVES = ${ANGSTROM_IPK_UPDATE_ALTERNATIVES}
 
 # we need the same provider for opkg and u-a
 PREFERRED_PROVIDER_virtual/update-alternatives-native ?= opkg-utils-native
-PREFERRED_PROVIDER_virtual/update-alternatives = 
${ANGSTROM_IPK_UPDATE_ALTERNATIVES}
+PREFERRED_PROVIDER_virtual/update-alternatives = opkg-utils
 VIRTUAL-RUNTIME_update-alternatives = ${ANGSTROM_IPK_UPDATE_ALTERNATIVES}
 
-- 
1.8.4.5


___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel