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

Re: Profile support in apt



[please keep me cc:ed, I'm not on this list, and re-constructing from
the web archive is painful. I tried setting Mail-followup-to this time
- here's hoping I got it right]

On Tue, Jan 29, 2013 at 19:19:52 +0100 Julian Andres Klode wrote:

> A configuration option seems the best option. I'd prefer
> something like APT::Build-Profile, or APT::Get::Build-Profile
> in case the option is exclusive to apt-get (I'd chose
> Build-Profile over simply Profile, because that's more
> accurate in my opinion)

A config option is useful. The reason I was emphasising the
DEB_BUILD_OPTIONS env var is that this works well with older versions
that don't support this feature yet. So sbuild can set this and
latest/patched apt and dpkg can honour it and new behaviour works, but
old, unpatched pre-build-profile dpkg and apt don't get run with -o
APT::Get::Build-Profile=stage1 and -P stage1 respectively. Certainly
if you give an old dpkg -P stage1 it just barfs, so using it is best
avoided. (and sbuild needs to be able to work with both old and new
apt/dpkg by it's nature).

What will exisitng apt do with apt do with -o
APT::Get::Build-Profile=stage1 ?

Hmm, OK that was a very easy test to make and apt silently ignores it,
so no problem there. Getting sbuild to call apt with this option when
needed should be simple enough. So OK, lets do that for now and worry
about how important env-var support is later. 

Thanks for the quick feedback everyone. I should have asked about this
a long time ago :-)

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


Reply to: