Issue #2406 has been updated by Stefan Völkel.

While preference files work technically, they break dependency wise:

    /etc/apt/preferences.d/linux-image-2.6-686-bigmem.pref:
    Package: linux-image-2.6-686-bigmem
    Pin: release a=squeeze-backports
    Pin-Priority: 600

The pin works, see candidate:

    # apt-cache policy linux-image-2.6-686-bigmem
    linux-image-2.6-686-bigmem:
      Installed: (none)
      Candidate: 2.6.39+35.1~bpo60+1
      Package pin: 2.6.39+35.1~bpo60+1
      Version table:
         2.6.39+35.1~bpo60+1 600
            100 http://10.46.255.153/debian-backports/ squeeze-backports/main 
i386 Packages
         2.6.32+29 600
            500 http://10.46.255.153//debian/ squeeze/main i386 Packages

However the package itself does depend on other packages from backports, so 
installation fails:

    # apt-get install linux-image-2.6-686-bigmem
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    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:
     linux-image-2.6-686-bigmem : Depends: linux-image-686-pae but it is not 
going to be installed
    E: Broken packages

The problem is further down the dependency chain:

    linux-image-2.6.39-bpo.2-686-pae : Depends: linux-base (>= 3~) but 
2.6.32-38 is to be installed
                                    Recommends: firmware-linux-free (>= 3~) but 
2.6.32-35 is to be installed
                                        Breaks: initramfs-tools (< 0.99~) but 
0.98.8 is to be installed

Now for this to work, you'd need to find out all dependencies of your package 
and pin each of them.

If dependencies change over time, this will break.

However apt-get -t squeeze-backports works:

    apt-get -sy install -t squeeze-backports linux-image-2.6-686-bigmem
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following extra packages will be installed:
      initramfs-tools linux-base linux-image-2.6.39-bpo.2-686-pae 
linux-image-686-pae
    Suggested packages:
      linux-doc-2.6.39
    Recommended packages:
      busybox busybox-initramfs
    The following NEW packages will be installed:
      linux-image-2.6-686-bigmem linux-image-2.6.39-bpo.2-686-pae 
linux-image-686-pae
    The following packages will be upgraded:
      initramfs-tools linux-base
    2 upgraded, 3 newly installed, 0 to remove and 137 not upgraded.
    Inst initramfs-tools [0.98.8] (0.99~bpo60+1 Debian 
Backports:squeeze-backports [all])
    Inst linux-base [2.6.32-35] (3.3~bpo60+1 Debian Backports:squeeze-backports 
[all])
    Inst linux-image-2.6.39-bpo.2-686-pae (2.6.39-3~bpo60+1 Debian 
Backports:squeeze-backports [i386])
    Inst linux-image-686-pae (2.6.39+35.1~bpo60+1 Debian 
Backports:squeeze-backports [i386])
    Inst linux-image-2.6-686-bigmem (2.6.39+35.1~bpo60+1 Debian 
Backports:squeeze-backports [i386])
    Conf initramfs-tools (0.99~bpo60+1 Debian Backports:squeeze-backports [all])
    Conf linux-base (3.3~bpo60+1 Debian Backports:squeeze-backports [all])
    Conf linux-image-2.6.39-bpo.2-686-pae (2.6.39-3~bpo60+1 Debian 
Backports:squeeze-backports [i386])
    Conf linux-image-686-pae (2.6.39+35.1~bpo60+1 Debian 
Backports:squeeze-backports [i386])
    Conf linux-image-2.6-686-bigmem (2.6.39+35.1~bpo60+1 Debian 
Backports:squeeze-backports [i386])

----------------------------------------
Feature #2406: APT provider's ensure parameter should support release name
https://projects.puppetlabs.com/issues/2406

Author: Andrew Pollock
Status: Investigating
Priority: Normal
Assignee: Nigel Kersten
Category: Debian
Target version: 
Affected Puppet version: 0.24.8
Keywords: 
Branch: 


This is a feature request received via Debian, see 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513553

> 
> I'd like to be able to specify something like:
> package {
> "openoffice.org": ensure => "etch-backports";
> }
> 
> This would call:
> apt-get install openoffice.org/etch-backports
> or
> apt-get install -t etch-backports openoffice.org
> 
> instead of:
> apt-get install openoffice.org=etch-backports
> 
> Can puppet check if the ensure parameter starts with a digit and decide
> accordingly?
> 



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to