@@ -, +, @@ --- bin/ebuild-helpers/c++ | 1 + bin/ebuild-helpers/cc | 1 + bin/ebuild-helpers/g++ | 1 + bin/ebuild-helpers/gcc | 25 +++++++++++++++++++++++++ 4 files changed, 28 insertions(+) create mode 120000 bin/ebuild-helpers/c++ create mode 120000 bin/ebuild-helpers/cc create mode 120000 bin/ebuild-helpers/g++ create mode 100755 bin/ebuild-helpers/gcc --- a/bin/ebuild-helpers/c++ +++ a/bin/ebuild-helpers/c++ @@ -0,0 +1, @@ +gcc --- a/bin/ebuild-helpers/cc +++ a/bin/ebuild-helpers/cc @@ -0,0 +1, @@ +gcc --- a/bin/ebuild-helpers/g++ +++ a/bin/ebuild-helpers/g++ @@ -0,0 +1, @@ +gcc --- a/bin/ebuild-helpers/gcc +++ a/bin/ebuild-helpers/gcc @@ -0,0 +1,25 @@ +#!/bin/bash +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +self=${0##*/} +lock=${T}/.portage-warned-${self}-use + +if [[ ! -e ${lock} ]]; then + exec 10> "${lock}" + + if flock -n -x 10; then + case "${self}" in + cc|gcc) var=CC;; + c++|g++) var=CXX;; + *) var='(unknown)';; + esac + + eqawarn "QA warning: package does not respect ${var} variable" + eqawarn " (detected direct call to ${self})" + fi +fi + +nextbin=$(which -a "${self}" | head -n 2 | tail -n 1) + +exec "${nextbin}" "${@}" --