Bug 110624 - Patch for pioneers with right locale-dir to find other languages than english
Summary: Patch for pioneers with right locale-dir to find other languages than english
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stefan Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-21 15:50 UTC by Andreas Steinel
Modified: 2007-04-03 09:40 UTC (History)
0 users

See Also:


Attachments
file.diff (315 bytes, patch)
2007-03-21 15:50 UTC, Andreas Steinel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Steinel 2007-03-21 15:50:10 UTC
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

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:
How-To-Repeat: build pioneers and have a look with 'strings','ls','pkg_info'
Comment 1 Stefan Walter freebsd_committer freebsd_triage 2007-03-21 18:16:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 2 Robert Gogolok 2007-03-24 10:02:02 UTC
The patch doesn't respect a different PREFIX. The prefix is hardcoded 
to '/usr/local/'.

Greetings,
Robert
Comment 3 Stefan Walter freebsd_committer freebsd_triage 2007-04-03 09:32:10 UTC
State Changed
From-To: open->closed

Committed (with a minor correction to respect PREFIX). Thanks for reporting 
this, I wasn't aware that localization didn't work.
Comment 4 dfilter service freebsd_committer freebsd_triage 2007-04-03 09:32:12 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"