Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Apr 2007 09:36:47 +0200 (CEST)
From:      Adrian Steinmann <ast@webgroup.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        multimedia@freebsd.org
Subject:   multimedia/ffmpeg-devel configure script broken [PATCH included]
Message-ID:  <200704140736.l3E7alv9045985@t40.marabu.ch>
Resent-Message-ID: <20070414073839.GA94005@webgroup.ch>

next in thread | raw e-mail | index | archive | help

>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@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704140736.l3E7alv9045985>