Subject: Some problems with gettext after libintl is now in the basesystem
To: None <>
From: Bernd Ernesti <>
List: tech-pkg
Date: 11/01/2000 23:36:08

this is just a heads up that we have some problems after libintl went into

Some packages have now a problem with an inconsistent PLIST.

e.g id-utils, xtraceroute, mutt and maybe more:

The problem is durin the installation of *.mo files.
The Makefiles installs it into a different directory, depending on the
file name extension.

[id-utils example]

gmake[1]: Entering directory `/home/source/pkgsrc/devel/id-utils/work.i386/id-utils-3.2/po'
if test -r ./mkinstalldirs; then \
  ./mkinstalldirs /usr/pkg/lib; \
else \
  ../mkinstalldirs /usr/pkg/lib; \
mkdir /usr/pkg/lib/locale
mkdir /usr/pkg/lib/locale/de
mkdir /usr/pkg/lib/locale/de/LC_MESSAGES
installing as /usr/pkg/lib/locale/de/LC_MESSAGES/
mkdir /usr/pkg/lib/locale/fr
mkdir /usr/pkg/lib/locale/fr/LC_MESSAGES
installing as /usr/pkg/lib/locale/fr/LC_MESSAGES/
ls: /usr/pkg/share/locale/de/LC_MESSAGES/ No such file or directory
ls: /usr/pkg/share/locale/fr/LC_MESSAGES/ No such file or directory
===> Registering installation for id-utils-3.2
pkg_create: can't stat `/usr/pkg/share/locale/de/LC_MESSAGES/'
pkg_create: can't stat `/usr/pkg/share/locale/fr/LC_MESSAGES/'

So, the file went into /usr/pkg/lib/locale/de/LC_MESSAGES/ instead of

After looking in po/Makefile I found this:

datadir = $(prefix)/lib
localedir = $(datadir)/locale
gnulocaledir = $(prefix)/share/locale
        for cat in $$catalogs; do \
          case "$$cat" in \
            *.gmo) destdir=$(gnulocaledir);; \
            *)     destdir=$(localedir);; \
          esac; \

What should we do here?

Remove the check for *.gmo and use always destdir=$(gnulocaledir) ?