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:   ports/111560: multimedia/ffmpeg-devel configure script broken [PATCH included]
Message-ID:  <200704140736.l3E7alv9045985@t40.marabu.ch>
Resent-Message-ID: <200704140820.l3E8KAKQ075865@freefall.freebsd.org>

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

>Number:         111560
>Category:       ports
>Synopsis:       multimedia/ffmpeg-devel configure script broken [PATCH included]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 14 08:20:09 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Steinmann
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
Webgroup Consulting AG
>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

>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



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