Bug 48804 - gcc12 dependency
Summary: gcc12 dependency
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: rvm-devel (show other bugs)
Version: unstable
Hardware: all Linux
: P5 major
Assignee: majioa@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-14 14:05 MSK by Ivan A. Melnikov
Modified: 2023-12-14 14:05 MSK (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.