Skip to content

Commit

Permalink
media-video/vlc: fix compiler type check
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
  • Loading branch information
Amynka committed Jul 24, 2016
1 parent 5243ed1 commit d8bdcbc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions media-video/vlc/vlc-2.2.1-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ REQUIRED_USE="
S="${WORKDIR}/${MY_P}"

pkg_setup() {
if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then
if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == "*gcc*" ]] ; then
if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then
die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
fi
Expand All @@ -236,7 +236,7 @@ src_prepare() {
# config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
#
# https://gcc.gnu.org/c99status.html
if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
if [[ "$(tc-getCC)" == "*gcc*" ]] ; then
sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
fi

Expand Down
4 changes: 2 additions & 2 deletions media-video/vlc/vlc-2.2.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ PATCHES=(
S="${WORKDIR}/${MY_P}"

pkg_setup() {
if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then
if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == "*gcc*" ]] ; then
if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then
die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
fi
Expand All @@ -262,7 +262,7 @@ src_prepare() {
# config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
#
# https://gcc.gnu.org/c99status.html
if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
if [[ "$(tc-getCC)" == "*gcc*" ]] ; then
sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
fi

Expand Down
4 changes: 2 additions & 2 deletions media-video/vlc/vlc-2.2.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ REQUIRED_USE="
S="${WORKDIR}/${MY_P}"

pkg_setup() {
if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then
if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == "*gcc*" ]] ; then
if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then
die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
fi
Expand All @@ -232,7 +232,7 @@ src_prepare() {
# config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
#
# https://gcc.gnu.org/c99status.html
if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
if [[ "$(tc-getCC)" == "*gcc*" ]] ; then
sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
fi

Expand Down
4 changes: 2 additions & 2 deletions media-video/vlc/vlc-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ REQUIRED_USE="
S="${WORKDIR}/${MY_P}"

pkg_setup() {
if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == *"gcc"* ]] ; then
if [[ "${MERGE_TYPE}" != "binary" && "$(tc-getCC)" == "*gcc*" ]] ; then
if [[ $(gcc-major-version) < 4 || ( $(gcc-major-version) == 4 && $(gcc-minor-version) < 5 ) ]] ; then
die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
fi
Expand All @@ -235,7 +235,7 @@ src_prepare() {
# config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
#
# https://gcc.gnu.org/c99status.html
if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
if [[ "$(tc-getCC)" == "*gcc*" ]] ; then
sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
fi

Expand Down

0 comments on commit d8bdcbc

Please sign in to comment.