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

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

    <bug>
          <bug_id>6838</bug_id>
          
          <creation_ts>2005-05-14 14:34:22 +0400</creation_ts>
          <short_desc>Невозможно собирать пакеты, которые изменяют требования для сборки в зависимости от заданных параметров --with/--without и --enabled/--disabled</short_desc>
          <delta_ts>2020-11-21 22:26:50 +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>hasher</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=39327</see_also>
          <bug_file_loc>http://lists.altlinux.ru/pipermail/sisyphus/2005-May/060057.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>31673</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergei Epiphanov">serpiph</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24527</commentid>
    <comment_count>0</comment_count>
    <who name="Sergei Epiphanov">serpiph</who>
    <bug_when>2005-05-14 14:34:22 +0400</bug_when>
    <thetext>При попытке собрать postfix-2.1.5-alt3.src.rpm с поддержкой tls и ssl получил:

$ hsh --build-args=&apos;--with tls&apos; /home/user/Repo postfix-2.1.5-alt3.src.rpm
&lt;находит пакеты&gt;
&lt;устанавливает пакеты&gt;
rpm: для сборки необходим пакет libssl-devel
error:...
$

Пакет при сборке с параметром --with tls добавляет требование для сборки:

BuildRequires: libssl-devel

Получается, что hasher не может найти такие зависимости -&gt; не может собрать
нестандартный пакет.
Steps to Reproduce:
1. hsh --build-args=&apos;--with tls&apos; /home/user/Repo postfix-2.1.5-alt3.src.rpm

Actual Results:  
Ошибка при сборке из-за отсутствующего пакета libssl-devel

Expected Results:  
Собранный пакет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24542</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2005-05-14 15:56:35 +0400</bug_when>
    <thetext>(In reply to comment #0)
&gt; При попытке собрать postfix-2.1.5-alt3.src.rpm с поддержкой tls и ssl получил:
&gt; 
&gt; $ hsh --build-args=&apos;--with tls&apos; /home/user/Repo postfix-2.1.5-alt3.src.rpm
&gt; &lt;находит пакеты&gt;
&gt; &lt;устанавливает пакеты&gt;
&gt; rpm: для сборки необходим пакет libssl-devel

так добавьте его с помощью ключа --pkg-build-list
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24544</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2005-05-14 16:30:35 +0400</bug_when>
    <thetext>Я не понял, что вы хотите и как вы предлагаете получить то поведение, которого
хотите.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24821</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2005-05-20 02:17:08 +0400</bug_when>
    <thetext>В hasher-1.0.15-alt1 у hsh появился новый ключ --query-repackage, с помощью
которого можно решать такие задачи.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>