jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.14k stars 1.07k forks source link

Failure using fpm-cookery #402

Closed dkowis closed 11 years ago

dkowis commented 11 years ago

I get the following failure trying to use fpm-cookery: http://pastebin.com/4rwcfrcW

I'm using a slightly modified version of this: https://github.com/stankevich/fpm-ruby/blob/master/recipe.rb

specifically:

class Ruby193 < FPM::Cookery::Recipe
  description 'An interpreter of object-oriented scripting language Ruby'
  name 'ruby1.9.3'
  version '1:1.9.3.392'
  revision '1'
  homepage 'http://www.ruby-lang.org/'
  source 'http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz'
  sha256 '8861ddadb2cd30fb30e42122741130d12f6543c3d62d05906cd41076db70975f'
  arch 'x86_64'
  section 'interpreters'

  build_depends 'build-essential', 'autoconf', 'libreadline5-dev', 'bison',
                'zlib1g-dev', 'libssl-dev', 'libyaml-dev'
  depends 'libreadline5', 'zlib1g', 'openssl', 'libyaml-0-2'

  def build
    configure :prefix => '/usr/local', 'disable-install-doc' => true
    make "jobs" => 4 
  end

  def install
    make :install, 'DESTDIR' => destdir
  end
end
dkowis commented 11 years ago

so a hack to fix this is to add require 'fpm/package/python' to the top of rpm.rb

Then I can build a package no problem at all.

bernd commented 11 years ago

I changed fpm-cookery to always require fpm instead of separate package providers to avoid this and similar errors in the future.

Thanks for the report!

r4um commented 11 years ago

Closing, fixed in fpm-cookery.