[maemo-developers] Build Server Configuration

From: Ed Bartosh bartosh at gmail.com
Date: Wed Jan 27 12:09:22 EET 2010
2010/1/27 Jeff Moe <moe at blagblagblag.org>:
> On Tuesday 26 January 2010 12:20:32 you wrote:
>> 2010/1/26 Jeff Moe <moe at blagblagblag.org>:
>> > On Tuesday 26 January 2010 02:02:52 you wrote:
>> >> 2010/1/26 Jeff Moe <moe at blagblagblag.org>:
>> >> > On Monday 25 January 2010 15:02:57 Ed Bartosh wrote:
>> >> > [chop]
>> >> >> # Additional apt-get parameters
>> >> >> config_opts['apt-get_options'] = '-o APT::Get::AllowUnauthenticated=1'
>> >> >>
>> >> >> # Command to run after rootstrap unpacking
>> >> >> config_opts['after_rootstrap'] = 'fakeroot apt-get -y -q %s install
>> >> >> maemo-optify' % config_opts['apt-get_options']
>> >> >
>> >> > I'm building fine in sbdmock unless the package calls maemo-optify. I don't see where "after_rootstrap" occurs in sbdmock, so I think that above `apt-get install` isn't being run (maemo-optify doesn't get installed in the chroot). How are you getting maemo-optify installed in every chroot?
>> >>
>> >> I'm using sbdmock with corresponding change. You can find it here:
>> >> http://github.com/bartosh/sbdmock/tree/after_rootstrap
>> >> The change was discussed with upstream author and merge request has
>> >> been sent to him some time ago. It's not merged in his gir repo yet,
>> >> but I hope it will be eventually.
>> >
>> > OK, I did build with your sbdmock git tree, but after_rootstrap not in the main branch. I see after_rootstrap in the origin/after_rootstrap branch. Is that the preferred branch to use? Is that the one you guys are running?
>> Yes, as I said (see github url above).
>>
>> > The other git repo, for those watching, is this one:
>> > http://github.com/kad/sbdmock
>> This is upstream author's repo. Mine is forked from it.
>
> Cool, thx, things are moving along fine. :)
>
> I have seen this error though, any hints?
> Unpacking libimlib2 (from .../libimlib2_1.4.0-1.2maemo2_armel.deb) ...
> dpkg: error processing /var/cache/apt/archives/libimlib2_1.4.0-1.2maemo2_armel.deb (--unpack):
>  trying to overwrite `/opt', which is also in package base-files
> ...
> Errors were encountered while processing:
>  /var/cache/apt/archives/libimlib2_1.4.0-1.2maemo2_armel.deb
>  /var/cache/apt/archives/libimlib2-dev_1.4.0-1.2maemo2_armel.deb
> E: Sub-process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)
>
Yeah, I've seen this. The reason is the bug in SDK rootstraps.
You can find the details in this thread:
http://lists.maemo.org/pipermail/maemo-developers/2009-October/021588.html

There is one more m-d thread you may be interested in. It's about
automatic optification of packages by autobuilder:
http://lists.maemo.org/pipermail/maemo-developers/2009-November/021992.html

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