Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
Re: [opensuse-packaging] How to configure osc subproject to use GCC v5 from devel:gcc by default, for all packages?
Per advice, moving from opensuse-packaging to opensuse-buildservice, as it's an
OBS/OSC-specific question


On Sat, Apr 25, 2015, at 07:13 PM, PGNd wrote:
I want to use gcc-5 from

http://download.opensuse.org/repositories/devel:/gcc/openSUSE_13.2

by default in all builds within an osc subproject.

To use gcc-5 preferentially in local builds, I mod the local ENV with

export CC="/usr/bin/gcc-5"
export CXX="/usr/bin/g++-5"
ln -sf /usr/bin/gcc-5 /usr/bin/gcc
ln -sf /usr/bin/g++-5 /usr/bin/g++
ln -sf /usr/bin/gcc-5 /usr/bin/cc
ln -sf /usr/bin/g++-5 /usr/bin/c++
ln -sf /usr/bin/cpp-5 /usr/bin/cpp

For OBS builds, I've added the source repo to the subproject's 'meta prj'

<repository name="openSUSE_13.2">
<path project="Kernel:stable" repository="standard"/>
+ <path project="devel:gcc" repository="openSUSE_13.2"/>
<path project="openSUSE:13.2" repository="standard" />
<arch>x86_64</arch>
</repository>

For project-wide setting of gcc == v5.0 for OBS builds, is adding

%define gcc_version 50

to my project's 'meta prjconf' sufficient?

Do I also need to

(1) modify the ENV (CC, CXX, ln ...) prior to %configure/%make
&/or
(2) specify BuildRequires: gcc-5 ... ?
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
References