Bug 48804

Summary: gcc12 dependency
Product: Sisyphus Reporter: Ivan A. Melnikov <iv>
Component: rvm-develAssignee: majioa <majioa>
Status: NEW --- QA Contact: qa-sisyphus
Severity: major    
Priority: P5 CC: cas, imz, led, majioa, mike, nbr, pav, rider, stalker
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan A. Melnikov 2023-12-14 14:05:28 MSK
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'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.