All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rootfs_ipk.bbclass: fix BAD_RECOMMENDATIONS
@ 2010-02-24 20:52 Denys Dmytriyenko
  2010-02-24 21:00 ` Phil Blundell
  0 siblings, 1 reply; 8+ messages in thread
From: Denys Dmytriyenko @ 2010-02-24 20:52 UTC (permalink / raw)
  To: openembedded-devel

New opkg requires full and correct package name, version, revision and
architecture to be specified when requiring de-installation of a package.
Collect that info from opkg-info.

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
---
 classes/rootfs_ipk.bbclass |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index 38d6121..c32e4e3 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -36,16 +36,19 @@ fakeroot rootfs_ipk_do_rootfs () {
 	mkdir -p ${IMAGE_ROOTFS}${libdir}/opkg/
 
 	STATUS=${IMAGE_ROOTFS}${libdir}/opkg/status
+
+	opkg-cl ${IPKG_ARGS} update
+
 	# prime the status file with bits that we don't want
 	for i in ${BAD_RECOMMENDATIONS}; do
-		echo "Package: $i" >> $STATUS
-		echo "Architecture: ${TARGET_ARCH}" >> $STATUS
-		echo "Status: deinstall ok not-installed" >> $STATUS
-		echo >> $STATUS
+		infln="`opkg-cl ${IPKG_ARGS} info $i | grep -e '^Package:' -e '^Architecture:' -e '^Version:'`"
+		if [ ! -z "$infln" ]; then
+			echo "$infln" >> $STATUS
+			echo "Status: deinstall ok not-installed" >> $STATUS
+			echo >> $STATUS
+		fi
 	done
 
-	opkg-cl ${IPKG_ARGS} update
-
 	# Uclibc builds don't provide this stuff...
 	if [ x${TARGET_OS} = "xlinux" ] || [ x${TARGET_OS} = "xlinux-gnueabi" ] ; then 
 		if [ ! -z "${LINGUAS_INSTALL}" ]; then
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] rootfs_ipk.bbclass: Fix BAD_RECOMMENDATIONS.
@ 2010-08-18  5:51 Graham Gower
  2010-08-19  5:32 ` Martin Jansa
  0 siblings, 1 reply; 8+ messages in thread
From: Graham Gower @ 2010-08-18  5:51 UTC (permalink / raw)
  To: openembedded-devel

See http://code.google.com/p/opkg/source/detail?r=553
And previous discussions:
http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg01423.html
http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg04051.html

Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
 classes/rootfs_ipk.bbclass           |    2 +-
 conf/distro/include/sane-srcrevs.inc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index 915e3d7..77e573c 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -41,7 +41,7 @@ fakeroot rootfs_ipk_do_rootfs () {
 	for i in ${BAD_RECOMMENDATIONS}; do
 		echo "Package: $i" >> $STATUS
 		echo "Architecture: ${TARGET_ARCH}" >> $STATUS
-		echo "Status: deinstall ok not-installed" >> $STATUS
+		echo "Status: deinstall hold not-installed" >> $STATUS
 		echo >> $STATUS
 	done
 
diff --git a/conf/distro/include/sane-srcrevs.inc b/conf/distro/include/sane-srcrevs.inc
index bfce5ad..6efdd21 100644
--- a/conf/distro/include/sane-srcrevs.inc
+++ b/conf/distro/include/sane-srcrevs.inc
@@ -1,5 +1,5 @@
 # this is alphabetical!
 # only SRCREVs included in more recipes should be here, otherwise put sane SRCREV to recipe directly
 
-OPKG_SRCREV ?= "550"
+OPKG_SRCREV ?= "554"
 EFL_SRCREV ?= "50438"
-- 
1.7.1




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

end of thread, other threads:[~2010-08-19  5:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 20:52 [PATCH] rootfs_ipk.bbclass: fix BAD_RECOMMENDATIONS Denys Dmytriyenko
2010-02-24 21:00 ` Phil Blundell
2010-02-24 21:48   ` Graham Gower
2010-02-24 21:59     ` Phil Blundell
2010-02-24 23:06       ` Denys Dmytriyenko
2010-02-24 23:15         ` Phil Blundell
  -- strict thread matches above, loose matches on Subject: below --
2010-08-18  5:51 [PATCH] rootfs_ipk.bbclass: Fix BAD_RECOMMENDATIONS Graham Gower
2010-08-19  5:32 ` Martin Jansa

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.