The system GNU C Compiler

Edit Package gcc

This package is based on the package 'gcc' from project 'openSUSE:Factory'.

The system GNU C Compiler.

Refresh
Refresh
Source Files (show merged sources derived from linked package)
Filename Size Changed
cpp 0000000082 82 Bytes
gcc.changes 0000016049 15.7 KB
gcc.spec 0000018900 18.5 KB
Comments 10


Ryan Bach's avatar

ryanbach wrote

GCC 10.1 released [2020-05-07] https://gcc.gnu.org/gcc-10/


Dirk Stoecker's avatar

dstoecker wrote

Could you add provides of the type "gcc-c++ = %{version}" to allow usage like Requires gcc-c++ >= 9. Currently you need repository specific workarounds to reach the same goal.


Richard Biener's avatar

rguenther wrote

Such provides would conflict with the real gcc-c++ package, a gcc9 package also doesn't provide g++, it provides g++-9 so not sure how such provides helps the problem you have (which I can only anticipate).


Dirk Stoecker's avatar

dstoecker wrote

See https://build.opensuse.org/request/show/910100


Richard Biener's avatar

rguenther wrote

Exactly, and you'd still need to spell out that -DCMAKE_CXX_COMPILER="%{_bindir}/g++-9" so you win nothing (IMHO).


Dirk Stoecker's avatar

dstoecker wrote

Why is /etc/alternatives.d not used like for other similar packages like java?


Dirk Stoecker's avatar

dstoecker wrote

Essentially the problem to resolve is to request a gcc-c++ version higher than a given version without needing to request a specific package name. That happens when the gcc-c++ package targets an older version, but the newer one is already existing.

You want gcc-c++ for all the systems which already use your minimum version, but for the older OS you need gccX-c++, so you get the minimum you need. But if you required gccX-c++ always then you get an OLD or not existing compiler on the newer systems, which is not wanted.

If gcc-c++ conflicts, what about a new provides like "gcc-c++-compiler = %{version}"?


Richard Biener's avatar

rguenther wrote

This has been discussed to death. OBS package comments are not really the correct forum to repeat that. You can use bugzilla or the mailing list if you like.

openSUSE Build Service is sponsored by