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

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

    <bug>
          <bug_id>26253</bug_id>
          
          <creation_ts>2011-09-08 14:51:21 +0400</creation_ts>
          <short_desc>add armv7l to %arm</short_desc>
          <delta_ts>2012-08-18 01:17:02 +0400</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>all</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="Mike Lykov">combr</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>125040</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2011-09-08 14:51:21 +0400</bug_when>
    <thetext>с некоторых пор (сейчас стоит qemu-user-binfmt_misc-0.14.0-alt4 ) uname -m в qemu-arm стал выдавать &quot;armv7l&quot;, что перестало устраивать postinstall-script в glibc-kernelheaders (fix-asmdir.sh), который сравнивает текущий &quot;ARCH=`uname -m`&quot; с содержимым %arm, который на данный момент равен
arm armeb armv3l armv4l armv4b armv5l armv5l armv5tel armv5tejl
в версии rpm-4.0.4-alt100.24

в результате скрипт промахивается и вместо ссылки
/usr/include/linux-default/include/asm -&gt; asm-arm
создает ссылку
/usr/include/linux-default/include/asm -&gt; asm-armv7l
что ведет к 
/usr/include/linux-default/include/asm/: No such file or directory
и при сборке пакетов к 
In file included ...
/usr/include/bits/sigcontext.h:28:29: fatal error: asm/sigcontext.h: No such file or directory

(т.е. при сборке разных пакетов всё, что должно браться из asm/* обламывается).

собрать что-либо (использующее asm/*) в hasher с hsh --with-qemu=arm --target=arm и на основе репозитория SisyphusARM становится невозможно.

Зафиксил, добавив в скрипт fix-asmdir.sh в явном виде armv7l в строку ARM=&quot;&quot;.

Предлагаю добавить это и в %arm, но вообще это ненадолго.. до следующего изменения в uname -m в qemu-arm.
Вероятно, можно исправить саму логику скрипта
&quot;если в строке не нашли знакомого-создадим прямтак&quot;..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132839</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2012-08-18 01:17:02 +0400</bug_when>
    <thetext>rpm-4.0.4-alt100.54 -&gt; sisyphus:

* Fri Aug 17 2012 Dmitry V. Levin &lt;ldv@altlinux&gt; 4.0.4-alt100.54
- Added armh arch support (by Sergey Bolshakov; closes: #26253).
- GROUPS: added Graphical desktop/MATE (by Igor Vlasenko; closes: #27626).
- %patch: added -F/-d options and appropriate macros for better
  spec file compatibility (by Igor Vlasenko; closes: #27627).
- %configure: update config.sub and config.guess right before configure.
- debugedit: backported DWARF-4 support from rpm.org.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>