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

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

    <bug>
          <bug_id>40116</bug_id>
          
          <creation_ts>2021-05-28 15:53:19 +0300</creation_ts>
          <short_desc>Адаптировать rpm-build-python3 к сборке python3.10</short_desc>
          <delta_ts>2021-11-23 11:39:44 +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-python3</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Grigory Ustinov">grenka</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>darktemplar</cc>
    
    <cc>george</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>kotopesutility</cc>
    
    <cc>kotopesutility</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>slev</cc>
    
    <cc>vitty</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>198759</commentid>
    <comment_count>0</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2021-05-28 15:53:19 +0300</bug_when>
    <thetext>Removed the parser module, which was deprecated in 3.9 due to the switch to the new PEG parser, as well as all the C source and header files that were only being used by the old parser, including node.h, parser.h, graminit.h and grammar.h.

(https://github.com/python/cpython/blob/main/Doc/whatsnew/3.10.rst)

По-русски говоря, это блокер для обновления python3 до 3.10. Сборка, очевидно, заканчивается вот так:

find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services,tcl)
Traceback (most recent call last):
  File &quot;/usr/lib/rpm/python3.req.py&quot;, line 6, in &lt;module&gt;
    import parser, symbol, token, types
ModuleNotFoundError: No module named &apos;parser&apos;
find-requires: ERROR: /usr/lib/rpm/python3.req failed
error: /bin/sh failed
error: Failed to find Requires</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>199699</commentid>
    <comment_count>1</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2021-06-30 09:33:13 +0300</bug_when>
    <thetext>Если grep не ошибается, parser используется единожды, и для какой-то слегка побочной цели. Сейчас попробую пофиксить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>199700</commentid>
    <comment_count>2</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2021-06-30 09:42:20 +0300</bug_when>
    <thetext>«Ой, нет, совсем не прямо!» ©Alice
Но всё равно попробую</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>199702</commentid>
    <comment_count>3</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2021-06-30 09:43:43 +0300</bug_when>
    <thetext>(Ответ для Fr. Br. George на комментарий #1)
&gt; Если grep не ошибается, parser используется единожды, и для какой-то слегка
&gt; побочной цели. Сейчас попробую пофиксить.

Зато symbol используется несколько раз.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205192</commentid>
    <comment_count>4</comment_count>
    <who name="kotopesutility">kotopesutility</who>
    <bug_when>2021-11-23 00:58:21 +0300</bug_when>
    <thetext>Я переписал python3.req.py, избежав использование модулей parser и symbol, используя ast. Я все довольно подробно описал в своем письме: https://lists.altlinux.org/pipermail/devel/2021-November/215681.html.
Пересборка icarus прошла успешно, за исключением ряда пакетов, которые вряд ли живые, но при необходимости я же их и пересоберу (см. задание 288864). 
Задание для sisyphus уже собрано (см. 290420), поэтому, наверное, можно считать проблему решенной.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205199</commentid>
    <comment_count>5</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2021-11-23 11:39:44 +0300</bug_when>
    <thetext>Круто, спасибо большое, Данила!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>