[maemo-developers] maemo-optify, autobuilder & /opt

From: Ed Bartosh bartosh at gmail.com
Date: Tue Nov 3 11:59:59 EET 2009
2009/11/3 Marius Vollmer <marius.vollmer at nokia.com>:
> ext Ed Bartosh <bartosh at gmail.com> writes:
>
>> We can hack dpkg-checkbuilddeps to unconditionally add maemo-optify to
>> the list of build dependencies.
>
> Ouch.  That's very desperate.
>
May be. But not as desperate as calling apt-get install from
dpkg-buildpackage :)

> What about changing dpkg-buildpackage to run "apt-get install
> maemo-optify" if necessary?  That concentrates the hacks in one place
> and is thus less magical.
>
What if developer doesn't have internet connection open during the
build? Remember, we're going to put this into devkit, so not only
autobuilder will use it.

> (This wouldn't normally work since dpkg-buildpackage is not run as root,
> but in Scratchbox, it does.)
>
>>> So, does the auto-builder run apt-get upgrade?
>>
>> Nope. Sbdmock does it. Sbdmock is a separate tool, which is run from
>> autobuilder.
>
> Hmm, so is "apt-get upgrade" being executed at one point before calling
> dpkg-buildpackage?
Yes it is.

> If so, that's enough; no need to change sbdmock.  If
> not, I think it would be a good idea to do it in general, not just for
> Maemo.  It's not really a hack to keep your build environment
> up-to-date, or is it?
>
Well, from my point of view all  /opt-related changes are hacks, so I
don't want to even propose them to general purpose tool.
It would be the same as if you would decide to send your patch for
dpkg-buildpackage to Debian.

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