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

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

    <bug>
          <bug_id>60651</bug_id>
          
          <creation_ts>2026-09-21 23:55:01 +0300</creation_ts>
          <short_desc>Бэкпортирование rpm-macros-cuda-toolkit в бранч p11</short_desc>
          <delta_ts>2026-09-24 21:34:35 +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-macros-cuda-toolkit</component>
          <version>unstable</version>
          <rep_platform>x86_64</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>58408</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="fidel@altlinux.org">fidel</assigned_to>
          <cc>fidel</cc>
    
    <cc>tergoev-m</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>299753</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-09-21 23:55:01 +0300</bug_when>
    <thetext>Прошу сделать сборку rpm-macros-cuda-toolkit для бранча p11 (отдельная ветка с адаптацией под nvidia-cuda-toolkit 12.9.1 и gcc13).

Контекст: в Сизифе на макропакет переведено 11 src-пакетов (ollama, llama.cpp, transcribe.cpp, sd-cpp, bcd, blender, pcl, opensubdiv, openimagedenoise, python3-module-torch-cuda, nvidia-cutlass), и при копировании в p11 сборка падает ещё на формировании списка пакетов chroot:

```
E: Couldn&apos;t find package gcc14
hsh-install: Failed to calculate package file list.
```

Пример: task #433685 (ollama 0.34.2 → p11): https://git.altlinux.org/tasks/433685/build/100/x86_64/srpm.log

Причина: макросы зашиты под Сизиф:
- %cuda_version 13.2 / %cuda_major 13 — в p11 CUDA 12.9.1;
- %cuda_gcc_version 14 → %cuda_buildreq требует gcc14/gcc14-c++, которых в p11 нет (системный компилятор gcc13, CUDA 12.9 его поддерживает);
- %cuda_archs «75 80 86 89 90 100 103 120 121» — список для 13.2, для 12.9 нужна сверка с возможностями nvcc из p11.

Для p11, соответственно, нужны значения вида:
- %cuda_version 12.9
- %cuda_major 12
- %cuda_gcc_version 13
- %cuda_archs ...  # по возможностям nvcc 12.9.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300104</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-09-24 17:55:45 +0300</bug_when>
    <thetext>rpm-macros-cuda-toolkit-0.2-alt1 -&gt; sisyphus:

Thu Sep 24 2026 Mikhail Tergoev &lt;fidel@altlinux&gt; 0.2-alt1
- Fix %cuda_version and %cuda_gcc_version for p11 (Closes: #60651)
- For CUDA 12 returned Maxwell/Pascal/Volta archs to %cuda_archs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300119</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-09-24 21:34:35 +0300</bug_when>
    <thetext>Спасибо!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>