alexus [24.07.2013 15:56]: > # md5sum nagios-3.5.0.tar.gz > aeef195d2033cc362bf6cb972bcc8f07 nagios-3.5.0.tar.gz > # rpmbuild -tb nagios-3.5.0.tar.gz > warning: line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig, > sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.VOVWNc > + umask 022 > + cd /root/rpmbuild/BUILD > + LANG=C > + export LANG > + unset DISPLAY > + cd /root/rpmbuild/BUILD > + rm -rf nagios-3.5.0 > + /usr/bin/gzip -dc /root/nagios-3.5.0.tar.gz > + /bin/tar -xf - > + STATUS=0 > + '[' 0 -ne 0 ']' > + cd nagios-3.5.0 > /var/tmp/rpm-tmp.VOVWNc: line 38: cd: nagios-3.5.0: No such file or > directory > error: Bad exit status from /var/tmp/rpm-tmp.VOVWNc (%prep) > > > RPM build errors: > line 40: prereq is deprecated: PreReq: /usr/bin/logger, chkconfig, > sh-utils, shadow-utils, sed, initscripts, fileutils, mktemp > Bad exit status from /var/tmp/rpm-tmp.VOVWNc (%prep) > # cat /etc/redhat-release > Red Hat Enterprise Linux Server release 6.4 (Santiago) > # uname -a > Linux XXX.XXX.XXX 2.6.32-358.6.2.el6.x86_64 #1 SMP Tue May 14 15:48:21 EDT > 2013 x86_64 x86_64 x86_64 GNU/Linux > # > > I'm unable to build RPM w/ nagios 3.5.0, last one that worked for me was > 3.2.3. > any ideas/suggestions?
The first error I see is "cd: nagios-3.5.0: No such file or directory" Is there a directory named "nagios-3.5.0" in the tar ball or is it named only "nagios"? What does you spec file say? Maybe you have to adapt the BuildRoot? Like, from "%{_tmppath}/%{name}-%{version}" to "%{_tmppath}/%{name}"? Just a guess, Werner -- ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null