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

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

    <bug>
          <bug_id>34506</bug_id>
          
          <creation_ts>2018-02-02 22:15:27 +0300</creation_ts>
          <short_desc>Неверные имена эмуляторов в конфигурационных файлах</short_desc>
          <delta_ts>2026-02-27 19:02:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p8</product>
          <component>qemu-user-static-binfmt</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://forum.altlinux.org/index.php?topic=40989.0</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>37083</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>xdsl</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>iv</cc>
    
    <cc>ldv</cc>
    
    <cc>shaba</cc>
    
    <cc>viy</cc>
          
          <qa_contact name="qa-p8@altlinux.org">qa-p8</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>168781</commentid>
    <comment_count>0</comment_count>
    <who name="">xdsl</who>
    <bug_when>2018-02-02 22:15:27 +0300</bug_when>
    <thetext>Например, файл /lib/binfmt.d/qemu-arm-static.conf из пакета qemu-user-static-binfmt ссылается на /usr/bin/qemu-arm-static, в то время как соответствующий эмулятор из пакета qemu-user-static находится в файле /usr/bin/qemu-arm.static</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171768</commentid>
    <comment_count>1</comment_count>
      <attachid>7580</attachid>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2018-06-09 11:28:12 +0300</bug_when>
    <thetext>Created attachment 7580
патч на спек

Эта ошибка воспроизводится и на Сизифе.

В приложенном патче изменение одного символа в спеке, которое решает проблему (at least, works on my machine). Патч сделан поверх сизифного qemu 2.12.0-alt1 (commit a3bb60b).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183515</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2019-08-09 19:55:06 +0300</bug_when>
    <thetext>Какой ужас в этом спеке:

for i in %buildroot%_binfmtdir/*; do
    mv $i $(echo $i | sed &apos;s/.conf/-dynamic.conf/&apos;)
done

%if user_static
for regularfmt in %buildroot%_binfmtdir/*; do
    staticfmt=&quot;$(echo $regularfmt | sed &apos;s/-dynamic/-static/g&apos;)&quot;
    cat $regularfmt | tr -d &apos;\n&apos; | sed &quot;s/:$/-static:F/&quot; &gt; $staticfmt
done
%endif

Вместо того, чтобы написать что-нибудь простое и понятное, например,

for f in %buildroot%_binfmtdir/*.conf; do
    [ -f &quot;$f&quot; ]
    dynamic=&quot;${f%.conf}-dynamic.conf&quot;
    mv &quot;$f&quot; &quot;$dynamic&quot;
%if user_static
    static=&quot;${f%.conf}-static.conf&quot;
    sed &apos;s/:$/-static:/&apos; &lt; &quot;$dynamic&quot; &gt; &quot;$static&quot;
%endif
done</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282893</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2026-02-27 19:02:03 +0300</bug_when>
    <thetext>Было исправлено Aug 15 2019 4.0.0-alt5.
Рекомендации ldv@ тоже применены.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>7580</attachid>
            <date>2018-06-09 11:28:12 +0300</date>
            <delta_ts>2018-06-09 11:28:12 +0300</delta_ts>
            <desc>патч на спек</desc>
            <filename>quemu-spec-fix-static-binfmt.patch</filename>
            <type>text/plain</type>
            <size>412</size>
            <attacher name="Ivan A. Melnikov">iv</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3FlbXUuc3BlYyBiL3FlbXUuc3BlYwppbmRleCBjYzE4NjNkLi4wYTEzMzM1
IDEwMDY0NAotLS0gYS9xZW11LnNwZWMKKysrIGIvcWVtdS5zcGVjCkBAIC0xMjY5LDcgKzEyNjks
NyBAQCBkb25lCiAlaWYgdXNlcl9zdGF0aWMKIGZvciByZWd1bGFyZm10IGluICVidWlsZHJvb3Ql
X2JpbmZtdGRpci8qOyBkbwogICAgIHN0YXRpY2ZtdD0iJChlY2hvICRyZWd1bGFyZm10IHwgc2Vk
ICdzLy1keW5hbWljLy1zdGF0aWMvZycpIgotICAgIGNhdCAkcmVndWxhcmZtdCB8IHRyIC1kICdc
bicgfCBzZWQgInMvOiQvLXN0YXRpYzpGLyIgPiAkc3RhdGljZm10CisgICAgY2F0ICRyZWd1bGFy
Zm10IHwgdHIgLWQgJ1xuJyB8IHNlZCAicy86JC8uc3RhdGljOkYvIiA+ICRzdGF0aWNmbXQKIGRv
bmUKICVlbmRpZgogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>