Mailinglist Archive: opensuse (1325 mails)

< Previous Next >
Re: [opensuse] cannot build RPMs
  • From: David Haller <opensuse@xxxxxxxxxx>
  • Date: Sat, 2 May 2009 01:08:36 +0200
  • Message-id: <20090501230836.GA10473@xxxxxxxxxxxxxxxxxx>
Hello,

On Mon, 27 Apr 2009, Shawn Protsman wrote:
[..]
@ariel ~/rpm/SPECS] rpmbuild -ba htop.spec
Executing(%prep): /bin/sh -e /home/sprotsman/rpm/tmp/rpm-tmp.5692
<snip>
/home/sprotsman/rpm/tmp/rpm-tmp.5692: line 29: cd: htop-0.8.1: No such
file or directory

You're in the wrong directory, rpmbuild looks in /usr/src/packages, as
that's the predefined place. See the output of

grep topdir /usr/lib/rpm/macros

So, add

%_topdir /home/sprotsman/

to your ~/.rpmmacros. Create the file if it doesn't exist.

HTH,
-dnh

--
Error in operator: add beer
-- BSD fortune file
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups