Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
[opensuse-packaging] How to configure osc subproject to use GCC v5 from devel:gcc by default, for all packages?
I want to use gcc-5 from

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" />

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
(2) specify BuildRequires: gcc-5 ... ?
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups