[oe] What to do with obsolete kernel modules

Phil Blundell pb at reciva.com
Mon Nov 24 12:23:21 UTC 2008


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

> my problem looks like this:
> 
> 
> root at 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 at 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?

If this is happening because xt-tcpudp is now providing the
functionality that used to be in xt-physdev, and there is never any
reason why anybody would want to install xt-physdev anymore, you should
set kernel-module-xt-tcpudp to Replace: and Conflicts: with
kernel-module-xt-physdev.

If this is more of a distro policy decision, and you just want to switch
from xt-physdev to xt-tcpudp, you could put the Conflicts: in some
appropriate task package instead (presumably the one which used to
depend on kernel-module-xt-physdev and now depends on
kernel-module-xt-tcpudp).

Beyond that, though, it's hard to say much without knowing more of the
background to your issue.  Maybe you could explain what exactly you are
trying to achieve and how this situation came about.

p.






More information about the Openembedded-devel mailing list