From nobody@FreeBSD.org  Wed Mar 21 15:47:17 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id BCA9616A46F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Mar 2007 15:47:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id AD6D313C4BA
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Mar 2007 15:47:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2LFlH09066380
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Mar 2007 15:47:17 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l2LFgFcD065120;
	Wed, 21 Mar 2007 15:42:15 GMT
	(envelope-from nobody)
Message-Id: <200703211542.l2LFgFcD065120@www.freebsd.org>
Date: Wed, 21 Mar 2007 15:42:15 GMT
From: Steinel Andreas<lnxbil@saarlinux.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Patch for pioneers with right locale-dir to find other languages than english
X-Send-Pr-Version: www-3.0

>Number:         110624
>Category:       ports
>Synopsis:       Patch for pioneers with right locale-dir to find other languages than english
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    stefan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 21 15:50:10 GMT 2007
>Closed-Date:    Tue Apr 03 08:35:06 GMT 2007
>Last-Modified:  Tue Apr  3 08:40:05 GMT 2007
>Originator:     Steinel Andreas
>Release:        6.2
>Organization:
>Environment:
FreeBSD mini 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007  
root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Pioneers is not able to find its locales with compiled localesdir:

$ strings /usr/local/bin/pioneers | grep locale
  setlocale
  /usr/local/share/gnome/locale

but the directory doesn't exists:

$ ls /usr/local/share/gnome/locale
  ls: /usr/local/share/gnome/locale: No such file or directory

it should be /usr/local/share/locale:

$ pkg_info -L pioneers-0.10.2 | grep locale
  /usr/local/share/locale/de/LC_MESSAGES/pioneers.mo
  /usr/local/share/locale/es/LC_MESSAGES/pioneers.mo
  /usr/local/share/locale/fr/LC_MESSAGES/pioneers.mo
  /usr/local/share/locale/hu/LC_MESSAGES/pioneers.mo
  /usr/local/share/locale/it/LC_MESSAGES/pioneers.mo
  /usr/local/share/locale/nl/LC_MESSAGES/pioneers.mo
  /usr/local/share/locale/sv/LC_MESSAGES/pioneers.mo

>How-To-Repeat:
build pioneers and have a look with 'strings','ls','pkg_info'
>Fix:
Add a new patch in the files-directory:

patch-configure: (or see attachement)

--- configure   Wed Mar 21 16:17:28 2007
+++ configure.new       Wed Mar 21 16:19:20 2007
@@ -24450,7 +24450,7 @@
        pioneers_datadir=$datadir
        pioneers_themedir=$datadir/games/pioneers/themes
        pioneers_themedir_embed=$pioneers_themedir
-       pioneers_localedir=$datadir/locale
+       pioneers_localedir=/usr/local/share/locale
 fi


Patch attached with submission follows:

--- configure	Wed Mar 21 16:17:28 2007
+++ configure.new	Wed Mar 21 16:19:20 2007
@@ -24450,7 +24450,7 @@
 	pioneers_datadir=$datadir
 	pioneers_themedir=$datadir/games/pioneers/themes
 	pioneers_themedir_embed=$pioneers_themedir
-	pioneers_localedir=$datadir/locale
+	pioneers_localedir=/usr/local/share/locale
 fi
 
 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->stefan 
Responsible-Changed-By: stefan 
Responsible-Changed-When: Wed Mar 21 18:16:17 UTC 2007 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110624 

From: Robert Gogolok <gogo@cs.uni-sb.de>
To: bug-followup@freebsd.org
Cc: lnxbil@saarlinux.org
Subject: Re: ports/110624: Patch for pioneers with right locale-dir to find other languages than english
Date: Sat, 24 Mar 2007 11:02:02 +0100

 The patch doesn't respect a different PREFIX. The prefix is hardcoded 
 to '/usr/local/'.
 
 Greetings,
 Robert
State-Changed-From-To: open->closed 
State-Changed-By: stefan 
State-Changed-When: Tue Apr 3 08:32:10 UTC 2007 
State-Changed-Why:  
Committed (with a minor correction to respect PREFIX). Thanks for reporting 
this, I wasn't aware that localization didn't work. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110624 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/110624: commit references a PR
Date: Tue,  3 Apr 2007 08:32:12 +0000 (UTC)

 stefan      2007-04-03 08:32:06 UTC
 
   FreeBSD ports repository
 
   Modified files:
     games/pioneers       Makefile 
   Added files:
     games/pioneers/files patch-configure 
   Log:
   Fix path of locale directory so localization is possible.
   
   PR:             110624
   Submitted by:   Steinel Andreas<lnxbil@saarlinux.org>
   
   Revision  Changes    Path
   1.43      +1 -0      ports/games/pioneers/Makefile
   1.1       +11 -0     ports/games/pioneers/files/patch-configure (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
