kernel-2.4.20-37.9.legacy.src.rpm problem

Michal Jaegermann michal at harddata.com
Thu Dec 9 17:13:59 UTC 2004


On Thu, Dec 09, 2004 at 04:22:24PM +0000, Brian Morrison wrote:
> 
> It's source is unpacked into /usr/src/redhat/SOURCES ....

Well, no, not really.  This gets unpacked into
 
     $(rpm --eval %_topdir)/SOURCES

where '/usr/src/redhat' happens to a be default value of
%_topdir on Red Hat originated systems and happens to be defined
in /usr/lib/rpm/macros.

If you are doing any development work with rpm packages then you
really should not be working as root but you should define your own
%_topdir in ~/.rpmmacros and use a content of /usr/src/redhat only
as a template.  Likely one day you will be really glad that you did. :-)

   Michal




More information about the fedora-legacy-list mailing list