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 -
+ 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 <iberry@xxxxxxxxxx>

%prep
%setup -q
%patch0 -p1


full Log ->
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=cacti-beta&project=home%3Adoiggl&repository=openSUSE_11.2
full Spec ->
https://build.opensuse.org/package/view_file?file=cacti-beta.spec&package=cacti-beta&project=home%3Adoiggl
project ->
https://build.opensuse.org/package/show?package=cacti-beta&project=home%3Adoiggl
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups