[maemo-developers] Error installing optified packages in Fremantle SDK

From: Ed Bartosh bartosh at gmail.com
Date: Mon Oct 26 20:07:24 EET 2009
2009/10/26 Luca Donaggio <donaggio at gmail.com>:
> On Mon, Oct 26, 2009 at 4:40 PM, Ed Bartosh <bartosh at gmail.com> wrote:
>>
>> 2009/10/26 Luca Donaggio <donaggio at gmail.com>:
>> > The output from dpkg is exactly the same.
>> > What do you mean by "Have you tried to install your optified packages
>> > after
>> > you created
>> > /opt directory inside your target?" ?
>> I thought it was failing before you re-created /opt. Probably I
>> misunderstood the situation.
>>
>> > I have:
>> >
>> > [sbox-FREMANTLE_X86: ~] > v /targets/links/opt
>> > lrwxrwxrwx  1 cthulhu cthulhu 26 Oct  7 15:26 /targets/links/opt ->
>> > /targets/FREMANTLE_X86/opt
>> >
>> > and:
>> >
>> > [sbox-FREMANTLE_X86: ~] > v /targets/FREMANTLE_X86
>> > total 76
>> > [...]
>> > drwxrwxr-x   2 cthulhu cthulhu 4096 Oct  7 15:04 opt
>> > [..]
>> >
>> > but:
>> >
>> > [sbox-FREMANTLE_X86: ~] > v /opt
>> > lrwxrwxrwx  1 cthulhu cthulhu 9 Oct  6 16:46 /opt -> /home/opt
>> >
>> You can read this thread:
>>
>> http://lists.maemo.org/pipermail//maemo-developers/2009-October/021588.html
>> The error explained there is the same as yours.
>>
>> I resolved it by removing /opt from rootstraps.
>> Here is what I have in my target:
>> [sbox-maemo5-arm: ~] > ls -la / | grep opt
>> lrwxrwxrwx   1 root root   18 Oct 22 09:22 opt -> /targets/links/opt
>>
>> [sbox-maemo5-arm: ~] > ls -la /targets/maemo5-arm/ |grep opt
>> drwxrwxr-x   2 ed ed 4096 Oct 26 16:19 opt
>>
>> And I'm able to install optified packages into this target:
>> [sbox-maemo5-arm: ~] > fakeroot apt-get install clucene-core
>> Reading package lists... Done
>> Building dependency tree... Done
>> The following NEW packages will be installed:
>>  clucene-core
>> 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
>> Need to get 0B/319kB of archives.
>> After unpacking 1085kB of additional disk space will be used.
>> WARNING: The following packages cannot be authenticated!
>>  clucene-core
>> Install these packages without verification [y/N]? y
>> /scratchbox/tools/bin/sh: line 1: /usr/sbin/dpkg-preconfigure: No such
>> file or directory
>> Selecting previously deselected package clucene-core.
>> (Reading database ... 6395 files and directories currently installed.)
>> Unpacking clucene-core (from .../clucene-core_0.9.21b-0maemo1_armel.deb)
>> ...
>> Setting up clucene-core (0.9.21b-0maemo1) ...
>> [sbox-maemo5-arm: ~] > dpkg -L clucene-core |grep opt
>> /opt
>> /opt/maemo
>> /opt/maemo/usr
>> /opt/maemo/usr/lib
>> /opt/maemo/usr/lib/libclucene.so.0.0.0
>>
>> --
>> BR,
>> Ed
>
> Thank you Ed,
>
> I've read that thread, but I was hoping for another (quicker) solution!
> After changing the rootstrap do I need to re-install the whole environment?
>
I hope it would be enough to reset your targets and unpack rootstraps there.
You can also try to make the same symlinks as I have instead of
removing /opt from roostraps.
Here is what I have:
[sbox-maemo5-arm: ~] > file /opt
/opt: symbolic link to `/targets/links/opt'
[sbox-maemo5-arm: ~] > file /targets/links/opt
/targets/links/opt: symbolic link to `/targets/maemo5-arm/opt'
[sbox-maemo5-arm: ~] > file /targets/maemo5-arm/opt
/targets/maemo5-arm/opt: directory

The only difference I can see is that my symlinks point out to the
directory which exists,
so you can start from creating /home/opt. If it won't work then you
can try to make the same symlinks that I have.

-- 
BR,
Ed
More information about the maemo-developers mailing list