[maemo-developers] Clean build environment

From: Ed Bartosh bartosh at gmail.com
Date: Wed Jul 8 20:07:03 EEST 2009
2009/7/8 Graham Cobb <g+770 at cobb.uk.net>:
> On Wednesday 08 July 2009 12:35:35 Ed Bartosh wrote:
>> There is such a tool and autobuilder is uses it.
>> It's called sbdmock and you can find it here:
>> http://github.com/kad/sbdmock/tree/master
>>
>> To build the package the same way as autobuilder does you just need to
>> run 'sbdmock -r <target> -u <your .dsc file>'
>> where target is the name of sbdmock target and -u option is for
>> creating new scratchbox target for the build, AFAIK.
>>
>> You can find Chinook target configs here:
>> http://github.com/kad/sbdmock/tree/186e27cacd6149170df456007f98ddb646dc980a
>>/etc
>>
>> And I can put Diablo and Fremantle configs somewhere if needed.
>
> Thanks Ed.
>
> Is there somewhere to discuss sbdmock?  Or, at least, to find out more about
> it?
>
Unfortunately not. We can discuss it here.

> I thought it was just a build tool -- can it also be used to provide an
> environment where the developer can sit in a scratchbox target which has been
> cleanly created and test things out from a command line (e.g. try a build,
> then look for the missing files configure is complaining about, try manually
> installing something and see if that fixes the problem, etc, etc?).
>
It is a build tool. Environment is provided by scratchbox. sbdmock
creates scratchbox target(or uses already created target), unpacks SDK
rootstrap and build package. build logs and build directory are also
available for the users, so it's quite convenient to debug build
problems. If build files user can go to the build directory, fix the
problem and restart or continue the build by running dpkg-buildpackage
or even debian/rules build.

> It may be that all we need to do is to create a Wiki page telling people how
> to install and use sbdmock for testing and debugging their build problems.
> Or it may be that some additional scripts and packaging would be useful.
>
Wiki page would be good to have. I'm not sure about additional
scripts. Let's start with wiki page and then will see.

> It would be great if you could maintain and make available sbdmock target
> configs that correspond to the various versions of the autobuilder and we
> could put them somewhere easy for people to find (probably on maemo.org).
>
I already created issue for sbdmock: http://github.com/kad/sbdmock/issues
Unfortunately maintainer is on vacation at the moment, but I hope
he'll find time to add configs to the package.
The idea is to have them included into the package (deb or rpm). In
this case users can just install sbdmock package and start using it.

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