You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a work around that replaces the private Alien::Build::Util::_destdir_prefix function to make this work:
use Path::Tiny;
use Alien::Build::Util;
# Work around for Meson's `destdir_join` which drops the first part of# the path when joining (this is the drive letter).# See <https://github.com/mesonbuild/meson/blob/1.2.3/mesonbuild/scripts/__init__.py>.
*Alien::Build::Util::_destdir_prefix = sub {
my($destdir, $prefix) = @_;
$prefix =~ s{^/?([a-z]):}{}iif $^O eq'MSWin32';
path($destdir)->child($prefix)->stringify;
};
I'm not sure how to approach fixing this. Perhaps there can be a destdir_prefix_method property:
The workaround for those was to write a temporary wrapper for pkg-config and use that. Not sure if Meson supports such an approach, though, or if it would work in any case.
zmughal
added a commit
to PerlAlien/Alien-Meson
that referenced
this issue
Nov 9, 2023
On Windows, Meson's path handling drops the drive letter from the prefix path when joining the
DESTDIR
with the prefix.I have a work around that replaces the private
Alien::Build::Util::_destdir_prefix
function to make this work:I'm not sure how to approach fixing this. Perhaps there can be a
destdir_prefix_method
property:Or just a callback.
The text was updated successfully, but these errors were encountered: