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

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

    <bug>
          <bug_id>60285</bug_id>
          
          <creation_ts>2026-08-26 15:22:53 +0300</creation_ts>
          <short_desc>warning: Passing safe_level with the 2nd argument of ERB.new is deprecated.</short_desc>
          <delta_ts>2026-09-04 22:11:15 +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>gem-ruby-ll</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></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="Vladislav Glinkin">glinkinvd</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>3aHyga</cc>
    
    <cc>admsasha</cc>
    
    <cc>amakeenk</cc>
    
    <cc>cas</cc>
    
    <cc>majioa</cc>
    
    <cc>mike</cc>
    
    <cc>nbr</cc>
    
    <cc>pav</cc>
    
    <cc>rider</cc>
    
    <cc>thatman</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>293216</commentid>
    <comment_count>0</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2026-08-26 15:22:53 +0300</bug_when>
    <thetext>Версия пакета: gem-ruby-ll-2.1.2-alt1.3

Шаги воспроизведения:
1) `$ ruby-ll /usr/lib/ruby/gemie/gems/ruby-ll-2.1.2/examples/math.rll -o math.rb`

Фактический результат:
/usr/lib/ruby/gemie/gems/ruby-ll-2.1.2/lib/ll/code_generator.rb:27: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/usr/lib/ruby/gemie/gems/ruby-ll-2.1.2/lib/ll/code_generator.rb:27: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.

Ожидаемый результат:
Отсутствие предупреждений.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295556</commentid>
    <comment_count>1</comment_count>
    <who name="Малъ Скрылевъ">3aHyga</who>
    <bug_when>2026-09-04 20:47:16 +0300</bug_when>
    <thetext>ну предупрежденіе ошибкой не является :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295589</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-09-04 22:11:15 +0300</bug_when>
    <thetext>Да, предупреждение не приводит к немедленному отказу программы, однако его причина — использование устаревшего API ERB.new, а не ожидаемое поведение Ruby или особенность сборки ALT.

В установленной версии gem-ruby-ll-2.1.2-alt1.3 файл lib/ll/code_generator.rb, строка 27, содержит:

ERB.new(template, nil, &apos;-&apos;)

Второй и третий позиционные аргументы (safe_level и trim_mode) устарели. Корректный эквивалент:

ERB.new(template, trim_mode: &apos;-&apos;)

Исправление уже внесено upstream: commit 614eba29eb44b5673dc37db3652be0661d6fe109 — “Fix ERB deprecation warning”:
https://github.com/yorickpeterse/ruby-ll/commit/614eba29eb44b5673dc37db3652be0661d6fe109

Поэтому для ALT достаточно применить upstream-патч; он устраняет оба warning и предотвращает будущую несовместимость при удалении legacy API Ruby.

Также желательно заменить устаревшую ссылку Vcs в spec: upstream переехал с GitLab на GitHub:
https://github.com/yorickpeterse/ruby-ll</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>