[Pkg-puppet-devel] puppet: Thanks for packaging puppet!
Stig Sandbeck Mathisen
ssm at debian.org
Fri Feb 24 23:34:50 UTC 2012
Sven Mueller <sven at debian.org> writes:
> And I mean a _big_ thanks!
>
> And forgive me for making you aware of WNPP RFP bug ruby-hiera and
> ruby-hiera-puppet (#661187):
> These make many aspects of puppet a lot cleaner if used wisely (instead
> of an external node definition script and potentially replacing a lot of
> inheritance between node definitions). Perhaps you would be able to take
> care of that?
I've packaged ruby-hiera, but upstream lacks a license in the tarball.
This is fixable, it just takes some initiative and time. ...and the
package needs some testing on a working puppet master :)
The next release of puppet (or puppet 2.7.12rc1) includes the "puppet
module" tool, so when that comes out, I guess packaging
"ruby-hiera-puppet" is not needed.
Either that, or we need to package its dependencies as well.
> The gems seem simple, but I still am not able to make the packages:
> gem2deb fails for me in one of two ways:
> Either the test suite fails with a weird (to me at least) error message:
> /usr/bin/ruby1.8 -I/usr/lib/ruby/vendor_ruby \
> /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> Running tests for ruby1.8 with test file list from
> debian/ruby-test-files.yaml ...
> -e:1:in `require': no such file to load -- spec/spec.opts (LoadError)
> from -e:1
> from -e:1:in `each'
> from -e:1
> or it reports
> debian/ruby-hiera/usr/lib/ruby/vendor_ruby/hiera.rb: require 'rubygems'
> Found some 'require rubygems' without overrides (see above).
> If I disable the test suite by removing debian/ruby-test-files.yaml
Just remove the line mentioning "spec/spec.opts" from the
debian/ruby-test-files.yaml file. "gem2deb" includes every file in the
"spec" folder, some of which may not be ruby scripts.
And you need to patch the upstream code to remove "require rubygems" in
a couple of files (or set the "ignore require rubygems test" variable in
debian/rules).
The ruby1.9 tests may fail. You can set a variable in debian/rules to
ignore that, but I haven't tested it on a ruby1.9 setup, since the
puppet package does not use gem2deb packaging yet.
Cheers. :)
--
Stig Sandbeck Mathisen
More information about the Pkg-puppet-devel
mailing list