Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2007 15:42:15 GMT
From:      Steinel Andreas<lnxbil@saarlinux.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/110624: Patch for pioneers with right locale-dir to find other languages than english
Message-ID:  <200703211542.l2LFgFcD065120@www.freebsd.org>
Resent-Message-ID: <200703211550.l2LFoAtw026583@freefall.freebsd.org>

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

>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:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 21 15:50:10 GMT 2007
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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