From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 11 11:49:48 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C869C63F for ; Thu, 11 Oct 2012 11:49:48 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 9FAEC8FC27 for ; Thu, 11 Oct 2012 11:49:48 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9BBnm0c062960 for ; Thu, 11 Oct 2012 11:49:48 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9BBnm0k062959; Thu, 11 Oct 2012 11:49:48 GMT (envelope-from gnats) Resent-Date: Thu, 11 Oct 2012 11:49:48 GMT Resent-Message-Id: <201210111149.q9BBnm0k062959@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EDE156C6 for ; Thu, 11 Oct 2012 00:38:14 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 8BBAF8FC12 for ; Thu, 11 Oct 2012 00:38:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1TM6mz-0001yy-00 for FreeBSD-gnats-submit@freebsd.org; Thu, 11 Oct 2012 04:38:13 +0400 Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1TM6l9-0004Ei-KB for FreeBSD-gnats-submit@freebsd.org; Thu, 11 Oct 2012 00:36:21 +0000 Message-Id: <1TM6l9-0004Ei-KB@internal.tormail.org> Date: Wed, 10 Oct 2012 23:37:04 -0100 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/172609: [patch] audio/oss: respect CC X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2012 11:49:48 -0000 >Number: 172609 >Category: ports >Synopsis: [patch] audio/oss: respect CC >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 Oct 11 11:49:48 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: # slightly different from clang -exp runs $ export PATH=~/.bin:$PATH $ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done >Description: Don't ignore CC set via environment, make.conf or bsd.gcc.mk (USE_GCC). >How-To-Repeat: $ make -V CC clang $ make ===> Building for oss-4.2.b2007 for n in lib cmd kernel os_cmd kernel/OS/FreeBSD;do (echo $n && cd $n && make ARCH=amd64) || eval 'exit 1'; done lib for n in libossmix;do (echo $n && cd $n && make ARCH=amd64) || eval 'exit 1'; done libossmix cc -c -O2 -pipe -O -shared -fPIC -DOSS_LITTLE_ENDIAN -I../../include -I../../kernel/framework/include -I../../kernel/OS/FreeBSD -I../../kernel/nonfree/include -I../.. libossmix_cache.c -o ./libossmix_cache.o *** [./libossmix_cache.o] Error code 1 Stop in /usr/ports/audio/oss/work/build/lib/libossmix. *** [subdirs] Error code 1 >Fix: --- cc.diff begins here --- Index: audio/oss/files/patch-setup-srcconf.c =================================================================== --- audio/oss/files/patch-setup-srcconf.c (revision 305693) +++ audio/oss/files/patch-setup-srcconf.c (working copy) @@ -9,3 +9,12 @@ } if (strcmp (line, "project") == 0) +@@ -913,7 +913,7 @@ + if (config_phpmake) + fprintf (f, "\n"); + +- fprintf (f, "CC=%s\n", conf.ccomp); ++ fprintf (f, "CC=%s\n", targetcc); + // fprintf (f, "LD=ld\n"); + fprintf (f, "HOSTCC=%s\n", hostcc); + fprintf (f, "CPLUSPLUS=%s\n", conf.cplusplus); --- cc.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: