On Mon, 15 Dec 2014, Dmitriy Perlow wrote:
Christian Boltz
Mon, 15 Dec 2014 23:10:19 +0300: Hello,
Am Sonntag, 14. Dezember 2014 schrieb Dmitriy Perlow:
How gcc49 can be used for oS 13.2? If it is required to build unresolvable state will appear with message "conflict for provider of libgcc_s1 >= 4.9.0+r211729-2.1.7 needed by gcc49, (provider libgcc_s1-gcc49 is conflicted by installed libgcc_s1)".
Try #!BuildIgnore: libgcc_s1
I seem to remember that BuildRequires: -libgcc_s1 is a newer (and recommended) version of that, but can't find a note about it in the wiki. Try it if #!BuildIgnore doesn't work ;-)
Another way could be to change the prjconf using "substitute", see https://en.opensuse.org/openSUSE:Build_Service_prjconf
Regards,
Christian Boltz
"BuildConflicts: libgcc_s1" causes failed state with "libgcc_s1 isn't installed" message.
The unfortunate reason for all this is that the OBS code doesn't
allow same package names from multiple sources (or rather its
behavior is random instead of deterministic). Thus we end up
with multiple names for libgcc_s1.
And of course another reason is that libgcc_s1 is in the
'Preinstall' section of the project config which doesn't seem
to participate in dependency computation. So if you add
BuildRequires: gcc49 then even the fact that libgcc_s1-gcc49
does satisfy a 'libgcc_s1' dependency doesn't help, because
Preinstall is interpreted as a list of packages rather than
an additional source of dependencies.
Not sure if any of the above can be improved to make it easier
to support a BuildRequires of a non-system gcc. Michael?
I've used project-config hackery to get around this usually
(but I've only had the need to switch compilers project-wide,
not per package).
Richard.
--
Richard Biener