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

pbuilder + local backports question



Hello.

I'm trying to use pbuilder to build some local backports (from post-etch to 
etch).

In most cases, I want all build-deps to be installed from etch.
However, sometimes some particular packages are wanted from other 
repository (where previously build backports are located). This should be 
done only if explicitly requested; by default etch versions still should 
be used

How to do that?

pbuilder-satisfybuilddeps is not smart enough to try packages from 
repository with lower pin-priority, even if build-depends is versioned. It 
just installs default version, without any notice.

"--extrapackages foo/etch-backports" pbuilder arg semi-works, but it is 
triggered after build deps are installed, causing upgrades. Not very good 
IMO.

The only solution I could think is to add a pre-unpack hook that will 
generate /etc/apt/preferences to force needed packages from alternative 
repository. Based on some environment variable, or something alike.

Any other hints/ideas?



Reply to: