<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>1099</bug_id>
          
          <creation_ts>2002-07-15 12:36:03 +0400</creation_ts>
          <short_desc>more specialized BuildRequires</short_desc>
          <delta_ts>2014-12-20 16:27:53 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm-utils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="imz">vanyaz</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1048</commentid>
    <comment_count>0</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2002-07-15 12:36:03 +0400</bug_when>
    <thetext>According to &lt;a href=&quot;file:///usr/share/doc/rpm-4.0.4/apidocs/tsort.html&quot;&gt;file:///usr/share/doc/rpm-4.0.4/apidocs/tsort.html&lt;/a&gt;
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\&apos;t want to proceed with some action like \&amp;quot;--clean\&amp;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 \&apos;rpmbuild -bE\&apos; 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
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113424</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2010-10-09 19:01:36 +0400</bug_when>
    <thetext>Isn&apos;t it better to fix --clean?  The thing is, rpmbuild -bs usually won&apos;t need BuildRequires either (might need BuildPreReq though) and still one would cope with --nodeps just to wrap up an srpm.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>