Subject: Some problems with gettext after libintl is now in the basesystem
To: None <tech-pkg@netbsd.org>
From: Bernd Ernesti <netbsd@arresum.inka.de>
List: tech-pkg
Date: 11/01/2000 23:36:08
Hi,

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

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; \
fi
mkdir /usr/pkg/lib/locale
mkdir /usr/pkg/lib/locale/de
mkdir /usr/pkg/lib/locale/de/LC_MESSAGES
installing de.mo as /usr/pkg/lib/locale/de/LC_MESSAGES/id-utils.mo
mkdir /usr/pkg/lib/locale/fr
mkdir /usr/pkg/lib/locale/fr/LC_MESSAGES
installing fr.mo as /usr/pkg/lib/locale/fr/LC_MESSAGES/id-utils.mo
[..]
ls: /usr/pkg/share/locale/de/LC_MESSAGES/id-utils.mo: No such file or directory
ls: /usr/pkg/share/locale/fr/LC_MESSAGES/id-utils.mo: No such file or directory
===> Registering installation for id-utils-3.2
pkg_create: can't stat `/usr/pkg/share/locale/de/LC_MESSAGES/id-utils.mo'
pkg_create: can't stat `/usr/pkg/share/locale/fr/LC_MESSAGES/id-utils.mo'

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


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) ?

Bernd