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

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

    <bug>
          <bug_id>40627</bug_id>
          
          <creation_ts>2021-08-02 03:27:35 +0300</creation_ts>
          <short_desc>Remove stripping from the pakages to fix debuginfo</short_desc>
          <delta_ts>2021-08-02 03:45:48 +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-build</component>
          <version>unstable</version>
          <rep_platform>x86</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>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Chikunov">vt</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</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>201129</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-08-02 03:27:35 +0300</bug_when>
    <thetext>Многие пакеты (~400) до сих пор не создают debuginfo из-за того, что внутри сборки происходит strip. Частые причины - вставленные апстримом и забытые маинтайнером:

  (потеря %optflags и как следствие сборка без -g);
  при линковке появление флага -s;
  install -s;
  вызовы strip;

Симптомы: grep&apos;ать в логе сборки сообщения от 056-debuginfo.brp

Примеры некоторых фиксов:

  specs (sisyphus)$ git log --grep debuginfo --author ldv -p

Идея сделать так, чтоб install -s при сборке в rpmbuild автоматически не стрипал.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201130</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-08-02 03:45:48 +0300</bug_when>
    <thetext>&gt; Идея сделать так, чтоб install -s при сборке в rpmbuild автоматически не
&gt; стрипал.

Это реализовано в 4.0.4-alt160, но там install перехватывается через %__install (INSTALL=&quot;/usr/libexec/rpm-build/install -p&quot;) и PATH=/usr/libexec/rpm-build:$PATH. Вызов с полным путём этот метод не поймает. И даже там где это срабатывает (87 пакетов, из них) 37 пакетов остаются с &quot;debuginfo without debug sources&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>