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

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

    <bug>
          <bug_id>48804</bug_id>
          
          <creation_ts>2023-12-14 14:05:28 +0300</creation_ts>
          <short_desc>gcc12 dependency</short_desc>
          <delta_ts>2025-03-14 17:46:26 +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>rvm-devel</component>
          <version>unstable</version>
          <rep_platform>all</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan A. Melnikov">iv</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>239009</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2023-12-14 14:05:28 +0300</bug_when>
    <thetext>rvm specfile has the following lines in %package secion for rvm-devel:

#NOTE specify gcc12 explicitly
Requires:      gcc12
Requires:      gcc12-c++

This breaks build of all rvm-devel dependencies, including ruby, on loongarch64, since gcc 12 does not support loongarch64, and thus we don&apos;t have gcc12 on sisyphus_loongarch64.

To build rvm and ruby-3.1.4-alt1 on loongarch64, I had to replace this dependency with gcc13, and it worked just fine.

So, could you please answer the following questions:

1. Why it is necessary to pin the compiler version in rvm-devel requiremets?

2. Is there anything special in GCC 12, or an arbitrary version of GCC can be pinned?

3. What would break if gcc version is updated on a specific architecutre? On all architectures?

4. Is it possible to write a comment answering those questions to the rvm spec file, instead of current comment, which is just stating the obvious?

Thanks in advance.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>