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

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

    <bug>
          <bug_id>61284</bug_id>
          
          <creation_ts>2026-11-01 18:33:54 +0300</creation_ts>
          <short_desc>sharpemu: собирать с системным dotnet вместо встроенного рантайма (self-contained)</short_desc>
          <delta_ts>2026-11-01 22:57:25 +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>sharpemu</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</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="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Денис Назаров">nenderus</assigned_to>
          <cc>nenderus</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>303735</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2026-11-01 18:33:54 +0300</bug_when>
    <thetext>Пакет собирается через `dotnet publish --self-contained true -r linux-x64`, и в %_libexecdir/sharpemu/SharpEmu оказывается рантайм .NET, вшитый в исполняемый файл. Рантайм берётся из пакета Microsoft.NETCore.App.Runtime.linux-x64 в кэше NuGet (packages.tar), то есть это готовые бинарники Microsoft (libcoreclr.so и др.), а не собранный в ALT dotnet-runtime-10.0.

Чем это плохо:
- исправления безопасности системного dotnet-runtime до пакета не доходят, для каждого нужна пересборка с обновлением packages.tar;
- рантайм открывает ICU и libssl через dlopen, поэтому зависимостей на них у пакета нет (у dotnet-runtime-* есть Requires: libicu);
- в пакете оказываются готовые бинарники вместо собранных из исходников.

Предлагаю собирать framework-dependent: `--self-contained false` (без PublishSingleFile, если он задан в проекте), с Requires: dotnet-10.0, а Microsoft.NETCore.App.Runtime.* и Microsoft.NETCore.App.Host.* убрать из packages.tar.

Могу подготовить такую сборку сам.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>303744</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-11-01 22:57:25 +0300</bug_when>
    <thetext>sharpemu-0.0.7-alt2.pulse -&gt; sisyphus:

Sun Nov 01 2026 Nazarov Denis &lt;nenderus@altlinux&gt; 0.0.7-alt2.pulse
- Build framework-dependent against the system dotnet-runtime-10.0 instead of
  embedding Microsoft&apos;s prebuilt runtime from the NuGet cache (closes: #61284)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>