Hi guys,<br><br>I've played around with maemo-optify yesterday and decided to instead of creating the paths in the package subdir, to create a symlink to /opt and drop everything there before packaging. Wrong move, dpkg-deb doesn't follow symlinks, it packages them :) So, the logical step was to instead of symlink to /opt, to create home/opt in the package subdir and symlink opt/ to it. That worked and I have a package ready that will work in the device, but I'm hesitant to try it in the autobuilder because if the autobuilder is like scratchbox, then the package will be installed to /home/opt but the /opt symlinks will point to somewhere else (/targets/links/opt) and the build will fail anyway.<br>
<br>So my question is - is this the right way to go about this and can I control where the /opt dir is symlinked to in the autobuilder?<br><br>Regards:<br>Bundyo<br><br><div class="gmail_quote">On Thu, Oct 22, 2009 at 2:35 AM, Nathan Anderson <span dir="ltr"><<a href="mailto:nathan@andersonsplace.net">nathan@andersonsplace.net</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 dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Kamen,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span> <font color="#0000ff" face="Arial" size="2">I build both binary target and source targets
debs in my scratchbox before I upload. For instance last night
I had to rebuild the binary debs about 20 times (trying to get a weird make file
rule to work). Once I got it working then I would copy my rules to a fresh
copy and re-run a source deb then re-run a binary once more just to make sure it
wasn't "left" over stuff causing a success. ;-)</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"> So, I don't think it has anything to do with
the scratchbox. I suspect it as Ed found something to do with the symlink
-> directory or something in their on the
auto-builder. </font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Nathan.</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Kamen Bundev [mailto:<a href="mailto:bundyo@gmail.com" target="_blank">bundyo@gmail.com</a>]
<br><b>Sent:</b> Wednesday, October 21, 2009 6:14 PM<div><div></div><div class="h5"><br><b>To:</b> Nathan
Anderson<br><b>Cc:</b> <a href="mailto:maemo-developers@maemo.org" target="_blank">maemo-developers@maemo.org</a><br><b>Subject:</b> Re:
Maemo-Optify & Builder Bots = Broken?<br></div></div></font><br></div><div><div></div><div class="h5">
<div></div>Nah, that's not enough. Still fails.<br><br>Another difference is
that I'm building my optified package in scratchbox before upload and the other
people are using the autobuilder, so the problem should be somewhere
else.<br><br>Regards:<br>Bundyo<br><br>
<div class="gmail_quote">On Thu, Oct 22, 2009 at 2:09 AM, Kamen Bundev <span dir="ltr"><<a href="mailto:bundyo@gmail.com" target="_blank">bundyo@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;">Nah,
that's not enough. Still fails.<br><br>Regards:<br>Bundyo
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On Thu, Oct 22, 2009 at 12:52 AM, Kamen Bundev <span dir="ltr"><<a href="mailto:bundyo@gmail.com" target="_blank">bundyo@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>Looks like the only difference here is that my /opt should be pointing
to /targets/links/opt which is symlinked to the proper target on target
change. Uploading the new package to extras
now.<br><br>Regards:<br>Bundyo<br><br></div>
<div>
<div></div>
<div>
<div class="gmail_quote">On Thu, Oct 22, 2009 at 12:39 AM, Nathan Anderson
<span dir="ltr"><<a href="mailto:nathan@andersonsplace.net" target="_blank">nathan@andersonsplace.net</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;">Ed,<br><br>
I believe this is what you are
asking:<br>FREMANTLE_ARMEL cs2007q3-glibc2.5-arm7<br>FREMANTLE_X86
cs2007q3-glibc2.5-i486<br><font color="#888888"><br><br>Nathan<br></font>
<div><br>-----Original Message-----<br>From: Ed Bartosh [mailto:<a href="mailto:bartosh@gmail.com" target="_blank">bartosh@gmail.com</a>]<br></div>
<div>Sent: Wednesday, October 21, 2009 4:03 PM<br>To: Nathan
Anderson<br>Cc: <a href="mailto:maemo-developers@maemo.org" target="_blank">maemo-developers@maemo.org</a><br>Subject: Re: Maemo-Optify
& Builder Bots = Broken?<br><br></div>
<div>
<div></div>
<div>2009/10/21 Nathan Anderson <<a href="mailto:nathan@andersonsplace.net" target="_blank">nathan@andersonsplace.net</a>>:<br>>
Ed,<br>><br>> Sure can (and following the
chain).<br>><br>> ls -l / | grep opt<br>>
lrwxrwxrwx 1 root root 18 Oct
6 22:36 opt -><br>> /targets/links/opt<br>><br>> ls -l
/targets/links/ | grep opt<br>> lrwxrwxrwx
1 maemo 1000 26 Oct 19 16:55 opt -><br>>
/targets/FREMANTLE_X86/opt<br>><br>I've found the difference!<br>In
your environment /targets/<target>/opt is a directory. In
autobuilder<br>environment it's a symlink:<br><br>> ls -l
/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/<br>>
|grep opt<br>lrwxrwxrwx 1 builder1 builder1 9 Oct 21
23:50 opt -> /home/opt<br><br>And it looks like it becomes symlink
after rootstrap unpacking.
Look:<br>[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~]
> sb-conf
re<br>-f<br>[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~]
> ls
-l<br>/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep
opt<br>drwxrwxr-x 2 1005 1006 4096 Oct 21 23:56
opt<br>[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] >
sb-conf in<br>--etc
--devkits<br>[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~]
> ls
-l<br>/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep
opt<br>drwxrwxr-x 2 builder1 builder1 4096 Oct 21 23:56
opt<br>[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] >
sb-conf in<br>--fakeroot Installing fakeroot version
1.4.2.1...<br>[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c:
~] > ls
-l<br>/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep
opt<br>drwxrwxr-x 2 builder1 builder1 4096 Oct 21 23:56
opt<br>[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c: ~] >
sb-conf
rs<br>/scratchbox/packages/maemo-sdk-rootstrap_5.0_armel.tgz<br>Unpacking
rootstrap...<br>[sbox-maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c:
~] > ls
-l<br>/targets/maemo5-arm-183e1d1de998260fa89b870d65b22998c6908b6c/ |grep
opt<br>lrwxrwxrwx 1 1005 1006 9 Oct 21 23:57 opt ->
/home/opt<br><br>So, the difference is in rootstraps. Tell me which
rootstrap do you use and<br>I'll compare it with the one autobuilder
uses.<br><br>--<br>BR,<br>Ed<br><br>_______________________________________________<br>maemo-developers
mailing list<br><a href="mailto:maemo-developers@maemo.org" target="_blank">maemo-developers@maemo.org</a><br><a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</div></div></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div><br></div></div></div>
</blockquote></div><br>