Mailinglist Archive: opensuse-packaging (156 mails)

< Previous Next >
[opensuse-packaging] %prep error
  • From: <doiggl@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 09 Jun 2010 14:28:41 +0000
  • Message-id: <b83ba1ff92c5c9b8adb84c1202a301ed@xxxxxxxxxxxxxxxxxxxxxxx>
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 -
+ '[' 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
Source0: %{name}-%{version}-beta1.tar.gz
Source1: %{name}.cron
Source2: %{name}-httpd.conf
Source3: %{name}.logrotate
Patch0: %{name}-%{version}-cacti-log-path.patch
%if 0%{?suse_version}
BuildRequires: apache2-devel db-devel
%if 0%{?fedora_version} || 0%{?centos_version}
BuildRequires: httpd-devel
%if 0%{?mandriva_version}
BuildRequires: apache-devel
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
%define apxs /usr/sbin/apxs
%define apache2_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define prefix %{_datadir}/cacti

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

Ian Berry <iberry@xxxxxxxxxx>

%setup -q
%patch0 -p1

full Log ->
full Spec ->
project ->
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups