Date: Thu, 28 Jul 2011 11:53:13 +0400 From: Test Rat <ttsestt@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/159250: [patch] multimedia/mplayer: clang detection fails Message-ID: <864o26kfiu.fsf@gmail.com> Resent-Message-ID: <201107280800.p6S80Pac065637@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159250 >Category: ports >Synopsis: [patch] multimedia/mplayer: clang detection fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 28 08:00:25 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Test Rat >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: $ export PATH=~/.bin:$PATH $ for cc in CC cc c++ gcc g++; do ln -s /usr/bin/false ~/.bin/${cc}; done >Description: In clang case configure script expects the first word to contain compiler name. However, unlike lang/clang the one from base embeds "FreeBSD" word before "clang". >How-To-Repeat: $ clang -v FreeBSD clang version 3.0 (trunk 135360) 20110717 Target: x86_64-unknown-freebsd9.0 Thread model: posix $ LOCALBASE/bin/clang -v clang version 2.9 (tags/RELEASE_29/final) Target: x86_64-portbld-freebsd9.0 Thread model: posix >Fix: --- a.diff begins here --- Index: multimedia/mplayer/files/patch-configure =================================================================== RCS file: /a/.cvsup/ports/multimedia/mplayer/files/patch-configure,v retrieving revision 1.6 diff -u -p -r1.6 patch-configure --- multimedia/mplayer/files/patch-configure 1 Apr 2011 11:09:36 -0000 1.6 +++ multimedia/mplayer/files/patch-configure 28 Jul 2011 07:43:01 -0000 @@ -28,6 +28,15 @@ fi if netbsd || dragonfly ; then +@@ -1661,7 +1660,7 @@ else + echores "$cc_version" + break + fi +- cc_name_tmp=$($_cc -v 2>&1 | head -n 1 | cut -d ' ' -f 1) ++ cc_name_tmp=$($_cc -v 2>&1 | awk "NR == 1 { if(\$1 == \"$system_name\") print \$2; else print \$1 }") + if test "$cc_name_tmp" = "clang"; then + echocheck "$_cc version" + cc_vendor=clang @@ -3577,22 +3576,10 @@ if linux ; then THREAD_CFLAGS=-D_REENTRANT --- a.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864o26kfiu.fsf>