I'm hitting a stumbling block repackaging rhel6 rpms from http://repo.percona.com/centos/6/os/x86_64/
<http://repo.percona.com/centos/6/os/x86_64/%20>with the new payload
compression, xz, in arr-pm. Note, that I've tried the --rpm-compression
option
jkoppe@scotty in ~/rhel6 at 2012-05-19 20:06:37
--> fpm --rpm-compression xz -t rpm -s rpm --debug
Percona-Server-client-51-5.1.62-rel13.3.435.rhel6.x86_64.rpm
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","output_type":"rpm ","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","input_type":"rpm" ,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","chdir":null,"leve l":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","prefix":null,"lev el":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","package":null,"le vel":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","n ame":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","verbose?":null,"l evel":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","d ebug?":true}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","version":1.0,"lev el":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","iteration":null," level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","e poch":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","license":null,"le vel":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","vendor":null,"lev el":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","c ategory":"none"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","d ependencies":[]}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","provides":[],"lev el":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","conflicts":[],"le vel":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","replaces":[],"lev el":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","config_files":[], "level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","architecture":null,"method":"execute ","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","maintainer":"<jko ppe@scotty>","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","package_name_suff ix":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","e dit?":false}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","e xcludes":[]}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","description":"no
description","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","url":"
http://example.com/no-uri-given","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","i nputs":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","post_install":nul l,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","pre_install":null ,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ost_uninstall":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","pre_uninstall":nu ll,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","after_install":nu ll,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","b efore_install":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","after_remove":nul l,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","before_remove":nu ll,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_bin_path":"/u sr/bin","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_package_prefi x":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_package_name_ prefix":"rubygem","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_gem":"gem","l evel":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_fix_name?":tr ue,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","g em_fix_dependencies?":true}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_bin_path":"/u sr/bin","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_package_prefi x":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_package_name_ prefix":"rubygem","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_gem":"gem","l evel":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","gem_fix_name?":tr ue,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","g em_fix_dependencies?":true}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ython_bin":"python"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_easyinstal l":"easy_install","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ython_pypi":"
http://pypi.python.org/simple"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_package_pr efix":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_package_na me_prefix":"python","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_fix_name?" :true,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ython_fix_dependencies?":true}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ython_install_bin":"/usr/bin"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_install_li b":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ython_bin":"python"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_easyinstal l":"easy_install","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ython_pypi":"
http://pypi.python.org/simple"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_package_pr efix":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_package_na me_prefix":"python","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_fix_name?" :true,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ython_fix_dependencies?":true}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","p ython_install_bin":"/usr/bin"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","python_install_li b":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","rpm_rpmbuild_defi ne":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","rpm_no_provides?" :null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","rpm_digest":"md5" ,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","rpm_compression": "xz","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","rpm_rpmbuild_defi ne":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","rpm_no_provides?" :null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","rpm_digest":"md5" ,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","rpm_compression": "xz","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","pear_package_name _prefix":"php-pear","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","d eb_ignore_iteration_in_dependencies?":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","deb_pre_depends": null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","d eb_custom_control":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","d eb_config":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","deb_templates":null,"method":"execut e","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","deb_installed_siz e":null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","d eb_ignore_iteration_in_dependencies?":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","deb_pre_depends": null,"level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","d eb_custom_control":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","level":"debug","d eb_config":null}
Setting attribute
{"line":"234","file":"fpm/command.rb","deb_templates":null,"method":"execut e","level":"debug"}
Setting attribute
{"line":"234","file":"fpm/command.rb","method":"execute","deb_installed_siz e":null,"level":"debug"}
Cleaning up staging path
{"line":"259","file":"fpm/package.rb","method":"cleanup_staging","level":"d ebug","path":"/tmp/package-rpm-staging20120519-5036-vc388d"}
Cleaning up build path
{"line":"266","file":"fpm/package.rb","method":"cleanup_build","level":"deb ug","path":"/tmp/package-rpm-build20120519-5036-1wvf2yi"}
/usr/lib/ruby/gems/1.8/gems/arr-pm-0.0.7/lib/arr-pm/file.rb:102:in
`extract': undefined method `force_encoding' for "":String (NoMethodError)
from
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.9/lib/fpm/package/rpm.rb:167:in `input'
from
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.9/lib/fpm/command.rb:243:in `execute'
from
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.9/lib/fpm/command.rb:242:in `each'
from
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.9/lib/fpm/command.rb:242:in `execute'
from
/usr/lib/ruby/gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:64:in `run'
from
/usr/lib/ruby/gems/1.8/gems/clamp-0.3.1/lib/clamp/command.rb:126:in `run'
from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.9/bin/fpm:8
from /usr/bin/fpm:19:in `load'
from /usr/bin/fpm:19
sh: line 0: cd: /tmp/package-rpm-staging20120519-5036-vc388d: No such file
or directory
xz: (stdin): File format not recognized
cpio: premature end of archive
I know staging directory IS getting created because of the conditional in
the beginning of the extract() method in aar-pm/file.rb isn't being met.
And this works just fine: rpm2cpio
Percona-Server-shared-51-5.1.62-rel13.3.435.rhel6.x86_64.rpm | cpio -idv
So it feels like the RPM/temp dir aren't the problem. Here are the gems on
my system:
jkoppe@scotty in ~/rhel6 at 2012-05-19 20:08:17
--> sudo gem list
*** LOCAL GEMS ***
arr-pm (0.0.7)
backports (2.3.0)
cabin (0.4.4)
clamp (0.3.1)
fpm (0.4.9)
json (1.6.6)
stomp (1.1.8)
jkoppe@scotty in ~/rhel6 at 2012-05-19 20:08:37
--> rpm -q centos-release
centos-release-6-2.el6.centos.7.x86_64
Thoughts on how to proceed?