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

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

    <bug>
          <bug_id>44173</bug_id>
          
          <creation_ts>2022-10-29 18:36:16 +0300</creation_ts>
          <short_desc>sisyphus_check: .i586.rpm: FHS violations: /usr/lib64/ruby/vendor_ruby</short_desc>
          <delta_ts>2022-11-07 14:52:34 +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>ruby</component>
          <version>unstable</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=41688</see_also>
          <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 Chikunov">vt</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>3aHyga</cc>
    
    <cc>admsasha</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>216684</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2022-10-29 18:36:16 +0300</bug_when>
    <thetext>Невозможно запаковать ruby модуль на 32-битных архитектурах:

  /.out/ruby-xapian-1.4.21-alt1.i586.rpm: FHS violations: /usr/lib64/ruby/vendor_ruby/_xapian.so
  sisyphus_check: check-fhs ERROR: FHS violation

Всё потому что на 32-битных архитектурах %ruby_vendorarchdir в rpm-macros-ruby установлена в `/usr/lib64/ruby/vendor_ruby/`, что явно не правильно (см. lib64).

  builder@i586:/usr/lib$ grep -r lib64 rpm/macros.d/ruby
  %ruby_gemsextdir        /usr/lib64/ruby/gemie/extensions
  %ruby_sitearchdir       /usr/local/lib64/ruby
  %ruby_vendorarchdir     /usr/lib64/ruby/vendor_ruby/

При этом

  builder@i586:/usr/lib$ ruby -rrubygems -rrbconfig -e &apos;pp RbConfig::CONFIG[&quot;vendorarchdir&quot;]&apos;
  &quot;/usr/lib/ruby/vendor_ruby/&quot;

Видимо потому что 

  %package       -n rpm-macros-ruby
  BuildArch:     noarch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216692</commentid>
    <comment_count>1</comment_count>
    <who name="Малъ Скрылевъ">3aHyga</who>
    <bug_when>2022-10-29 22:45:32 +0300</bug_when>
    <thetext>Не понятно почему, т.к. я смотрел на i586 и папки были без суффикса 64.

Перепроверю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216693</commentid>
    <comment_count>2</comment_count>
    <who name="Малъ Скрылевъ">3aHyga</who>
    <bug_when>2022-10-29 23:06:43 +0300</bug_when>
    <thetext>вот я только что пересобрал новый ruby у себя, папки в файле макросов такые:

```
%ruby_gemspecdir        /usr/lib/ruby/gemie/specifications
%ruby_gemsextdir        /usr/lib/ruby/gemie/extensions
%ruby_gemslibdir        /usr/lib/ruby/gemie/gems
%ruby_gemsdocdir        /usr/share/ri
%ruby_includedir        /usr/include
%ruby_gemspec           %ruby_gemspecdir/%gemname-%version.gemspec
%ruby_gemextdir         %ruby_gemsextdir/%gemname-%version
%ruby_gemlibdir         %ruby_gemslibdir/%gemname-%version
%ruby_gemdocdir         %ruby_gemsdocdir/%gemname-%version
%ruby_gemincludedir     %ruby_includedir/%gemname
%ruby_sitedocdir        /usr/share/ri
%ruby_sitearch          i586-linux
%ruby_sitearchdir       /usr/local/lib/ruby
%ruby_sitelibdir        /usr/local/lib/ruby
%ruby_siteincludedir    /usr/include/ruby
%ruby_vendorhdrdir      /usr/include/vendor_ruby
%ruby_vendorarchdir     /usr/lib/ruby/vendor_ruby/
%ruby_vendorlibdir      /usr/lib/ruby/vendor_ruby
%ruby_vendorarchhdrdir  /usr/include/vendor_ruby
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216694</commentid>
    <comment_count>3</comment_count>
    <who name="Малъ Скрылевъ">3aHyga</who>
    <bug_when>2022-10-30 00:08:06 +0300</bug_when>
    <thetext>воспроизвёл, но  он как то проявляется только после пересборки, буду править</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216695</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2022-10-30 00:18:54 +0300</bug_when>
    <thetext>Надо убрать noarch у rpm-macros-ruby.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217003</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2022-11-07 14:52:34 +0300</bug_when>
    <thetext>Спасибо.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>