New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running fpm on CentOS 5.7 #191

Closed
eklein opened this Issue Mar 28, 2012 · 13 comments

Comments

Projects
None yet
4 participants
@eklein

eklein commented Mar 28, 2012

The command I ran is this:

fpm -s dir -t rpm -n collectd -v 5.0.3 --config-files /etc/collectd.conf,/etc/collectd.d -C /tmp/collectd-tmp usr etc var

/tmp/collectd-tmp contains an installed copy of collectd 5.0.3.

Here's the error I got:

/usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/package/deb.rb:19: warning: already initialized constant SCRIPT_MAP
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.24146
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.24146
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.24146
Processing files: collectd-5.0.3-1
error: File not found: /usr/share/man/man1/collectd-nagios.1
error: File not found: /usr/share/man/man1/collectdmon.1
error: File not found: /usr/share/man/man1/collectd.1
error: File not found: /usr/share/man/man1/collectdctl.1
error: File not found: /usr/share/man/man5/collectd-unixsock.5
error: File not found: /usr/share/man/man5/types.db.5
error: File not found: /usr/share/man/man5/collectd.conf.5
error: File not found: /usr/share/man/man5/collectd-email.5
error: File not found: /usr/share/man/man5/collectd-exec.5
error: File not found: /usr/share/man/man5/collectd-perl.5
error: File not found: /usr/share/man/man5/collectd-python.5
error: File not found: /usr/share/man/man5/collectd-snmp.5
error: File not found: /usr/share/man/man5/collectd-java.5
error: File not found: /usr/share/man/man5/collectd-threshold.5
error: File not found: /usr/share/man/man3/Collectd::Unixsock.3pm
error: File not found: /usr/share/collectd/postgresql_default.conf
error: File not found: /usr/share/collectd/java/collectd-api.jar
error: File not found: /usr/share/collectd/java/generic-jmx.jar
error: File not found: /usr/share/collectd/types.db
error: File not found: /usr/include/collectd/lcc_features.h
error: File not found: /usr/include/collectd/client.h
error: File not found: /usr/lib64/libcollectdclient.so.0.0.0
error: File not found: /usr/lib64/pkgconfig/libcollectdclient.pc
error: File not found: /usr/lib64/libcollectdclient.la
error: File not found: /usr/lib64/libcollectdclient.a
error: File not found: /usr/lib64/libcollectdclient.so
error: File not found: /usr/lib64/collectd/filecount.so
error: File not found: /usr/lib64/collectd/protocols.so
error: File not found: /usr/lib64/collectd/curl.la
error: File not found: /usr/lib64/collectd/match_value.la
error: File not found: /usr/lib64/collectd/curl.so
error: File not found: /usr/lib64/collectd/swap.a
error: File not found: /usr/lib64/collectd/logfile.so
error: File not found: /usr/lib64/collectd/match_regex.la
error: File not found: /usr/lib64/collectd/thermal.so
error: File not found: /usr/lib64/collectd/protocols.a
error: File not found: /usr/lib64/collectd/uptime.la
error: File not found: /usr/lib64/collectd/exec.a
error: File not found: /usr/lib64/collectd/ntpd.a
error: File not found: /usr/lib64/collectd/vmem.la
error: File not found: /usr/lib64/collectd/swap.so
error: File not found: /usr/lib64/collectd/contextswitch.la
error: File not found: /usr/lib64/collectd/protocols.la
error: File not found: /usr/lib64/collectd/network.a
error: File not found: /usr/lib64/collectd/cpufreq.a
error: File not found: /usr/lib64/collectd/unixsock.so
error: File not found: /usr/lib64/collectd/cpu.so
error: File not found: /usr/lib64/collectd/logfile.la
error: File not found: /usr/lib64/collectd/uptime.so
error: File not found: /usr/lib64/collectd/cpufreq.so
error: File not found: /usr/lib64/collectd/apache.la
error: File not found: /usr/lib64/collectd/perl.so
error: File not found: /usr/lib64/collectd/syslog.la
error: File not found: /usr/lib64/collectd/interface.a
error: File not found: /usr/lib64/collectd/vmem.a
error: File not found: /usr/lib64/collectd/fscache.la
error: File not found: /usr/lib64/collectd/disk.a
error: File not found: /usr/lib64/collectd/tcpconns.so
error: File not found: /usr/lib64/collectd/tail.so
error: File not found: /usr/lib64/collectd/ntpd.la
error: File not found: /usr/lib64/collectd/python.la
error: File not found: /usr/lib64/collectd/users.a
error: File not found: /usr/lib64/collectd/filecount.a
error: File not found: /usr/lib64/collectd/df.la
error: File not found: /usr/lib64/collectd/exec.so
error: File not found: /usr/lib64/collectd/load.la
error: File not found: /usr/lib64/collectd/match_regex.a
error: File not found: /usr/lib64/collectd/syslog.a
error: File not found: /usr/lib64/collectd/match_hashed.so
error: File not found: /usr/lib64/collectd/match_empty_counter.la
error: File not found: /usr/lib64/collectd/uptime.a
error: File not found: /usr/lib64/collectd/load.so
error: File not found: /usr/lib64/collectd/threshold.la
error: File not found: /usr/lib64/collectd/filecount.la
error: File not found: /usr/lib64/collectd/network.so
error: File not found: /usr/lib64/collectd/apache.a
error: File not found: /usr/lib64/collectd/irq.la
error: File not found: /usr/lib64/collectd/cpufreq.la
error: File not found: /usr/lib64/collectd/curl.a
error: File not found: /usr/lib64/collectd/match_hashed.la
error: File not found: /usr/lib64/collectd/processes.la
error: File not found: /usr/lib64/collectd/curl_xml.la
error: File not found: /usr/lib64/collectd/interface.so
error: File not found: /usr/lib64/collectd/disk.la
error: File not found: /usr/lib64/collectd/table.a
error: File not found: /usr/lib64/collectd/memory.so
error: File not found: /usr/lib64/collectd/unixsock.la
error: File not found: /usr/lib64/collectd/users.la
error: File not found: /usr/lib64/collectd/fscache.a
error: File not found: /usr/lib64/collectd/disk.so
error: File not found: /usr/lib64/collectd/thermal.la
error: File not found: /usr/lib64/collectd/memory.a
error: File not found: /usr/lib64/collectd/exec.la
error: File not found: /usr/lib64/collectd/match_regex.so
error: File not found: /usr/lib64/collectd/df.so
error: File not found: /usr/lib64/collectd/contextswitch.so
error: File not found: /usr/lib64/collectd/vmem.so
error: File not found: /usr/lib64/collectd/table.la
error: File not found: /usr/lib64/collectd/python.a
error: File not found: /usr/lib64/collectd/match_timediff.a
error: File not found: /usr/lib64/collectd/processes.a
error: File not found: /usr/lib64/collectd/cpu.a
error: File not found: /usr/lib64/collectd/thermal.a
error: File not found: /usr/lib64/collectd/tcpconns.la
error: File not found: /usr/lib64/collectd/logfile.a
error: File not found: /usr/lib64/collectd/perl.la
error: File not found: /usr/lib64/collectd/ntpd.so
error: File not found: /usr/lib64/collectd/interface.la
error: File not found: /usr/lib64/collectd/curl_xml.so
error: File not found: /usr/lib64/collectd/tail.la
error: File not found: /usr/lib64/collectd/contextswitch.a
error: File not found: /usr/lib64/collectd/match_timediff.so
error: File not found: /usr/lib64/collectd/network.la
error: File not found: /usr/lib64/collectd/match_timediff.la
error: File not found: /usr/lib64/collectd/python.so
error: File not found: /usr/lib64/collectd/threshold.so
error: File not found: /usr/lib64/collectd/fscache.so
error: File not found: /usr/lib64/collectd/tcpconns.a
error: File not found: /usr/lib64/collectd/cpu.la
error: File not found: /usr/lib64/collectd/match_empty_counter.so
error: File not found: /usr/lib64/collectd/memory.la
error: File not found: /usr/lib64/collectd/unixsock.a
error: File not found: /usr/lib64/collectd/threshold.a
error: File not found: /usr/lib64/collectd/processes.so
error: File not found: /usr/lib64/collectd/irq.a
error: File not found: /usr/lib64/collectd/match_value.a
error: File not found: /usr/lib64/collectd/match_hashed.a
error: File not found: /usr/lib64/collectd/tail.a
error: File not found: /usr/lib64/collectd/perl.a
error: File not found: /usr/lib64/collectd/syslog.so
error: File not found: /usr/lib64/collectd/match_value.so
error: File not found: /usr/lib64/collectd/table.so
error: File not found: /usr/lib64/collectd/users.so
error: File not found: /usr/lib64/collectd/apache.so
error: File not found: /usr/lib64/collectd/swap.la
error: File not found: /usr/lib64/collectd/curl_xml.a
error: File not found: /usr/lib64/collectd/match_empty_counter.a
error: File not found: /usr/lib64/collectd/irq.so
error: File not found: /usr/lib64/collectd/load.a
error: File not found: /usr/lib64/collectd/df.a
error: File not found: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Collectd/.packlist
error: File not found: /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
error: File not found: /usr/lib64/libcollectdclient.so.0
error: File not found: /usr/bin/collectd-nagios
error: File not found: /usr/bin/collectdctl
error: File not found: /usr/sbin/collectdmon
error: File not found: /usr/sbin/collectd
error: File not found: /usr/lib/perl5/site_perl/5.8.8/Collectd.pm
error: File not found: /usr/lib/perl5/site_perl/5.8.8/Collectd/Plugins/Monitorus.pm
error: File not found: /usr/lib/perl5/site_perl/5.8.8/Collectd/Plugins/OpenVZ.pm
error: File not found: /usr/lib/perl5/site_perl/5.8.8/Collectd/Unixsock.pm
error: File not found: /etc/init.d/collectd
error: File not found: /etc/collectd.conf

RPM build errors:
File not found: /usr/share/man/man1/collectd-nagios.1
File not found: /usr/share/man/man1/collectdmon.1
File not found: /usr/share/man/man1/collectd.1
File not found: /usr/share/man/man1/collectdctl.1
File not found: /usr/share/man/man5/collectd-unixsock.5
File not found: /usr/share/man/man5/types.db.5
File not found: /usr/share/man/man5/collectd.conf.5
File not found: /usr/share/man/man5/collectd-email.5
File not found: /usr/share/man/man5/collectd-exec.5
File not found: /usr/share/man/man5/collectd-perl.5
File not found: /usr/share/man/man5/collectd-python.5
File not found: /usr/share/man/man5/collectd-snmp.5
File not found: /usr/share/man/man5/collectd-java.5
File not found: /usr/share/man/man5/collectd-threshold.5
File not found: /usr/share/man/man3/Collectd::Unixsock.3pm
File not found: /usr/share/collectd/postgresql_default.conf
File not found: /usr/share/collectd/java/collectd-api.jar
File not found: /usr/share/collectd/java/generic-jmx.jar
File not found: /usr/share/collectd/types.db
File not found: /usr/include/collectd/lcc_features.h
File not found: /usr/include/collectd/client.h
File not found: /usr/lib64/libcollectdclient.so.0.0.0
File not found: /usr/lib64/pkgconfig/libcollectdclient.pc
File not found: /usr/lib64/libcollectdclient.la
File not found: /usr/lib64/libcollectdclient.a
File not found: /usr/lib64/libcollectdclient.so
File not found: /usr/lib64/collectd/filecount.so
File not found: /usr/lib64/collectd/protocols.so
File not found: /usr/lib64/collectd/curl.la
File not found: /usr/lib64/collectd/match_value.la
File not found: /usr/lib64/collectd/curl.so
File not found: /usr/lib64/collectd/swap.a
File not found: /usr/lib64/collectd/logfile.so
File not found: /usr/lib64/collectd/match_regex.la
File not found: /usr/lib64/collectd/thermal.so
File not found: /usr/lib64/collectd/protocols.a
File not found: /usr/lib64/collectd/uptime.la
File not found: /usr/lib64/collectd/exec.a
File not found: /usr/lib64/collectd/ntpd.a
File not found: /usr/lib64/collectd/vmem.la
File not found: /usr/lib64/collectd/swap.so
File not found: /usr/lib64/collectd/contextswitch.la
File not found: /usr/lib64/collectd/protocols.la
File not found: /usr/lib64/collectd/network.a
File not found: /usr/lib64/collectd/cpufreq.a
File not found: /usr/lib64/collectd/unixsock.so
File not found: /usr/lib64/collectd/cpu.so
File not found: /usr/lib64/collectd/logfile.la
File not found: /usr/lib64/collectd/uptime.so
File not found: /usr/lib64/collectd/cpufreq.so
File not found: /usr/lib64/collectd/apache.la
File not found: /usr/lib64/collectd/perl.so
File not found: /usr/lib64/collectd/syslog.la
File not found: /usr/lib64/collectd/interface.a
File not found: /usr/lib64/collectd/vmem.a
File not found: /usr/lib64/collectd/fscache.la
File not found: /usr/lib64/collectd/disk.a
File not found: /usr/lib64/collectd/tcpconns.so
File not found: /usr/lib64/collectd/tail.so
File not found: /usr/lib64/collectd/ntpd.la
File not found: /usr/lib64/collectd/python.la
File not found: /usr/lib64/collectd/users.a
File not found: /usr/lib64/collectd/filecount.a
File not found: /usr/lib64/collectd/df.la
File not found: /usr/lib64/collectd/exec.so
File not found: /usr/lib64/collectd/load.la
File not found: /usr/lib64/collectd/match_regex.a
File not found: /usr/lib64/collectd/syslog.a
File not found: /usr/lib64/collectd/match_hashed.so
File not found: /usr/lib64/collectd/match_empty_counter.la
File not found: /usr/lib64/collectd/uptime.a
File not found: /usr/lib64/collectd/load.so
File not found: /usr/lib64/collectd/threshold.la
File not found: /usr/lib64/collectd/filecount.la
File not found: /usr/lib64/collectd/network.so
File not found: /usr/lib64/collectd/apache.a
File not found: /usr/lib64/collectd/irq.la
File not found: /usr/lib64/collectd/cpufreq.la
File not found: /usr/lib64/collectd/curl.a
File not found: /usr/lib64/collectd/match_hashed.la
File not found: /usr/lib64/collectd/processes.la
File not found: /usr/lib64/collectd/curl_xml.la
File not found: /usr/lib64/collectd/interface.so
File not found: /usr/lib64/collectd/disk.la
File not found: /usr/lib64/collectd/table.a
File not found: /usr/lib64/collectd/memory.so
File not found: /usr/lib64/collectd/unixsock.la
File not found: /usr/lib64/collectd/users.la
File not found: /usr/lib64/collectd/fscache.a
File not found: /usr/lib64/collectd/disk.so
File not found: /usr/lib64/collectd/thermal.la
File not found: /usr/lib64/collectd/memory.a
File not found: /usr/lib64/collectd/exec.la
File not found: /usr/lib64/collectd/match_regex.so
File not found: /usr/lib64/collectd/df.so
File not found: /usr/lib64/collectd/contextswitch.so
File not found: /usr/lib64/collectd/vmem.so
File not found: /usr/lib64/collectd/table.la
File not found: /usr/lib64/collectd/python.a
File not found: /usr/lib64/collectd/match_timediff.a
File not found: /usr/lib64/collectd/processes.a
File not found: /usr/lib64/collectd/cpu.a
File not found: /usr/lib64/collectd/thermal.a
File not found: /usr/lib64/collectd/tcpconns.la
File not found: /usr/lib64/collectd/logfile.a
File not found: /usr/lib64/collectd/perl.la
File not found: /usr/lib64/collectd/ntpd.so
File not found: /usr/lib64/collectd/interface.la
File not found: /usr/lib64/collectd/curl_xml.so
File not found: /usr/lib64/collectd/tail.la
File not found: /usr/lib64/collectd/contextswitch.a
File not found: /usr/lib64/collectd/match_timediff.so
File not found: /usr/lib64/collectd/network.la
File not found: /usr/lib64/collectd/match_timediff.la
File not found: /usr/lib64/collectd/python.so
File not found: /usr/lib64/collectd/threshold.so
File not found: /usr/lib64/collectd/fscache.so
File not found: /usr/lib64/collectd/tcpconns.a
File not found: /usr/lib64/collectd/cpu.la
File not found: /usr/lib64/collectd/match_empty_counter.so
File not found: /usr/lib64/collectd/memory.la
File not found: /usr/lib64/collectd/unixsock.a
File not found: /usr/lib64/collectd/threshold.a
File not found: /usr/lib64/collectd/processes.so
File not found: /usr/lib64/collectd/irq.a
File not found: /usr/lib64/collectd/match_value.a
File not found: /usr/lib64/collectd/match_hashed.a
File not found: /usr/lib64/collectd/tail.a
File not found: /usr/lib64/collectd/perl.a
File not found: /usr/lib64/collectd/syslog.so
File not found: /usr/lib64/collectd/match_value.so
File not found: /usr/lib64/collectd/table.so
File not found: /usr/lib64/collectd/users.so
File not found: /usr/lib64/collectd/apache.so
File not found: /usr/lib64/collectd/swap.la
File not found: /usr/lib64/collectd/curl_xml.a
File not found: /usr/lib64/collectd/match_empty_counter.a
File not found: /usr/lib64/collectd/irq.so
File not found: /usr/lib64/collectd/load.a
File not found: /usr/lib64/collectd/df.a
File not found: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Collectd/.packlist
File not found: /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
File not found: /usr/lib64/libcollectdclient.so.0
File not found: /usr/bin/collectd-nagios
File not found: /usr/bin/collectdctl
File not found: /usr/sbin/collectdmon
File not found: /usr/sbin/collectd
File not found: /usr/lib/perl5/site_perl/5.8.8/Collectd.pm
File not found: /usr/lib/perl5/site_perl/5.8.8/Collectd/Plugins/Monitorus.pm
File not found: /usr/lib/perl5/site_perl/5.8.8/Collectd/Plugins/OpenVZ.pm
File not found: /usr/lib/perl5/site_perl/5.8.8/Collectd/Unixsock.pm
File not found: /etc/init.d/collectd
File not found: /etc/collectd.conf
/usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/util.rb:33:in safesystem': rpmbuild failed (exit code 1). Full command was:["rpmbuild", "-bb", "--define", "buildroot /tmp/package-rpm-build20120327-26457-1brnryp/BUILD", "--define", "_topdir /tmp/package-rpm-build20120327-26457-1brnryp", "--define", "_sourcedir /tmp/package-rpm-build20120327-26457-1brnryp", "--define", "_rpmdir /tmp/package-rpm-build20120327-26457-1brnryp/RPMS", "/tmp/package-rpm-build20120327-26457-1brnryp/SPECS/collectd.spec"] (FPM::Util::ProcessFailed) from /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/package/rpm.rb:129:inoutput'
from /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/command.rb:305:in execute' from /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/gems/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:64:inrun'
from /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/gems/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:126:in run' from /usr/local/rvm/rubies/ruby-1.8.7-p352/lib/ruby/gems/1.8/gems/fpm-0.4.3/bin/fpm:8 from /usr/local/rvm/gems/ruby-1.8.7-p352/bin/fpm:19:inload'
from /usr/local/rvm/gems/ruby-1.8.7-p352/bin/fpm:19

@tlpinney

This comment has been minimized.

tlpinney commented Mar 28, 2012

I am also getting errors on CentOS 5.7

[vagrant@localhost Desktop]$ /opt/ruby/bin/fpm -s dir -t rpm eclipse
/opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/package/deb.rb:19: warning: already initialized constant SCRIPT_MAP
error: line 17: Empty tag: Name:
/opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/util.rb:33:in safesystem': rpmbuild failed (exit code 1). Full command was:["rpmbuild", "-bb", "--define", "buildroot /tmp/package-rpm-build20120328-21277-1h6v3r4/BUILD", "--define", "_topdir /tmp/package-rpm-build20120328-21277-1h6v3r4", "--define", "_sourcedir /tmp/package-rpm-build20120328-21277-1h6v3r4", "--define", "_rpmdir /tmp/package-rpm-build20120328-21277-1h6v3r4/RPMS", "/tmp/package-rpm-build20120328-21277-1h6v3r4/SPECS/.spec"] (FPM::Util::ProcessFailed) from /opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/package/rpm.rb:129:inoutput'
from /opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/command.rb:306:in execute' from /opt/ruby/lib/ruby/gems/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:64:inrun'
from /opt/ruby/lib/ruby/gems/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:126:in run' from /opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/bin/fpm:8 from /opt/ruby/bin/fpm:19:inload'
from /opt/ruby/bin/fpm:19

[vagrant@localhost Desktop]$ /opt/ruby/bin/fpm -s dir -t gem eclipse
/opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/package/deb.rb:19: warning: already initialized constant SCRIPT_MAP
/opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/package.rb:309:in to_s': private methodgsub' called for nil:NilClass (NoMethodError)
from /opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/lib/fpm/command.rb:306:in execute' from /opt/ruby/lib/ruby/gems/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:64:inrun'
from /opt/ruby/lib/ruby/gems/1.8/gems/clamp-0.3.0/lib/clamp/command.rb:126:in run' from /opt/ruby/lib/ruby/gems/1.8/gems/fpm-0.4.3/bin/fpm:8 from /opt/ruby/bin/fpm:19:inload'
from /opt/ruby/bin/fpm:19

@l1x

This comment has been minimized.

l1x commented Mar 30, 2012

I have the same issue:

File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/closed%3f-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/data_type-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/end-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/ended%3f-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/finish-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/finished%3f-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/flush_next_in-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/flush_next_out-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/reset-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/stream_end%3f-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/total_in-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/ZStream/total_out-i.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/adler32-c.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/adler32_combine-c.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/cdesc-Zlib.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/crc32-c.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/crc32_combine-c.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/crc_table-c.ri
File not found: /usr/share/ri/1.9.1/system/Zlib/zlib_version-c.ri
File not found: /usr/share/ri/1.9.1/system/cASN1ObjectId/cdesc-cASN1ObjectId.ri
File not found: /usr/share/ri/1.9.1/system/cDigest/cdesc-cDigest.ri
File not found: /usr/share/ri/1.9.1/system/cache.ri
File not found: /usr/share/ri/1.9.1/system/created.rid
File not found: /usr/share/ri/1.9.1/system/fatal/cdesc-fatal.ri

/usr/local/lib/ruby/gems/1.9.1/gems/fpm-0.4.3/lib/fpm/util.rb:33:in safesystem': rpmbuild failed (exit code 1). Full command was:["rpmbuild", "-bb", "--define", "buildroot /tmp/package-rpm-build20120329-31523-13j1edj/BUILD", "--define", "_topdir /tmp/package-rpm-build20120329-31523-13j1edj", "--define", "_sourcedir /tmp/package-rpm-build20120329-31523-13j1edj", "--define", "_rpmdir /tmp/package-rpm-build20120329-31523-13j1edj/RPMS", "/tmp/package-rpm-build20120329-31523-13j1edj/SPECS/ruby.spec"] (FPM::Util::ProcessFailed) from /usr/local/lib/ruby/gems/1.9.1/gems/fpm-0.4.3/lib/fpm/package/rpm.rb:129:inoutput'
from /usr/local/lib/ruby/gems/1.9.1/gems/fpm-0.4.3/lib/fpm/command.rb:305:in execute' from /usr/local/lib/ruby/gems/1.9.1/gems/clamp-0.3.0/lib/clamp/command.rb:64:inrun'
from /usr/local/lib/ruby/gems/1.9.1/gems/clamp-0.3.0/lib/clamp/command.rb:126:in run' from /usr/local/lib/ruby/gems/1.9.1/gems/fpm-0.4.3/bin/fpm:8:in<top (required)>'
from /usr/local/bin/fpm:19:in load' from /usr/local/bin/fpm:19:in

'

@jordansissel

This comment has been minimized.

Owner

jordansissel commented Mar 30, 2012

working on reproducing this, bringing up a cnetos 5.7 vm now.

@jordansissel

This comment has been minimized.

Owner

jordansissel commented Mar 30, 2012

@tlpinney - your problem is that you haven't specified the package name. For now, you can work around this by setting '-n ecliipse' in your fpm command line.

@jordansissel

This comment has been minimized.

Owner

jordansissel commented Mar 30, 2012

Confirmed the 'file not found' stuff is reproducd:

[vagrant@localhost fpm]$ ruby bin/fpm -s dir -t rpm -n collectd -v 5.0.3 --config-files /etc/collectd.conf,/etc/collectd.d -C /tmp/col>
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.69826
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.69826
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.69826
Processing files: collectd-5.0.3-1
error: File not found: /etc/collectd.conf,/etc/collectd.d
error: File not found: /include/collectd/client.h
error: File not found: /include/collectd/lcc_features.h
error: File not found: /sbin/collectd
error: File not found: /sbin/collectdmon
error: File not found: /lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Collectd/.packlist
error: File not found: /lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
@jordansissel

This comment has been minimized.

Owner

jordansissel commented Mar 30, 2012

I believe this problem is caused somehow by the 'build' directory during rpm build not being set properly on CentOS 5. Bah.

@jordansissel

This comment has been minimized.

Owner

jordansissel commented Mar 30, 2012

Relevant output from 'fpm --debug'

Running command {"file":"bin/../lib/fpm/util.rb","method":"safesystem","line":"29","args":["rpmbuild","-bb","--define","buildroot /tmp/package-rpm-build20120330-30649-1hswthz/BUILD","--define","_topdir /tmp/package-rpm-build20120330-30649-1hswthz","--define","_sourcedir /tmp/package-rpm-build20120330-30649-1hswthz","--define","_rpmdir /tmp/package-rpm-build20120330-30649-1hswthz/RPMS","/tmp/package-rpm-build20120330-30649-1hswthz/SPECS/hello.spec"],"level":"debug"}

Maybe rpmbuild on centos5 doesn't respect me :(

@jordansissel

This comment has been minimized.

Owner

jordansissel commented Mar 30, 2012

Ahha, so on centos5, I have to specify BuildRoot in the rpm spec.

@jordansissel

This comment has been minimized.

Owner

jordansissel commented Mar 30, 2012

30834 lstat("/world", 0x7fffade37d20) = -1 ENOENT (No such file or directory)

Yeah, rpmbuild not being smart there. This should be an easy fix.

@jordansissel

This comment has been minimized.

Owner

jordansissel commented Mar 30, 2012

This fix will be in the next fpm release :)

@tlpinney

This comment has been minimized.

tlpinney commented Mar 30, 2012

Awesome!

@l1x

This comment has been minimized.

l1x commented Mar 31, 2012

Thanks Jordan!

@eklein

This comment has been minimized.

eklein commented Mar 31, 2012

Thanks!

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 18, 2014

jls
- Specify BuildRoot in the rpm spec to work around some kind of
  bug/problem causing rpmbuild to use "/" as the BuildRoot on CentOS 5.
  Fixes jordansissel#191. Confirmed working on CentOS 5.7 in a vm.

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 27, 2014

- Specify BuildRoot in the rpm spec to work around some kind of
  bug/problem causing rpmbuild to use "/" as the BuildRoot on CentOS 5.
  Fixes jordansissel#191. Confirmed working on CentOS 5.7 in a vm.

jordansissel added a commit that referenced this issue Apr 24, 2015

- Specify BuildRoot in the rpm spec to work around some kind of
  bug/problem causing rpmbuild to use "/" as the BuildRoot on CentOS 5.
  Fixes #191. Confirmed working on CentOS 5.7 in a vm.

jordansissel added a commit that referenced this issue Jun 20, 2016

- Specify BuildRoot in the rpm spec to work around some kind of
  bug/problem causing rpmbuild to use "/" as the BuildRoot on CentOS 5.
  Fixes #191. Confirmed working on CentOS 5.7 in a vm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment