{"issue":{"user":{"id":29946,"login":"tomashley","url":"https://api.github.com/users/tomashley","gravatar_id":"e949fdd55e2d808891a962839c9bfeca","avatar_url":"https://secure.gravatar.com/avatar/e949fdd55e2d808891a962839c9bfeca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"title":"RPM fails with --prefix applied","created_at":"2011-08-30T13:05:11Z","labels":[],"state":"open","updated_at":"2011-12-21T00:33:33Z","id":1518833,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/jordansissel/fpm/issues/98","closed_at":null,"body":"If I apply a --prefix switch when building an rpm I get  a 'No such file or directory' error. This doesn't occur if I create a puppet manifest.\r\n\r\n----\r\n\r\n    fpm -s dir -t rpm --name \"dnsnet-tc\"  -a noarch --prefix /opt/place apache-tomcat-6.0.26/  \r\n    [\"rsync\", \"-a\", \"apache-tomcat-6.0.26/\", \"/home/tomash/build-rpm-dnsnet-tc-1.0.noarch.rpm/tarbuild/opt/place/apache-tomcat-6.0.26/\"]\r\n    opt\r\n    /home/tomash/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/find.rb:38:in `block in find': No such file or directory     (Errno::ENOENT)\r\n    \tfrom /home/tomash/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/find.rb:38:in `collect!'\r\n  \tfrom /home/tomash/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/find.rb:38:in `find'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/package.rb:147:in `block in render_spec'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/package.rb:146:in `each'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/package.rb:146:in `render_spec'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/package.rb:157:in `block in generate_specfile'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/package.rb:156:in `open'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/package.rb:156:in `generate_specfile'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/builder.rb:180:in `generate_specfile'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/builder.rb:114:in `block in assemble!'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/builder.rb:95:in `chdir'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/builder.rb:95:in `assemble!'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/lib/fpm/program.rb:51:in `run'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/gems/fpm-0.3.7/bin/fpm:20:in `<top (required)>'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/bin/fpm:19:in `load'\r\n\tfrom /home/tomash/.rvm/gems/ruby-1.9.2-p290/bin/fpm:19:in `<main>'\r\n\r\n-----\r\n\r\n    fpm -s dir -t puppet --name \"dnsnet-tc\"  -a noarch --prefix /opt/place apache-tomcat-6.0.26/\r\n    [\"rsync\", \"-a\", \"apache-tomcat-6.0.26/\", \"/home/tomash/build-puppet-dnsnet-tc/tarbuild/opt/place/apache-tomcat-6.0.26/\"]\r\n    opt\r\n    Created /home/tomash/dnsnet-tc\r\n","number":98,"url":"https://api.github.com/repos/jordansissel/fpm/issues/98","comments":6,"assignee":null},"comment":{"user":{"id":1151895,"login":"bknowles","url":"https://api.github.com/users/bknowles","gravatar_id":"22074f75e82ca369f7c5e6ad28b506c0","avatar_url":"https://secure.gravatar.com/avatar/22074f75e82ca369f7c5e6ad28b506c0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-21T00:33:33Z","updated_at":"2011-12-21T00:33:33Z","id":3227770,"body":"Still broken.  Any idea when this will be fixed with more recent versions of Ruby?","url":"https://api.github.com/repos/jordansissel/fpm/issues/comments/3227770"},"action":"created"}