Mailinglist Archive: opensuse (1325 mails)
| < Previous | Next > |
Re: [opensuse] cannot build RPMs
- From: Shawn Protsman <protsman@xxxxxxx>
- Date: Tue, 05 May 2009 22:29:04 -0700
- Message-id: <6A3690DD-12AF-45F0-B658-322EDC866DE8@xxxxxxx>
On May 1, 2009, at 4:08 PM, David Haller wrote:
Thanks, but I am not in the "wrong directory" and I do not build RPMs in the /usr dir. I create my own tree locally ($HOME/rpm/...) and make sure my .rpmmacros file is constructed properly. I do have a _topdir defined:
%_topdir %(echo ${HOME}/rpm)
%_tmppath %{_topdir}/tmp
But again, this appears to relate to having CDPATH set inside your .bashrc. If I remove CDPATH, everything works fine. With CDPATH I need to then modify the /usr/lib/rpm/macros file by adding "unset CDPATH || : \" to the "%___build_pre" macro. Looks like a bug.
--Shawn
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
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.
Thanks, but I am not in the "wrong directory" and I do not build RPMs in the /usr dir. I create my own tree locally ($HOME/rpm/...) and make sure my .rpmmacros file is constructed properly. I do have a _topdir defined:
%_topdir %(echo ${HOME}/rpm)
%_tmppath %{_topdir}/tmp
But again, this appears to relate to having CDPATH set inside your .bashrc. If I remove CDPATH, everything works fine. With CDPATH I need to then modify the /usr/lib/rpm/macros file by adding "unset CDPATH || : \" to the "%___build_pre" macro. Looks like a bug.
--Shawn
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |