Skip site navigation (1)Skip section navigation (2)
Date:      27 Nov 2009 15:20:34 -0000
From:      Thomas-Martin Seck <tmseck@netcologne.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/140942: [Maintainer] sysutils/uschedule: correct tr(1) usage
Message-ID:  <20091127152034.19083.qmail@wcfields.tmseck.homedns.org>
Resent-Message-ID: <200911271530.nARFU1bT004518@freefall.freebsd.org>

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

>Number:         140942
>Category:       ports
>Synopsis:       [Maintainer] sysutils/uschedule: correct tr(1) usage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 27 15:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Thomas-Martin Seck
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
a private site in Germany
>Environment:
FreeBSD ports collection as of November 27, 2009.

	
>Description:
Correct a tr(1) call that intends to translate lower case to upper case
letters.

Added file:
files/patch-src-typesize.sh

	
>How-To-Repeat:
This is the same issue as with mail/usendmail (see ports/140941). The naive
tr(1) call probably works by accident in most locales but definitely not (any
longer) in the de_DE.ISO8859-1 locale on 8.0/amd64 where it produces garbage. 
	
>Fix:
Apply this patch:

Index: Makefile
===================================================================
--- Makefile	(.../sysutils/uschedule)	(Revision 1686)
+++ Makefile	(.../local/uschedule)	(Revision 1686)
@@ -7,6 +7,7 @@
 
 PORTNAME=	uschedule
 PORTVERSION=	0.7.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.ohse.de/uwe/uschedule/
 
Index: files/patch-src-typesize.sh
===================================================================
--- files/patch-src-typesize.sh	(.../sysutils/uschedule)	(Revision 0)
+++ files/patch-src-typesize.sh	(.../local/uschedule)	(Revision 1686)
@@ -0,0 +1,11 @@
+--- src/typesize.sh.orig	2004-08-16 08:21:12.000000000 +0200
++++ src/typesize.sh	2009-11-27 15:50:42.000000000 +0100
+@@ -21,7 +21,7 @@
+ 	:
+       else
+ 	x=$?
+-	p=`echo $i | sed 's/ /_/g' | tr "[a-z]]" "[A-Z]"`
++	p=`echo $i | sed 's/ /_/g' | tr "[:lower:]" "[:upper:]"`
+ 	echo "#define SIZEOF_$p $x /* systype-info */"
+       fi
+     fi
	


>Release-Note:
>Audit-Trail:
>Unformatted:



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