Bug 1099 - more specialized BuildRequires
: more specialized BuildRequires
Status: NEW
: Sisyphus
(All bugs in Sisyphus/rpm-utils)
: unstable
: all Linux
: P4 enhancement
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2002-07-15 12:36 by
Modified: 2014-12-20 16:27 (History)


Attachments


Note

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


Description From 2002-07-15 12:36:03
According to <a
href="file:///usr/share/doc/rpm-4.0.4/apidocs/tsort.html">file:///usr/share/doc/rpm-4.0.4/apidocs/tsort.html</a>
rpm allows BuildRequires-specialization for sections. I suggest to use it in
the output of buildreq.

I have a reason for this: now, when BuildRequires are not specialized, rpmbuild
often doesn\'t want to proceed with some action like \&quot;--clean\&quot;
because some of the BuildRequires are not there. This is inconvenient because
in most cases the packages listed in BuildRequires are not really required for
%clean or a certain other action.

I suggest that buildreq generates three kinds of build-dependencies:

first, it traces something like \'rpmbuild -bE\' and sees what is required to
preprocess the spec; these dependencies are written as BuildPreReq. Then it
traces %prep and writes BuildRequires(prep) and then it traces %build and
writes BuiildRequires(build).

---

---
0.4.4-alt1
------- Comment #1 From 2010-10-09 19:01:36 -------
Isn't it better to fix --clean?  The thing is, rpmbuild -bs usually won't need
BuildRequires either (might need BuildPreReq though) and still one would cope
with --nodeps just to wrap up an srpm.