Open mlt opened 1 month ago
maybe try MSYS2_ARG_CONV_EXCL="*" ?
It is odd… If I build the package on my machine, everything works as expected without remapping. msmtp uses LOCALEDIR as supplied by autotools and I see correct value starting with /ucrt64
in Makefile and config.log.
config.log (I had to add CFLAGS=-Wno-incompatible-pointer-types
)
$ ../msmtp-1.8.23/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --prefix=/ucrt64 CFLAGS=-Wno-incompatible-pointer-types
src/Makefile (only relevant lines)
prefix = /ucrt64
datarootdir = ${prefix}/share
localedir = ${datarootdir}/locale
DEFS = -DHAVE_CONFIG_H -DSYSCONFDIR=\"$(sysconfdir)\" \
-DLOCALEDIR=\"$(localedir)\" -DBINDIR=\"$(bindir)\"
There is no logic in the code. https://github.com/marlam/msmtp/blob/master/src/msmtp.c#L2237 and https://github.com/marlam/msmtp/blob/master/src/msmtp.c#L3817
I almost feel like the following would fix it. But I'm not sure what gets there on a build farm… I mean if it is D:
.
diff --git a/mingw-w64-msmtp/PKGBUILD b/mingw-w64-msmtp/PKGBUILD
index 98916b3f3..aae2e3636 100644
--- a/mingw-w64-msmtp/PKGBUILD
+++ b/mingw-w64-msmtp/PKGBUILD
@@ -42,6 +42,7 @@ build() {
--host=${MINGW_CHOST} \
--prefix=${MINGW_PREFIX}
+ sed -i 's/\/d\/a//' src/Makefile
sed -i 's/-R\/mingw..\/lib//' src/Makefile
touch ${srcdir}/${_realname}-${pkgver}/src/*.c
make
Description / Steps to reproduce the issue
As it is, LOCALEDIR points to
D:/a/MSYS64
. That part should be stripped. LOCALEDIR should be just/ucrt64/share/locale
by using./configure … CFLAGS=-DLOCALEDIR=/ucrt64/share/locale
. I'm actually not sure where it is coming from... default./configure
yieldslocaledir_c='"/ucrt64/share/locale"'
in myconfig.log
.Expected behavior
One can remap things to get it work
Actual behavior
msmtp can't find its translations.
Verification
Windows Version
MINGW64_NT-10.0-22000
MINGW environments affected
Are you willing to submit a PR?
No response