multimedia/ffmpeg-devel configure script broken [PATCH included]
Adrian Steinmann
ast at webgroup.ch
Sat Apr 14 08:16:05 UTC 2007
>Submitter-Id: current-users
>Originator: Adrian Steinmann
>Organization: Webgroup Consulting AG
>Confidential: no
>Synopsis: multimedia/ffmpeg-devel configure script broken [PATCH included]
>Severity: serious
>Priority: medium
>Category: ports
>Class: maintainer-update
>Release: FreeBSD 6.2-STABLE i386
>Environment:
System: FreeBSD t40.marabu.ch 6.2-STABLE FreeBSD 6.2-STABLE #5: Sun Mar 11 08:57:25 CET 2007 root at t40.marabu.ch:/usr/obj/usr/src/sys/T40 i386
Description:
CONFIG_ variables contain '[' because tr '[a-z]' '[A-Z]' causes that
How-To-Repeat:
try to build stock ffmpeg-devel
Fix:
Replace erroneous tr with a better one:
Index: multimedia/ffmpeg-devel/files/patch-configure
===================================================================
RCS file: /usr/cvs/ports/multimedia/ffmpeg-devel/files/patch-configure,v
retrieving revision 1.10
diff -u -r1.10 patch-configure
--- multimedia/ffmpeg-devel/files/patch-configure 2 Apr 2007 14:06:07 -0000 1.10
+++ multimedia/ffmpeg-devel/files/patch-configure 14 Apr 2007 07:21:09 -0000
@@ -1,5 +1,22 @@
--- configure.orig Sat Mar 31 00:25:05 2007
+++ configure Sun Apr 1 18:59:07 2007
+@@ -207,13 +207,13 @@
+ exit 1
+ }
+
+-# "tr '[a-z]' '[A-Z]'" is a workaround for Solaris tr not grokking "tr a-z A-Z"
++# workarounds for Solaris tr not grokking "tr a-z A-Z"
+ toupper(){
+- echo "$@" | tr '[a-z]' '[A-Z]'
++ echo "$@" | tr '[:lower:]' '[:upper:]'
+ }
+
+ tolower(){
+- echo "$@" | tr '[A-Z]' '[a-z]'
++ echo "$@" | tr '[:upper:]' '[:lower:]'
+ }
+
+ set_all(){
@@ -1966,15 +1966,15 @@
if enabled shared; then
echo "BUILD_SHARED=yes" >> config.mak
More information about the freebsd-multimedia
mailing list