This repository has upgraded GCC5 to 5.4, while I need the 5.3.1 package, same as OpenSUSE Leap 42.1 and SLES12 uses.
I tried getting the Source RPM from the Leap_42.1 repository, rebuild it on OpenSUSE 13.2, but was unsuccessful in that regard. Was then thinking perhaps if I could get the previous version from the 13.2 repository I would be able to rebuild the package.
Not sure why I was not able to compile and build the Source RPM for GCC5 taken from Leap 42.1
You can’t.
New package versions replace older ones.
But you can build previous versions of a package on OBS.
Have a look at:
osc copypac --help
In particular:
-r rev, --revision=rev
copy the specified revision.
The -r option also works with “co” to download the sources to your system:
wolfi@amiga:~/Desktop> osc co --help
checkout (co): Check out content from the repository
Check out content from the repository server, creating a local working
copy.
When checking out a single package, the option --revision can be used
to specify a revision of the package to be checked out.
When a package is a source link, then it will be checked out in
expanded form. If --unexpand-link option is used, the checkout will
instead produce the raw _link file plus patches.
usage:
osc co PROJECT [PACKAGE] [FILE]
osc co PROJECT # entire project
osc co PROJECT PACKAGE # a package
osc co PROJECT PACKAGE FILE # single file -> to current dir
while inside a project directory:
osc co PACKAGE # check out PACKAGE from project
with the result of rpm -q --qf '%{DISTURL}
' PACKAGE
osc co obs://API/PROJECT/PLATFORM/REVISION-PACKAGE
Options:
...
-r rev, --revision=rev
checkout the specified revision. NOTE: if you checkout
the complete project this option is ignored!
Have you tried just copying the pre-compiled binary from LEAP on to your 13.2 system and tried it?
I’ve done that in the past in other situations with success…
If a gcc 4.x works for you, there are plenty to choose from in the existing 13.2 gcc repo with the following URI
I don’t know enough about GCC to go messing around in the spec file.
I have downloaded the Source RPM, unpacked it and changed the build_go to false. I first had the exact same problem with packaging libgo RPM. However there is no build_mpxwrappers
I could try the GCC 5.3.1 from OpenSUSE Leap 42.1, but I was afraid it perhaps could cause some conflicts building our software with it on OpenSUSE 13.2
However not sure how to get them, as there are many packages for gcc http://download.opensuse.org/distribution/leap/42.1/repo/oss/ http://download.opensuse.org/update/leap/42.1/oss
If there was an utility to retrieve all gcc 5.3.1 packages installed on a system, or from the repositories.
I need the gcc 5.3.1 package. OpenSUSE 13.2 comes already with gcc 4.8 as default.