poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Allow accessing the installed files in a Cygwin-based mingw environment


From: Bruno Haible
Subject: Allow accessing the installed files in a Cygwin-based mingw environment
Date: Sun, 19 Feb 2023 00:37:49 +0100

Hi,

I see that some people start adding support for building poke for
native Windows.

One piece (a small one, but nevertheless) in this support is to make
sure that after "make install", poke will find its initial *.pk files
to load. This is non-trivial because "make install" may have installed
these files in
  /usr/local/mingw/share/poke/
but at runtime they will be looked up in
  C:\cygwin64\usr\local\mingw\share\poke\

You see the problem? PKGDATADIR gets defined to "/usr/local/mingw/share/poke"
but that won't work at runtime.

The solution is to use the 'configmake' module from Gnulib, that provides
these variables (PKGDATADIR, LOCALEDIR, and others) correctly, since today
<https://lists.gnu.org/archive/html/bug-gnulib/2023-02/msg00143.html>.
Find attached the proposed patch. Together with a gnulib submodule upgrade
it will have the desired effect.

The patch will also compile fine without a gnulib submodule upgrade; it's just
that it will have no effect until the gnulib submodule upgrade.

Regarding LOCALEDIR, the next gettext version will improve the situation;
therefore it's too early now to propose a patch that handles LOCALEDIR in
the same way.

Attachment: 0001-Allow-accessing-the-installed-files-in-a-Cygwin-base.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]