Date: Mon, 03 Sep 2012 13:54:47 -0700 (PDT) From: Christian Mangin <christian.mangin@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/171294: [PATCH] multimedia/mlt: Fix hardcoded gcc in configure. Message-ID: <50451917.8a5b320a.5cf1.50ce@mx.google.com> Resent-Message-ID: <201209032100.q83L0Msn002982@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 171294 >Category: ports >Synopsis: [PATCH] multimedia/mlt: Fix hardcoded gcc in configure. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 03 21:00:22 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Christian Mangin >Release: FreeBSD 9.1-RC1 amd64 >Organization: >Environment: System: FreeBSD 9.1-RC1 amd64 >Description: gcc is hardcoded in this port's configure script. If gcc is not present in the base system, it will not find sys/param.h resulting in a build failure. (Observed in 9.1-RC1) >How-To-Repeat: Build this port with a base system compiled with WITHOUT_GCC=yes >Fix: Patch attached. --- mlt.diff begins here --- diff -ruN mlt.orig/files/patch-src__framework__configure mlt/files/patch-src__framework__configure --- mlt.orig/files/patch-src__framework__configure 1969-12-31 19:00:00.000000000 -0500 +++ mlt/files/patch-src__framework__configure 2012-09-03 12:01:27.865757930 -0400 @@ -0,0 +1,11 @@ +--- src/framework/configure.orig 2012-09-03 11:59:50.351757099 -0400 ++++ src/framework/configure 2012-09-03 12:00:10.426758081 -0400 +@@ -4,7 +4,7 @@ + echo > config.mak + if [ "$(uname -s)" = "FreeBSD" ] + then +- printf "#include <sys/param.h>\n int main(){ return 0;}" | gcc -c -x c - >/dev/null 2>&1 ++ printf "#include <sys/param.h>\n int main(){ return 0;}" | ${CC} -c -x c - >/dev/null 2>&1 + [ "$?" -eq 0 ] && echo "HAVE_SYS_PARAM_H=1" >> config.mak + fi + exit 0 --- mlt.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?50451917.8a5b320a.5cf1.50ce>