Edit Package gcc

The system GNU C Compiler

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 almost 14 years
gcc.changes 0000015081 14.7 KB 27 days
gcc.spec 0000019318 18.9 KB 27 days
Comments 10

Anonymous User's avatar

_nobody_ wrote over 3 years ago

This comment has been deleted



Ryan Bach's avatar

ryanbach wrote over 1 year ago

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


Dirk Stoecker's avatar

dstoecker wrote 3 months ago

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 3 months ago

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 3 months ago

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


Richard Biener's avatar

rguenther wrote 3 months ago

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 3 months ago

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


Dirk Stoecker's avatar

dstoecker wrote 3 months ago

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 3 months ago

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