[opensuse-packaging] %prep error
Why do I get this error, how can it be solved ?.
Thanks Glenn
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.D8k6L4
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf cacti-0.8.7g
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/cacti-0.8.7g-beta1.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd cacti-0.8.7g
/var/tmp/rpm-tmp.D8k6L4: line 29: cd: cacti-0.8.7g: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.D8k6L4 (%prep)
The spec [part] file says
=========================
Name: cacti
Version: 0.8.7g
Release: 0.0
Summary: Web Front-End to Monitor System Data via RRDtool
License: GPL v2 or later
Group: System/Monitoring
Url: http://www.cacti.net/
Source0: %{name}-%{version}-beta1.tar.gz
Source1: %{name}.cron
Source2: %{name}-httpd.conf
Source3: %{name}.logrotate
Patch0: %{name}-%{version}-cacti-log-path.patch
#http://www.cacti.net/download_patches.php
%if 0%{?suse_version}
BuildRequires: apache2-devel db-devel
%endif
%if 0%{?fedora_version} || 0%{?centos_version}
BuildRequires: httpd-devel
%endif
%if 0%{?mandriva_version}
BuildRequires: apache-devel
%endif
Requires: http_daemon net-snmp rrdtool php mod_php_any
Requires: php-snmp php-mysql php-session php5-sockets logrotate cron
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
%define apxs /usr/sbin/apxs2
%else
%define apxs /usr/sbin/apxs
%endif
%define apache2_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define prefix %{_datadir}/cacti
%description
Cacti is a complete front-end to RRDtool: it stores all necessary
information for creating graphs and populates them with data from a
MySQL database. The front-end is completely PHP driven. Along with
being ableto maintain graphs, data sources, and round robin archives
ina database, Cacti also handles data gathering. There exists an SNMP
support for those accustomed to creating traffic graphs with MRTG as
well.
Authors:
--------
Ian Berry
On Wed, Jun 09, 2010 at 02:28:41PM +0000, doiggl@velocitynet.com.au wrote:
Why do I get this error, how can it be solved ?. Thanks Glenn
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.D8k6L4 + umask 022 + cd /usr/src/packages/BUILD + cd /usr/src/packages/BUILD + rm -rf cacti-0.8.7g + /usr/bin/gzip -dc /usr/src/packages/SOURCES/cacti-0.8.7g-beta1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd cacti-0.8.7g /var/tmp/rpm-tmp.D8k6L4: line 29: cd: cacti-0.8.7g: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.D8k6L4 (%prep)
Well, the tarball unpacks to cacti-0.8.7g-beta1 I guess... So use instead of %setup -q this: %setup -q -n %name-%version-beta1 Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
doiggl@velocitynet.com.au
-
Marcus Meissner