Bug 203772 - rpm cannot install .src.rpm due to missing /usr/src/redhat
Summary: rpm cannot install .src.rpm due to missing /usr/src/redhat
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-23 17:45 UTC by Will Woods
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-23 18:29:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Will Woods 2006-08-23 17:45:30 UTC
rpm is normally able to install .src.rpm files. However the rpm package does not
own /usr/src/redhat - rpm-build does.

Without this directory, attempting to install a .src.rpm fails with:
error: cannot create %sourcedir /usr/src/redhat/SOURCES

Creating /usr/src/redhat allows the .src.rpm to be installed.

This bug has been present since FC5.

Comment 1 Will Woods 2006-08-23 18:29:38 UTC
Solution: install rpm-build. You need this to do anything useful with the
contents of the .src.rpm anyway.

If you don't want to wait that long, just do: 
 mkdir /usr/src/redhat
and try again.



Note You need to log in before you can comment on or make changes to this bug.