[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Newbie rpmbuild question: change directory error



Jim Knoble wrote:
> Circa 2006-03-20 01:53 dixit Raman Gupta:
> 
> : Hello, I am running Fedora Core 4. I have followed the directions at [1]
> : in order to get a non-root build tree setup with the appropriate macros,
> : dir structure, etc.
> : 
> : I am now attempting to build the msttcorefonts RPM (spec file at [2]).
> : However, any lines that involve "cd <somedir>" seem to fail during building:
> 
>   [...]
> 
> : It works fine if I edit the spec file and change all lines involving cd,
> : and prefix a `pwd`/ before them e.g.
> : 
> : cd %{name}
> : 
> : change to
> : 
> : cd `pwd`/%{name}
> 
>   [...]
> 
> : Can anyone tell me why this is happening and how I can fix it? I don't
> : want to continue to build RPMs as root.
> 
> Please share your ~/.rpmmacros and ~/.rpmrc files.

They are exactly as contained in this archive:
ftp://people.redhat.com/mharris/hacks/rpmbuild-nonroot-1.0.tar.gz

Except that I changed one thing in .rpmmacros:

%_buildroot     %{_topdir}/%{_tmppath}/%{name}-%{version}-root

to

%_buildroot     %{_tmppath}/%{name}-%{version}-root

(since _tmppath already includes _topdir)

Cheers,
Raman


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]