bugGNU gettext - Bugs: bug #27464, Documentation defines localedir...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27464: Documentation defines localedir incorrectly

Submitter:  Sylvain Beucler <Beuc>
Submitted:  Wed 16 Sep 2009 08:37:07 PM UTC
   
 
Category:  Doc Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Sat 19 Sep 2009 03:01:45 PM UTC, comment #2: 

Thanks for the report. The cited text applies only to
autoconf versions older than 2.60. For 2.60 and newer,
you don't need to define localedir yourself at all if you
are using automake (because autoconf already does it all),
and if you are not using automake, the following definitions
are needed:

datadir = @datadir@
datarootdir= @datarootdir@
localedir = @localedir@
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

Bruno Haible <haible>
Group administrator
Wed 16 Sep 2009 08:45:10 PM UTC, comment #1: 

Actually it seems that 'localedir' is now defined in autoconf and automake, so maybe the example could just be simplified to:
 DEFS = -DLOCALEDIR=\"@localedir@\" @DEFS@

Sylvain Beucler <Beuc>
Wed 16 Sep 2009 08:37:07 PM UTC, original submission:  

In the gettext manual, section src/Makefile, you can see:

          datadir = @datadir@
          localedir = $(datadir)/locale
          DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

while localedir is expanded differently in po/Makefile:

 localedir = ${datarootdir}/locale

This caused a problem in GNU FreeDink's Debian package, which configured like this:

 ./configure --prefix=/usr --bindir=/usr/games --datadir=/usr/share/games

Thus the program searched for the .mo in /usr/share/games/locale/ instead of /usr/share/locale/, where they were installed.

Attached is a patch :)

Sylvain Beucler <Beuc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #18724:  localedir.diff added by Beuc (433B - text/x-c)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by Beuc (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2016-11-27 haible CategoryNone Doc
    2009-09-19 haible StatusNone Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed
    2009-09-16 Beuc Attached File- Added localedir.diff, #18724

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code