<div class="gmail_quote">On Mon, Oct 26, 2009 at 7:07 PM, Ed Bartosh <span dir="ltr"><<a href="mailto:bartosh@gmail.com">bartosh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">2009/10/26 Luca Donaggio <<a href="mailto:donaggio@gmail.com">donaggio@gmail.com</a>>:<br>
> On Mon, Oct 26, 2009 at 4:40 PM, Ed Bartosh <<a href="mailto:bartosh@gmail.com">bartosh@gmail.com</a>> wrote:<br>
>><br>
>> 2009/10/26 Luca Donaggio <<a href="mailto:donaggio@gmail.com">donaggio@gmail.com</a>>:<br>
>> > The output from dpkg is exactly the same.<br>
>> > What do you mean by "Have you tried to install your optified packages<br>
>> > after<br>
>> > you created<br>
>> > /opt directory inside your target?" ?<br>
>> I thought it was failing before you re-created /opt. Probably I<br>
>> misunderstood the situation.<br>
>><br>
>> > I have:<br>
>> ><br>
>> > [sbox-FREMANTLE_X86: ~] > v /targets/links/opt<br>
>> > lrwxrwxrwx 1 cthulhu cthulhu 26 Oct 7 15:26 /targets/links/opt -><br>
>> > /targets/FREMANTLE_X86/opt<br>
>> ><br>
>> > and:<br>
>> ><br>
>> > [sbox-FREMANTLE_X86: ~] > v /targets/FREMANTLE_X86<br>
>> > total 76<br>
>> > [...]<br>
>> > drwxrwxr-x 2 cthulhu cthulhu 4096 Oct 7 15:04 opt<br>
>> > [..]<br>
>> ><br>
>> > but:<br>
>> ><br>
>> > [sbox-FREMANTLE_X86: ~] > v /opt<br>
>> > lrwxrwxrwx 1 cthulhu cthulhu 9 Oct 6 16:46 /opt -> /home/opt<br>
>> ><br>
>> You can read this thread:<br>
>><br>
>> <a href="http://lists.maemo.org/pipermail//maemo-developers/2009-October/021588.html" target="_blank">http://lists.maemo.org/pipermail//maemo-developers/2009-October/021588.html</a><br>
>> The error explained there is the same as yours.<br>
>><br>
>> I resolved it by removing /opt from rootstraps.<br>
>> Here is what I have in my target:<br>
>> [sbox-maemo5-arm: ~] > ls -la / | grep opt<br>
>> lrwxrwxrwx 1 root root 18 Oct 22 09:22 opt -> /targets/links/opt<br>
>><br>
>> [sbox-maemo5-arm: ~] > ls -la /targets/maemo5-arm/ |grep opt<br>
>> drwxrwxr-x 2 ed ed 4096 Oct 26 16:19 opt<br>
>><br>
>> And I'm able to install optified packages into this target:<br>
>> [sbox-maemo5-arm: ~] > fakeroot apt-get install clucene-core<br>
>> Reading package lists... Done<br>
>> Building dependency tree... Done<br>
>> The following NEW packages will be installed:<br>
>> clucene-core<br>
>> 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.<br>
>> Need to get 0B/319kB of archives.<br>
>> After unpacking 1085kB of additional disk space will be used.<br>
>> WARNING: The following packages cannot be authenticated!<br>
>> clucene-core<br>
>> Install these packages without verification [y/N]? y<br>
>> /scratchbox/tools/bin/sh: line 1: /usr/sbin/dpkg-preconfigure: No such<br>
>> file or directory<br>
>> Selecting previously deselected package clucene-core.<br>
>> (Reading database ... 6395 files and directories currently installed.)<br>
>> Unpacking clucene-core (from .../clucene-core_0.9.21b-0maemo1_armel.deb)<br>
>> ...<br>
>> Setting up clucene-core (0.9.21b-0maemo1) ...<br>
>> [sbox-maemo5-arm: ~] > dpkg -L clucene-core |grep opt<br>
>> /opt<br>
>> /opt/maemo<br>
>> /opt/maemo/usr<br>
>> /opt/maemo/usr/lib<br>
>> /opt/maemo/usr/lib/libclucene.so.0.0.0<br>
>><br>
>> --<br>
>> BR,<br>
>> Ed<br>
><br>
> Thank you Ed,<br>
><br>
> I've read that thread, but I was hoping for another (quicker) solution!<br>
> After changing the rootstrap do I need to re-install the whole environment?<br>
><br>
</div></div>I hope it would be enough to reset your targets and unpack rootstraps there.<br>
You can also try to make the same symlinks as I have instead of<br>
removing /opt from roostraps.<br>
Here is what I have:<br>
[sbox-maemo5-arm: ~] > file /opt<br>
/opt: symbolic link to `/targets/links/opt'<br>
[sbox-maemo5-arm: ~] > file /targets/links/opt<br>
/targets/links/opt: symbolic link to `/targets/maemo5-arm/opt'<br>
[sbox-maemo5-arm: ~] > file /targets/maemo5-arm/opt<br>
/targets/maemo5-arm/opt: directory<br>
<br>
The only difference I can see is that my symlinks point out to the<br>
directory which exists,<br>
so you can start from creating /home/opt. If it won't work then you<br>
can try to make the same symlinks that I have.<br>
<br>
--<br>
BR,<br>
<font color="#888888">Ed<br>
</font></blockquote></div><br><br>Thanks again Ed, manually recreating "/opt" symlink did it!<br>Before reading your mail I tried to link /opt against /targets/FREMANTLE_X86/opt, and it worked, but of course it wouldn't have under FREMANTLE_ARM.<br>
Linking /opt against /targets/links/opt did the trick!<br>Now I can install my packages with dpkg, at least - apt-get will still complain about /opt and the base-files package I think.<br><br>Luca Donaggio<br>