ports/171294: [PATCH] multimedia/mlt: Fix hardcoded gcc in configure.
Christian Mangin
christian.mangin at gmail.com
Mon Sep 3 21:00:23 UTC 2012
>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:
More information about the freebsd-ports-bugs
mailing list