Todays rant: opkg - not giving me the right choices

Torfinn Ingolfsen tingox at gmail.com
Sun Aug 17 15:48:28 CEST 2008


Hello,

Linux and Openmoko is all about choice. This is a good thing.

<rant on>
Why isn't there a way to tell opkg that I want a to install a specific
version, name or whatever of a package?
Instead of the one that opkg thinks is "latest"?
If I know that opkg is installing the wrong version of a (available)
package, I want to be able to override what opkg thinks.
Ye, even if it means that I will shoot my own foot!
<rant off>

Example: right now there are two packages named "kernel" available:
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

(This is a FreeRunner, not a 1973).
So I let opkg install it:
root at om-gta02:~# opkg install kernel
Installing kernel
(2:2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01) to
root...
Downloading http://people.openmoko.org/~zecke/om2008.8-testing/neo1973/kernel_2.6.24+git75940+27fc8d82e365c47065f3a9240bfe21e67a50edf2-r1.01_neo1973.opk
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.
Configuring kernel
update-alternatives: Linking //boot/uImage to uImage-2.6.24

Ok, lets see if opkg did install the correct one:
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: install user 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


No, it didn't. Crap!

So, how do I fix this?
-- 
Regards,
Torfinn Ingolfsen




More information about the community mailing list