[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#695243: linux: Add stage1 build-profile support for bootstrapping



+++ Bastian Blank [2012-12-06 15:18 +0100]:

Hmm. I didn't get a copy of your original message - not sure why. 

> On Thu, Dec 06, 2012 at 12:53:53PM +0000, Ben Hutchings wrote:
> > The binary packages and control files for intermediate stages do *not*
> > need to comply with normal policy.
> 
> Where is the spec for this then? 

The 'spec' is here: http://wiki.debian.org/DebianBootstrap although
it's now somewhat out of date with respect to results of discussion in
http://bugs.debian.org/661538 (DEB_BUILD_OPTIONS=stage=N ->
DEB_BUILD_PROFILE=<profilename>)

It is still under development as we gain experience with this
bootstrap and associated tools. 

> The binary packages still need a
> different version so they can't be mistaken.

Not necessarily - staged builds are not intended to be uploaded to any
'real' repository, only a temporary one for the purposes of
bootstrapping and supplying build-deps. dpkg marks such packages as
'staged builds' so that they can easily be refused by the archive.
Exactly what is done with version numbers remains up for debate.  

> >                                     They *do* need to be buildable in a
> > standardised way (so no package-specific stuff like gencontrol.py).
> 
> The source package still needs to comply with policy.

Not if it's never going to be uploaded? Staged builds are just
intermediate reeduced-dependency version of packages and I expect the
source of the stage1 build to look exactly the same as the source for
the normal build (for all packages). As Ben observes, it is important
that whatever mechanisms we use are generalisable so we don't have to
care which package it is. gencontrol.py could be run so long as that
is all internalised by the package. 

I entirely leave it to you guys what the best/least intrusive way is
of getting the desired effect of having a stage1 build that just does
linux-libc-headers, and normal builds as currently. I don't believe
that any further stages are needed (at least for bootstrap/cross
purposes). 

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


Reply to: