Todays rant: opkg - not giving me the right choices

Torfinn Ingolfsen tingox at gmail.com
Sun Aug 17 17:42:24 CEST 2008


More info.

On Sun, Aug 17, 2008 at 3:55 PM, Michael 'Mickey' Lauer
<mickey at openmoko.org> wrote:
> Tried giving an absolute path or URI to opkg?

Ok, I found the package in question at
http://buildhost.openmoko.org/daily-feed/om-gta02/kernel-2.6.24_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk

Now, lets see if it helps giving opkg an absolute path:
root at om-gta02:~# opkg install
http://buildhost.openmoko.org/daily-feed/om-gta02/kernel-2.6.24_2.6.24
+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Downloading http://buildhost.openmoko.org/daily-feed/om-gta02/kernel-2.6.24_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Package kernel-2.6.24
(2:2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01)
installed in root is up to date.


Hmm, that doesn't look  promising. Checking:
root at om-gta02:~# opkg info kernel
Package: kernel
Version: 2:2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2
Depends: kernel-2.6.24
Status: unknown ok not-installed
Section: kernel
Architecture: om-gta02
maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
MD5Sum: bf0e22639aa23f82bc8346aae598c824
Size: 936
Filename: kernel_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Source: git://git.openmoko.org/git/kernel.git;protocol=git;branch=stable
file://0001-squashfs-with-lzma.patch;patch=1
file://0002-squashfs-initrd.patch;patch=1
file://0003-squashfs-force-O2.patch;patch=1
file://0004-squashfs-Kconfig.patch;patch=1
file://0005-squashfs-Makefile.patch;patch=1
Description: Linux 2.6.x (development) kernel for FIC SmartPhones
shipping w/ Openmoko

Package: kernel
Version: 2:2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01
Depends: kernel-2.6.24
Status: unknown ok not-installed
Section: kernel
Architecture: neo1973
maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
MD5Sum: d14dff18ae1e43a8f8c070282b091fdc
Size: 894
Filename: kernel_2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01_neo1973.opk
Source: git://git.openmoko.org/git/kernel.git;protocol=git;branch=stable
file://turn_off_EVBUG.patch;patch=1
Description: Linux 2.6.x (development) kernel for FIC SmartPhones
shipping w/ Openmoko

Hmm, it seems like it didn't install any package at all. Let's force
it with -force-overwrite:
root at om-gta02:~# opkg -force-overwrite install
http://buildhost.openmoko.org/daily-feed/om-gta02/ker
nel-2.6.24_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Downloading http://buildhost.openmoko.org/daily-feed/om-gta02/kernel-2.6.24_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Package kernel-2.6.24
(2:2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01)
installed in root is up to date.

That didn't help either, or did ti?
root at om-gta02:~# opkg info kernel
Package: kernel
Version: 2:2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2
Depends: kernel-2.6.24
Status: unknown ok not-installed
Section: kernel
Architecture: om-gta02
maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
MD5Sum: bf0e22639aa23f82bc8346aae598c824
Size: 936
Filename: kernel_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Source: git://git.openmoko.org/git/kernel.git;protocol=git;branch=stable
file://0001-squashfs-with-lzma.patch;patch=1
file://0002-squashfs-initrd.patch;patch=1
file://0003-squashfs-force-O2.patch;patch=1
file://0004-squashfs-Kconfig.patch;patch=1
file://0005-squashfs-Makefile.patch;patch=1
Description: Linux 2.6.x (development) kernel for FIC SmartPhones
shipping w/ Openmoko

Package: kernel
Version: 2:2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01
Depends: kernel-2.6.24
Status: unknown ok not-installed
Section: kernel
Architecture: neo1973
maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
MD5Sum: d14dff18ae1e43a8f8c070282b091fdc
Size: 894
Filename: kernel_2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01_neo1973.opk
Source: git://git.openmoko.org/git/kernel.git;protocol=git;branch=stable
file://turn_off_EVBUG.patch;patch=1
Description: Linux 2.6.x (development) kernel for FIC SmartPhones
shipping w/ Openmoko

Nope. Perhaps '-force-depends' will help:
root at om-gta02:~# opkg -force-depends install
http://buildhost.openmoko.org/daily-feed/om-gta02/kerne
l-2.6.24_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Downloading http://buildhost.openmoko.org/daily-feed/om-gta02/kernel-2.6.24_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Package kernel-2.6.24
(2:2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01)
installed in root is up to date.

Crap, that ddn't help either:
root at om-gta02:~# opkg info kernel
Package: kernel
Version: 2:2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2
Depends: kernel-2.6.24
Status: unknown ok not-installed
Section: kernel
Architecture: om-gta02
maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
MD5Sum: bf0e22639aa23f82bc8346aae598c824
Size: 936
Filename: kernel_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Source: git://git.openmoko.org/git/kernel.git;protocol=git;branch=stable
file://0001-squashfs-with-lzma.patch;patch=1
file://0002-squashfs-initrd.patch;patch=1
file://0003-squashfs-force-O2.patch;patch=1
file://0004-squashfs-Kconfig.patch;patch=1
file://0005-squashfs-Makefile.patch;patch=1
Description: Linux 2.6.x (development) kernel for FIC SmartPhones
shipping w/ Openmoko

Package: kernel
Version: 2:2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01
Depends: kernel-2.6.24
Status: unknown ok not-installed
Section: kernel
Architecture: neo1973
maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
MD5Sum: d14dff18ae1e43a8f8c070282b091fdc
Size: 894
Filename: kernel_2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01_neo1973.opk
Source: git://git.openmoko.org/git/kernel.git;protocol=git;branch=stable
file://turn_off_EVBUG.patch;patch=1
Description: Linux 2.6.x (development) kernel for FIC SmartPhones
shipping w/ Openmoko


Why does opkg refuse to install a new package, when 'opkg info ..'
shows that no packages with that name are installed?


Anyway, I'm tired of this game now. Lets try something else:
root at om-gta02:~# mv /var/lib/opkg/daily-neo1973 .
root at om-gta02:~# mv /var/lib/opkg/daily-neo1973-updates .
root at om-gta02:~# opkg info kernel
Package: kernel
Version: 2:2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2
Depends: kernel-2.6.24
Status: unknown ok not-installed
Section: kernel
Architecture: om-gta02
maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
MD5Sum: bf0e22639aa23f82bc8346aae598c824
Size: 936
Filename: kernel_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Source: git://git.openmoko.org/git/kernel.git;protocol=git;branch=stable
file://0001-squashfs-with-lzma.patch;patch=1
file://0002-squashfs-initrd.patch;patch=1
file://0003-squashfs-force-O2.patch;patch=1
file://0004-squashfs-Kconfig.patch;patch=1
file://0005-squashfs-Makefile.patch;patch=1
Description: Linux 2.6.x (development) kernel for FIC SmartPhones
shipping w/ Openmoko

Now, lets see if opkg can deal with it.
root at om-gta02:~# opkg install kernel
Installing kernel
(2:2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2) to
root...
Downloading http://buildhost.openmoko.org/daily-feed/om-gta02//kernel_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Multiple packages (kernel-2.6.24 and kernel-2.6.24) providing same
name marked HOLD or PREFER.  Using latest.
Configuring kernel
update-alternatives: Linking //boot/uImage to uImage-2.6.24

Interesting. A check:
root at om-gta02:~# opkg info kernel
Package: kernel
Version: 2:2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2
Depends: kernel-2.6.24
Status: install user installed
Section: kernel
Architecture: om-gta02
maintainer: Angstrom Developers <angstrom-distro-devel at linuxtogo.org>
MD5Sum: bf0e22639aa23f82bc8346aae598c824
Size: 936
Filename: kernel_2.6.24+git33+88bf43840b9df0eb0a077a1394eb564be80a412e-r2_om-gta02.ipk
Source: git://git.openmoko.org/git/kernel.git;protocol=git;branch=stable
file://0001-squashfs-with-lzma.patch;patch=1
file://0002-squashfs-initrd.patch;patch=1
file://0003-squashfs-force-O2.patch;patch=1
file://0004-squashfs-Kconfig.patch;patch=1
file://0005-squashfs-Makefile.patch;patch=1
Description: Linux 2.6.x (development) kernel for FIC SmartPhones
shipping w/ Openmoko

At last - the correct package installed.

Finally, IMHO opkg is broken and should be fixed. Also, opkg lacks at
least one essential feature (the ability to specify what version of an
available package to install) and should be ehanced.
-- 
Regards,
Torfinn Ingolfsen,
Norway




More information about the community mailing list