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

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

    <bug>
          <bug_id>47108</bug_id>
          
          <creation_ts>2023-08-03 11:21:56 +0300</creation_ts>
          <short_desc>util-linux: loongarch64 FTBFS</short_desc>
          <delta_ts>2023-08-04 11:39:00 +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>util-linux</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>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>45802</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Sheplyakov">asheplyakov</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>asheplyakov</cc>
    
    <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>iv</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
    
    <cc>sin</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>230803</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2023-08-03 11:21:56 +0300</bug_when>
    <thetext>[loongarch64] bash4 is already the newest version.
[loongarch64] Selecting libpam0-devel for &apos;libpam-devel&apos;
[loongarch64] E: Couldn&apos;t find package klibc-devel
[loongarch64] hsh-install: Failed to calculate package file list.
[loongarch64] hsh-install: Failed to generate package file list.

klibc пока не портирована на LoongArch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230815</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2023-08-03 15:01:29 +0300</bug_when>
    <thetext>#326337 EPERM #2 sisyphus util-linux.git=2.39.1-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230824</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2023-08-03 15:47:15 +0300</bug_when>
    <thetext>(In reply to Alexey Sheplyakov from comment #1)
&gt; #326337 EPERM #2 sisyphus util-linux.git=2.39.1-alt2

Эта сборка содержит ошибку в коммите 7cfa41245c5563dd6b007be1298ca445a60a7643:

+%ifarch armh e2k loongarch64
+%def_without klibc
+%else
+%def_with klibc
+%endif
...
-%ifnarch armh %e2k
+%if_with klibc

Вы превратили e2k из макроса в простое значение.

$ rpm --eval %e2k
e2k e2kv4 e2kv5 e2kv6 e2k4c e2k8c e2k1cp e2k8c2 e2k12c e2k16c e2k2c3

Исправьте.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230837</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2023-08-04 10:17:35 +0300</bug_when>
    <thetext>(Ответ для Alexey Gladkov на комментарий #2)
&gt; (In reply to Alexey Sheplyakov from comment #1)
&gt; &gt; #326337 EPERM #2 sisyphus util-linux.git=2.39.1-alt2
&gt; 
&gt; Эта сборка содержит ошибку в коммите
&gt; 7cfa41245c5563dd6b007be1298ca445a60a7643:
&gt; 
&gt; +%ifarch armh e2k loongarch64
&gt; +%def_without klibc
&gt; +%else
&gt; +%def_with klibc
&gt; +%endif
&gt; ...
&gt; -%ifnarch armh %e2k
&gt; +%if_with klibc
&gt; 
&gt; Вы превратили e2k из макроса в простое значение.
&gt; 
&gt; $ rpm --eval %e2k
&gt; e2k e2kv4 e2kv5 e2kv6 e2k4c e2k8c e2k1cp e2k8c2 e2k12c e2k16c e2k2c3
&gt; 
&gt; Исправьте.

Сделано.
#326337 EPERM #3 sisyphus util-linux.git=2.39.1-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230843</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-08-04 11:39:00 +0300</bug_when>
    <thetext>util-linux-2.39.1-alt2 -&gt; sisyphus:

 Thu Aug 03 2023 Alexey Sheplyakov &lt;asheplyakov@altlinux&gt; 2.39.1-alt2
 - Fixed build on LoongArch (closes: #47108).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>