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

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

    <bug>
          <bug_id>34265</bug_id>
          
          <creation_ts>2017-12-01 11:16:23 +0300</creation_ts>
          <short_desc>неадекватное значение -O</short_desc>
          <delta_ts>2019-06-19 06:17:49 +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>libvorbis</component>
          <version>unstable</version>
          <rep_platform>e2k</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</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>167598</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2017-12-01 11:16:23 +0300</bug_when>
    <thetext>configure* в libvorbis-1.3.[45] содержит -O20, на что lcc/e2k обижается.

Предлагаю как минимум

+%ifarch e2k
+sed -i &apos;s,-O20,-O3,g&apos; configure*
+%endif

в %prep.

PS: подобное же было замечено ещё в нескольких пакетах, в т.ч. libogg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167599</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2017-12-01 11:28:01 +0300</bug_when>
    <thetext>Как известно,
1. для gcc всё, что &gt; 3, равно 3.
2. всё, что не gcc, не существует. :)

Так что %ifarch лишний, можно для всех заменять, причём лучше не на -O3, а сразу на %optflags_optimization</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167607</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2017-12-01 18:01:11 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; 2. всё, что не gcc, не существует. :)
Следовательно, по известному тебе не существуешь ты. :)

&gt; причём лучше не на -O3, а сразу на %optflags_optimization
А это как раз будет отрывание перетянутой гайки нафиг -- вместо -O3 выйдет -O2.
Так что, поразмыслив, предлагаю именно -O3 (либо завести какой %optflags_overoptimization того же состава и затем запихать его).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182560</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2019-06-19 01:59:34 +0300</bug_when>
    <thetext>Fixed upstream in libvorbis-1.3.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182583</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2019-06-19 06:17:49 +0300</bug_when>
    <thetext>Да, засобиралось.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>