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
_multibuild 0000000051 51 Bytes
cpp 0000000082 82 Bytes
gcc.changes 0000017683 17.3 KB
gcc.spec 0000024439 23.9 KB
Comments 10



Dirk Stoecker's avatar

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

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

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


Richard Biener's avatar

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

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


Dirk Stoecker's avatar

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

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