pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/48244: ruby193-puppet-3.1.1 pkgin provider "versionable" not honoring ensure => version
>Number: 48244
>Category: pkg
>Synopsis: ruby193-puppet-3.1.1 pkgin provider "versionable" not honoring
>ensure => version
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 25 15:35:00 +0000 2013
>Originator: Steven Stone
>Release:
>Organization:
>Environment:
SunOS smartbox1.joyent.conde.io 5.11 joyent_20130322T181205Z i86pc i386 i86pc
Solaris
>Description:
The pkgin provider shipped with the ruby193-puppet-3.1.1 package has the
feature "versionable", however when you instruct the provider to ensure =>
"<version_number>", it does not install the provided version number and will
only install the lastest version available.
Although the official puppet docs say the pkgin provider does not provide
"versionable", listed here:
http://docs.puppetlabs.com/references/latest/type.html#package-provider-pkgin ,
the patch here adds versionable feature to the ruby193-puppet-3.1.1 package:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/sysutils/puppet/patches/patch-ad?annotate=1.3
Thank you for your time.
>How-To-Repeat:
Set any package where multiple version numbers are available in pkgin to ensure
=> "<version_number>", as in this example:
package { "nodejs":
ensure => "0.10.11",
provider => 'pkgin',
}
Available nodejs packages on this box before running puppet:
# pkgin search nodejs
nodejs-0.8.25 V8 JavaScript for clients and servers
nodejs-0.6.21 Evented I/O for V8 javascript
nodejs-0.10.7 V8 JavaScript for clients and servers
nodejs-0.10.18 V8 JavaScript for clients and servers
nodejs-0.10.11 V8 JavaScript for clients and servers
Run puppet agent -t --debug to see the following output (if the package is not
installed, it will show the following):
Debug: Executing '/opt/local/bin/pkgin list'
Debug: Executing '/opt/local/bin/pkgin search nodejs'
Debug: Executing '/opt/local/bin/pkgin -y install nodejs'
Notice: /<snip>/Package[nodejs]/ensure: created
Now, check which version of the package installed shows it installs the latest,
not what was set to ensure => "<version_number>":
# node -v
v0.10.18
Run puppet agent -t --debug again:
Debug: Executing '/opt/local/bin/pkgin list'
Debug: Executing '/opt/local/bin/pkgin -y install nodejs'
Notice: /<snip>/Package[nodejs]/ensure: ensure changed 'present' to '0.10.11'
However, still at the latest package:
# node -v
v0.10.18
>Fix:
Home |
Main Index |
Thread Index |
Old Index