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

Re: using pbuilder to backport packages



On Wed, May 2, 2012 at 2:57 PM, Sylvain <beuc@beuc.net> wrote:
> Hi,
>
> On Wed, May 02, 2012 at 02:38:53PM +0100, Motiejus Jakštys wrote:
>> I want to backport sox using pbuilder. It depends on libavcodec-dev >=
>> 4.0.6, when 4.0.8 is in debian-backports.
>> However, pbuilder fails to use the version in backports. How can I
>> make it do that?
>>
> By default backported packages have a priority of -1, so they are not
> considered.

Thanks. Ehm. Isn't this defined by apt pinning?
I.e. if I add
Package: *
Pin: release a=squeeze-backports
Pin-Priority: 700

to the chroot /etc/apt/preferences, shouldn't the priority change?

> To make pbuilder consider them, I use this in my /etc/pbuilderrc:
> PBUILDERSATISFYDEPENDSCMD=/usr/lib/pbuilder/pbuilder-satisfydepends-experimental
Thanks, did it. However, still unavail:


I: using fakeroot in build.
I: Current time: Wed May  2 15:00:25 BST 2012
I: pbuilder-time-stamp: 1335967225
I: Building the build Environment
I: extracting base tarball [/var/cache/pbuilder/base.tgz]
I: creating local configuration
I: copying local configuration
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: Mounting /var/cache/pbuilder/ccache
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Setting up ccache
I: Installing the build-deps
 -> Attempting to parse the build-deps
 -> Considering build-depcdbs
   -> Trying to add cdbs
 -> Considering build-dep debhelper (>= 7)
   -> Trying to add debhelper
 -> Considering build-dep ladspa-sdk
   -> Trying to add ladspa-sdk
 -> Considering build-dep libao-dev
   -> Trying to add libao-dev
 -> Considering build-dep libasound2-dev [linux-any]
   -> Trying to add libasound2-dev
 -> Considering build-dep libavcodec-dev (>= 4:0.6.0)
   -> Trying to add libavcodec-dev=4:0.8-2~bpo60+1
   -> Trying to add libavcodec-dev=4:0.8-2~bpo60+1 libavutil-dev=4:0.8-2~bpo60+1
 -> Considering build-dep libavformat-dev
   -> Trying to add libavformat-dev
   -> Trying to add libavformat-dev libavcodec-dev=4:0.5.6-3
   -> Loop detected, last APT error was: ======
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libavformat-dev : Depends: libavcodec-dev (= 4:0.5.6-3) but
4:0.8-2~bpo60+1 is to be installed
E: Broken packages
   -> =========================================
   -> (not adding libavcodec-dev=4:0.5.6-3 to libavformat-dev
libavcodec-dev=4:0.5.6-3)
       -> Cannot install libavformat-dev libavcodec-dev=4:0.5.6-3; apt
errors follow:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libavformat-dev libavcodec-dev
E: Could not satisfy build-dependency.
E: pbuilder-satisfydepends failed.
I: Copying back the cached apt archive contents
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//19048 and its subdirectories

> You also have to add backports to your sources (you did it), and
> possibly install the 'debian-backports-keyring' package.
I suppose this applies to debian lenny only[1]?


[1]: http://packages.debian.org/search?suite=squeeze&keywords=debian-backports-keyring

Thanks a lot, I'm getting closer :)
-- 
Motiejus Jakštys


Reply to: