Received: from [124.219.5.209] (helo=aakash.openmoko.org) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1L4ayc-0001ba-4o for openembedded-devel@lists.openembedded.org; Mon, 24 Nov 2008 13:55:42 +0100 Received: from [172.16.23.192] (helo=buddha.tw.openmoko.com) by aakash.openmoko.org with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1L4avg-0004ao-FC for openembedded-devel@lists.openembedded.org; Mon, 24 Nov 2008 20:52:50 +0800 Received: from john by buddha.tw.openmoko.com with local (Exim 4.69) (envelope-from ) id 1L4asx-0000RD-PB for openembedded-devel@lists.openembedded.org; Mon, 24 Nov 2008 20:49:51 +0800 Date: Mon, 24 Nov 2008 20:49:51 +0800 From: John Lee To: openembedded-devel@lists.openembedded.org Message-ID: <20081124124951.GZ2475@buddha.tw.openmoko.com> Mail-Followup-To: openembedded-devel@lists.openembedded.org References: <20081124090648.GU2475@buddha.tw.openmoko.com> <1227522398.31396.4.camel@mill.internal.reciva.com> <20081124114052.GX2475@buddha.tw.openmoko.com> <1227529401.31396.26.camel@mill.internal.reciva.com> MIME-Version: 1.0 In-Reply-To: <1227529401.31396.26.camel@mill.internal.reciva.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: 172.16.23.192 X-SA-Exim-Mail-From: john_lee@openmoko.com X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on aakash.openmoko.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.7-deb X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on aakash.openmoko.org) Subject: Re: What to do with obsolete kernel modules X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2008 12:55:42 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 24, 2008 at 12:23:21PM +0000, Phil Blundell wrote: > On Mon, 2008-11-24 at 19:40 +0800, John Lee wrote: > > but that will only happen if you changed from, say, 2.6.24 to 2.6.26. > > > > if just the git rev changed such as > > a1e97c611253511ffc2d8c45e3e6d6894fa03fa3 to > > 6e2a723ef54ee2e739c34786981b2c508db803c1 > > > > then opkg wouldn't know about it. > > This is a packaging problem. If you want opkg to be able to > discriminate kernel versions at this level then you need to specify the > version in the Depends. Like: > > Depends: update-modules, kernel-2.6.24 (= 2:2.6.24+git75969+a1e97c611253511ffc2d8c45e3e6d6894fa03fa3-r1.01), kernel-module-x-tables Thanks for your reply. These dependencies actually come from kernel.bbclass, where it sets the RDEPENDS of each kernel-module-*. It seems I need to modify kernel.bbclass to get what I want, so I asked here first. > > my problem looks like this: > > > > > > root@om-gta02:~# opkg status kernel-module-xt-physdev > > Package: kernel-module-xt-physdev > > Version: 2:2.6.24+git75969+a1e97c611253511ffc2d8c45e3e6d6894fa03fa3-r1.01 > > Depends: update-modules, kernel-2.6.24, kernel-module-x-tables > > Status: install ok installed > > Architecture: neo1973 > > Installed-Time: 1226894980 > > > > root@om-gta02:~# opkg status kernel-module-xt-tcpudp > > Package: kernel-module-xt-tcpudp > > Version: 3:2.6.24+gitr1+6e2a723ef54ee2e739c34786981b2c508db803c1-r2 > > Depends: update-modules, kernel-2.6.24, kernel-module-x-tables > > Status: install user installed > > Architecture: om-gta02 > > To be honest I am not exactly sure what you are trying to say here. I > guess you want kernel-module-xt-physdev uninstalled in favour of > kernel-module-xt-tcpudp, right? I use these 2 packages as example because this situation actually should not happen. I installed a new set of kernel (3:xxx) but some of the old modules are still there. (2:xxx) These two packages are unrelated to each other so one cannot relace the other. - John