Control: tag -1 + patch

On Fri, 10 Aug 2012 15:01:16 +0200, Laurent Bigonville wrote:

> it seems that puppet-lint is not working with ruby1.9.1 which is the
> default version in wheezy.
> 
> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be 
> deprecated in the future, use String#encode instead.
> /usr/bin/puppet-lint:88:in `<main>': undefined method `each' for 
> "config.pp":String (NoMethodError)
> 
> Using ruby1.8 is working flawlessly.

If the package is supposed to work only with ruby1.8, the attached
patch seems to achieve this.

Not sure if this is the correct way to go; input from ruby experts
welcome.


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Phil Collins: The Same Moon
diff -Nru puppet-lint-0.1.13/debian/changelog puppet-lint-0.1.13/debian/changelog
--- puppet-lint-0.1.13/debian/changelog	2012-03-31 14:47:41.000000000 +0200
+++ puppet-lint-0.1.13/debian/changelog	2012-08-26 14:32:12.000000000 +0200
@@ -1,3 +1,11 @@
+puppet-lint (0.1.13-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "puppet-lint not working with ruby1.9.1":
+    restrict package to ruby1.8. (Closes: #684488)
+
+ -- gregor herrmann <gre...@debian.org>  Sun, 26 Aug 2012 14:31:55 +0200
+
 puppet-lint (0.1.13-1) unstable; urgency=low
 
   * Imported Upstream version 0.1.13
diff -Nru puppet-lint-0.1.13/debian/control puppet-lint-0.1.13/debian/control
--- puppet-lint-0.1.13/debian/control	2012-03-31 14:47:41.000000000 +0200
+++ puppet-lint-0.1.13/debian/control	2012-08-26 14:30:32.000000000 +0200
@@ -9,12 +9,12 @@
 Vcs-Git: git://anonscm.debian.org/pkg-puppet/puppet-lint.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-puppet/puppet-lint.git;a=summary
 Homepage: https://github.com/rodjek/puppet-lint/
-XS-Ruby-Versions: all
+XS-Ruby-Versions: ruby1.8
 
 Package: puppet-lint
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby1.8,
          puppet-common
 Suggests: rake
 Description: check puppet manifests for style guide conformity

Attachment: signature.asc
Description: Digital signature

Reply via email to