Openmoko Bug #2109: Upgrade path error from Om2008.9 to testing

Openmoko Public Trac bugs at docs.openmoko.org
Wed Nov 5 08:14:25 CET 2008


#2109: Upgrade path error from Om2008.9 to testing
-------------------------+--------------------------------------------------
    Reporter:  john_lee  |        Owner:  tick        
        Type:  defect    |       Status:  accepted    
    Priority:  high      |    Milestone:              
   Component:  opkg      |      Version:  Om2008.9-dev
    Severity:  normal    |   Resolution:              
    Keywords:            |     Haspatch:  0           
   Blockedby:            |    Estimated:              
 Patchreview:            |     Blocking:              
Reproducible:  always    |  
-------------------------+--------------------------------------------------

Comment(by tick):

 I tried to upgrade libgobject-2.0-0 directly and get
 Collected errors:
  * Package libgobject-2.0-0 wants to install file
 /usr/lib/libgobject-2.0.so.0.1600.1
         But that file is already provided by package  * libglib-2.0-0
  * Package libgobject-2.0-0 wants to install file
 /usr/lib/libgobject-2.0.so.0
         But that file is already provided by package  * libglib-2.0-0


 I tried this and passed.

 root at om-gta02:/var/lib/opkg# opkg install libglib-2.0-0
 Upgrading libglib-2.0-0 on root from 2.16.1-r4 to 2.16.1-r5...
 Downloading
 http://192.168.0.200/build/deploy/glibc/opk/armv4t//libglib-2.0-0_2.16.1-r5_armv4t.opk
 Configuring libglib-2.0-0
 root at om-gta02:/var/lib/opkg# opkg install libgobject

 root at om-gta02:/var/lib/opkg# opkg install libgobject-2.0-0
 Installing libgobject-2.0-0 (2.16.1-r5) to root...
 Downloading
 http://192.168.0.200/build/deploy/glibc/opk/armv4t//libgobject-2.0-0_2.16.1-r5_armv4t.opk
 Configuring libgobject-2.0-0

 In /var/lib/opkg/oe-armv4t I got
 Package: libgobject-2.0-0
 Version: 2.16.1-r5
 Depends: libglib-2.0-0 (>= 2.16.1), libc6 (>= 2.6.1)
 Section: libs
 Architecture: armv4t
 Maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
 MD5Sum: fd7905f71886a4fe13e0ffc1aeb3e17b
 Size: 65848
 Filename: libgobject-2.0-0_2.16.1-r5_armv4t.opk
 Source:
 http://ftp.gnome.org/pub/GNOME/sources/glib/2.16/glib-2.16.1.tar.bz2 file
 ://glibconfig-sysdefs.h file:/
 Description: GLib is a general-purpose utility library, which provides
 many useful data types, macros, type con
 OE: glib-2.0
 HomePage: unknown
 Priority: optional


 That means opkg only knows libglib-2.0-0 (>= 2.16.1) while upgrading
 libgobject-2.0-0 and libglib-2.0-0 is indeed >= 2.16.1
 Therefore, opkg will not know it should upgrade libglib first.

 In order to solve this, I think the dependency should also consider PE and
 PR.

 Will this cause any side effect? Pondering....

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2109#comment:2>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list