The system GNU C Compiler
This package is based on the package 'gcc' from project 'openSUSE:Factory'.
The system GNU C Compiler.
- Devel package for openSUSE:Factory
-
8
derived packages
- Links to openSUSE:Factory / gcc
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:gcc/gcc && cd $_
- Create Badge
Refresh
Refresh
Source Files (show merged sources derived from linked package)
Filename | Size | Changed |
---|---|---|
_link | 0000000138 138 Bytes | |
cpp | 0000000082 82 Bytes | |
gcc.changes | 0000016049 15.7 KB | |
gcc.spec | 0000018900 18.5 KB |
Comments 10
_nobody_ wrote
This comment has been deleted
etamPL wrote
https://bugzilla.opensuse.org/show_bug.cgi?id=1090209
ryanbach wrote
GCC 10.1 released [2020-05-07] https://gcc.gnu.org/gcc-10/
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.
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).
dstoecker wrote
See https://build.opensuse.org/request/show/910100
rguenther wrote
Exactly, and you'd still need to spell out that -DCMAKE_CXX_COMPILER="%{_bindir}/g++-9" so you win nothing (IMHO).
dstoecker wrote
Why is /etc/alternatives.d not used like for other similar packages like java?
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}"?
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.