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

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

    <bug>
          <bug_id>39078</bug_id>
          
          <creation_ts>2020-10-14 14:55:04 +0300</creation_ts>
          <short_desc>rpm в hasher&apos;е на armh при запуске через qеmu</short_desc>
          <delta_ts>2024-07-20 17:14:27 +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>qemu-user-static-arm</component>
          <version>unstable</version>
          <rep_platform>arm</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://sourceware.org/bugzilla/show_bug.cgi?id=23960</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="Evgeny Sinelnikov">sin</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>antohami</cc>
    
    <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>gremlin</cc>
    
    <cc>imz</cc>
    
    <cc>iv</cc>
    
    <cc>jqt4</cc>
    
    <cc>ldv</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>shaba</cc>
    
    <cc>voropaevdmtr</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>193230</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2020-10-14 14:55:04 +0300</bug_when>
    <thetext>Обнаружил нерабочее поведение сизифного rpm в hasher&apos;е на armh-архитектуре при запуске через qеmu. На p9 не воспроизводится.

Для воспроизведения можно воспользоваться примером mkimage-профиля:
http://git.altlinux.org/people/sin/packages/mkimage-profile-armrootfs.git

Ошибка выглядит следующим образом:
$ make                                                                              
mkimage: Processing &apos;prepare&apos; ...                                                                                     
mkimage: Processing &apos;prepare-workdir&apos; ...
[...]
mkimage: Processing &apos;build-image&apos; ...                                                                                 
        installing package chkconfig-1.3.59-alt4.armh needs 916KB on the / filesystem
        installing package sysvinit-utils-2.88-alt6.armh needs 2MB on the / filesystem   
        installing package libmnl-1.0.4-alt2.armh needs 2MB on the / filesystem
[...]
        installing package expect-1:5.45.4-alt4.armh needs 137MB on the / filesystem
        installing package zip-30000000:3.0-alt1.armh needs 138MB on the / filesystem
        installing package vlan-utils-1.9-alt3.armh needs 138MB on the / filesystem
        installing package traceroute-1:2.1.0-alt2.armh needs 138MB on the / filesystem
        installing package rsync-3.1.3-alt1.armh needs 139MB on the / filesystem
        installing package hostinfo-2.2-alt6.armh needs 139MB on the / filesystem
hsh-install: Packages installation failed.
make: *** [/usr/share/mkimage/targets.mk:119: build-image] Ошибка 1

Запуск rpm -i вручную

sin@xpi mkimage-profile-armrootfs $ hsh-shell --rooter .work/chroot/.work/
[root@localhost .in]# rpm -i *.rpm 2&gt;&amp;1 | head -n3
        installing package chkconfig-1.3.59-alt4.armh needs 916KB on the / filesystem
        installing package sysvinit-utils-2.88-alt6.armh needs 2MB on the / filesystem
        installing package udev-rules-1:246.6-alt2.noarch needs 2MB on the / filesystem

[root@localhost .in]# ls -1 | head -n2
acl_2.2.53-alt1%3asisyphus+221902.200.4.1@1589842676_armh.rpm
agetty_2.35.2-alt2%3asisyphus+253892.100.2.1@1592923075_armh.rpm
# ls -1 *.rpm| wc
    161     161   10519


При этом, если переключить репозиторий на бранч p9 (настройки подготовлены в ветке p9 того же репозитория mkimage-profile-armrootfs), данная ошибка в том же окружении не возникает.

Для настройки окружения необходжимо установить пару дополнительных пакетов:
sin@xpi mkimage-profile-armrootfs $ rpm -qa|grep arm
qemu-user-static-binfmt-arm-4.2.1-alt1.x86_64
qemu-user-static-arm-4.2.1-alt1.x86_64

Тот же самый пример на сизифном репозитории, но на платформе aarch64 вполне работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193246</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2020-10-14 17:09:46 +0300</bug_when>
    <thetext>Да. Ерунда эта началась осенью прошлого года. Но пару месяцев назад вообще полный ахтунг настал. Я теперь собираю регулярки на Raspberry Pi 4 для armh.

Писал об этом в рассылку devel@ несколько раз.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193247</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2020-10-14 17:13:15 +0300</bug_when>
    <thetext>возможно, поможет строчка:
rpmi=&quot;rpmi --ignoresize&quot;
в ~/.hasher/config</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196496</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2021-02-25 15:01:28 +0300</bug_when>
    <thetext>На Сизифе сейчас не воспроизводится (qemu-user-static-arm-5.2.0-alt4), но проблема похоже ещё есть в p9, и связана находится именно в qemu-user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196497</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-02-25 15:03:27 +0300</bug_when>
    <thetext>(In reply to Evgeny Sinelnikov from comment #0)
&gt; Для настройки окружения необходжимо установить пару дополнительных пакетов:
&gt; sin@xpi mkimage-profile-armrootfs $ rpm -qa|grep arm
&gt; qemu-user-static-binfmt-arm-4.2.1-alt1.x86_64
&gt; qemu-user-static-arm-4.2.1-alt1.x86_64

Перевешиваю на релевантный пакет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249075</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2024-07-20 17:14:27 +0300</bug_when>
    <thetext>актуально?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>