From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 5 20:10:07 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FDFB106566B for ; Mon, 5 Sep 2011 20:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 036438FC15 for ; Mon, 5 Sep 2011 20:10:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p85KA1Wl067569 for ; Mon, 5 Sep 2011 20:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p85KA10P067568; Mon, 5 Sep 2011 20:10:01 GMT (envelope-from gnats) Resent-Date: Mon, 5 Sep 2011 20:10:01 GMT Resent-Message-Id: <201109052010.p85KA10P067568@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, h h Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F4CB106564A for ; Mon, 5 Sep 2011 20:08:52 +0000 (UTC) (envelope-from aakuusta@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 2B0A68FC16 for ; Mon, 5 Sep 2011 20:08:51 +0000 (UTC) Received: by pzk33 with SMTP id 33so15195478pzk.18 for ; Mon, 05 Sep 2011 13:08:51 -0700 (PDT) Received: by 10.68.34.6 with SMTP id v6mr8494697pbi.33.1315253331661; Mon, 05 Sep 2011 13:08:51 -0700 (PDT) Received: from nil (tor-exit-readme-1wh1.kromyon.net. [209.236.66.108]) by mx.google.com with ESMTPS id f6sm24357867pbp.2.2011.09.05.13.08.46 (version=SSLv3 cipher=OTHER); Mon, 05 Sep 2011 13:08:50 -0700 (PDT) Message-Id: <86sjoada62.fsf@gmail.com> Date: Tue, 06 Sep 2011 00:08:37 +0400 From: h h To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/160492: [patch] lang/ocaml: respect CC X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 20:10:07 -0000 >Number: 160492 >Category: ports >Synopsis: [patch] lang/ocaml: 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: Mon Sep 05 20:10:01 UTC 2011 >Closed-Date: >Last-Modified: >Originator: h h >Release: FreeBSD 9.0-BETA2 r225402M 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: The port tries to use `gcc' unless `-cc' option is specified. When `gcc' is not in PATH it unconditionally falls back to `cc', without even testing whether the latter command is also in PATH. >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/ocaml-3.12.0_1.log >Fix: --- a.diff begins here --- Index: lang/ocaml/Makefile =================================================================== RCS file: /a/.csup/ports/lang/ocaml/Makefile,v retrieving revision 1.71 diff -u -p -r1.71 Makefile --- lang/ocaml/Makefile 4 Apr 2011 02:29:25 -0000 1.71 +++ lang/ocaml/Makefile 5 Sep 2011 19:49:17 -0000 @@ -27,7 +27,7 @@ ALL_TARGET= world.opt STRIP= MAKE_JOBS_UNSAFE= yes -CONFIGURE_ARGS= -prefix ${PREFIX} +CONFIGURE_ARGS= -prefix ${PREFIX} -cc ${CC} OPTIONS= X11 "Build with X11 support" on \ TK "Build LablTk library (requires X11 support)" on \ THREADS "Build with Posix threads support" on \ --- a.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: