Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Unknown
-
Resolution: Fixed
-
Affects Version/s: 0.10.8
-
Fix Version/s: 0.10.10
-
Component/s: Chef Client
-
Labels:None
-
Environment:
archlinux
Description
Pacman package provider blows up when a utf-8 character is present in package metadata.
For example:
mbj@mbj ~ % pacman -Qi nginx
Name : nginx
Version : 1.0.11-1
URL : http://nginx.org
Licenses : custom
Groups : None
Provides : None
Depends On : pcre zlib openssl
Optional Deps : passenger
Required By : None
Conflicts With : None
Replaces : None
Installed Size : 1272.00 K
Packager : Bartłomiej Piotrowski <barthalion@gmail.com>
Architecture : x86_64
Build Date : Mon 19 Dec 2011 05:13:25 PM CET
Install Date : Tue 20 Dec 2011 08:47:05 PM CET
Install Reason : Explicitly installed
Install Script : No
Description : lightweight HTTP server and IMAP/POP3 proxy server
Chef tries to extract the metadata using an US-ASCII regexp https://github.com/opscode/chef/blob/master/chef/lib/chef/provider/package/pacman.rb#L38
This is a solution that works for me: https://github.com/opscode/chef/pull/215
To spot the UTF-8 see the package maintainer!