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

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

    <bug>
          <bug_id>59856</bug_id>
          
          <creation_ts>2026-07-17 15:51:43 +0300</creation_ts>
          <short_desc>Ошибка Could not find gem &apos;gettext_i18n_rails_js (~&gt; 1.4)&apos; при установке foreman-3.13.0-alt2</short_desc>
          <delta_ts>2026-10-20 10:42:18 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p11</product>
          <component>foreman</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>lavrenkoes</cc>
    
    <cc>linar_97</cc>
          
          <qa_contact name="qa-p11@altlinux.org">qa-p11</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>291242</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-07-17 15:51:43 +0300</bug_when>
    <thetext>Версия пакета:
# rpm -q foreman
foreman-3.13.0-alt2.noarch

Выполнение railsctl setup foreman завершается ошибкой:
Renewing dependencies...
Error code is: 3

В логах:
# cat /var/log/foreman/bundle.log
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without &apos;development test&apos;`, and stop using this flag
[DEPRECATED] This Gemfile does not include an explicit global source. Not using an explicit global source may result in a different lockfile being generated depending on the gems you have installed locally before bundler is run. Instead, define a global source in your Gemfile like this: source &quot;https://rubygems.org&quot;.
Could not find gem &apos;gettext_i18n_rails_js (~&gt; 1.4)&apos; in locally installed gems.

The source contains the following gems matching &apos;gettext_i18n_rails_js&apos;:
  * gettext_i18n_rails_js-1.3.1.1
[DEPRECATED] This Gemfile does not include an explicit global source. Not using an explicit global source may result in a different lockfile being generated depending on the gems you have installed locally before bundler is run. Instead, define a global source in your Gemfile like this: source &quot;https://rubygems.org&quot;.
Could not find gem &apos;gettext_i18n_rails_js (~&gt; 1.4)&apos; in locally installed gems.

The source contains the following gems matching &apos;gettext_i18n_rails_js&apos;:
  * gettext_i18n_rails_js-1.3.1.1

Пакет gem-gettext-i18n-rails-js установлен, но не ожидаемой версии:
# rpm -qi gem-gettext-i18n-rails-js
Name        : gem-gettext-i18n-rails-js
Version     : 1.3.1.1
Release     : alt0.1
DistTag     : sisyphus+296741.540.42.6
Architecture: noarch
Install Date: Пт 17 июл 2026 15:46:55
Group       : Development/Ruby
Size        : 106078
License     : MIT
Signature   : RSA/SHA512, Ср 26 окт 2022 20:17:47, Key ID ff979dedda2773bb
Source RPM  : gem-gettext-i18n-rails-js-1.3.1.1-alt0.1.src.rpm
Build Date  : Ср 26 окт 2022 20:17:45
Build Host  : majioa-sisyphus.hasher.altlinux.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>302872</commentid>
    <comment_count>1</comment_count>
    <who name="Лавренко Егор Сергеевич">lavrenkoes</who>
    <bug_when>2026-10-20 10:42:18 +0300</bug_when>
    <thetext>Версия пакета: 
foreman-3.13.0-alt2.noarch

Дополнение к ошибке:
Тот же сбой `railsctl setup foreman` («Error code is: 3») воспроизводится на актуальной p11,
но список неразрешённых gem больше

Для воспроизведения выполнить:
# deploy foreman
...
Подготовить экземпляр Foreman...
  localhost failed | msg: The command exited with a non-zero return code. | stdout: Work dir is &apos;/var/lib/foreman&apos;
Processing rails application &apos;foreman&apos; setup...
Applying variables from &apos;/etc/sysconfig/foreman&apos;
Renewing dependencies...
Error code is: 3

В логах:
# tail /var/log/foreman/bundle.log
Could not find gem &apos;spice-html5-rails (~&gt; 0.1.5)&apos; in locally installed gems.

После установки gem-spice-html5-rails (пакет в p11 есть, 0.1.5-alt1.2) - следующий отсутствующий gem:
# railsctl setup foreman; tail /var/log/foreman/bundle.log
Could not find gem &apos;patternfly-sass (~&gt; 3.59.4)&apos; in locally installed gems.

При этом Gemfile требует эти gem явно:
# grep -n spice /var/lib/foreman/Gemfile
49:gem &apos;spice-html5-rails&apos;, &apos;~&gt; 0.1.5&apos;, group: %i(alt)

Но в зависимости пакета они не вынесены:
# rpm -qR foreman | grep -E &apos;spice|gettext&apos;
gem(fast_gettext) &gt;= 2.1
gem(gettext_i18n_rails) &gt;= 1.8

Итого `Requires` foreman не покрывает gem, которые разрешаются на этапе `railsctl setup`: spice-html5-rails (~&gt; 0.1.5), patternfly-sass (~&gt; 3.59.4) и gettext_i18n_rails_js (~&gt; 1.4) - последнего в p11 нет в нужной версии (кандидат 1.3.1.1-alt0.1).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>