Skip to content

Autoconf and pure perl pkg-config interactions under windows #227

Open
@shawnlaffan

Description

@shawnlaffan

This is a follow-on from discussion in #195 (see #195 (comment) ).

There are colon issues with drive names and path separators when passing between Windows and MSYS, where the pure perl pkg-config is in use. Wrapping the pure perl pkg-config is one means of avoiding these issues, which was the purpose of #195 . Unfortunately the shell wrapper in #195 did not handle quoted arguments.

I have reworked the pure-perl pkg-config wrapper approach using perl for the wrapper script to better handle quoted arguments. I've released it to CPAN as a plugin, with development on GitHub.

https://metacpan.org/release/Alien-Build-Plugin-PkgConfig-PPWrapper
https://github.com/shawnlaffan/Alien-Build-Plugin-PkgConfig-PPWrapper

It works for Alien::gdal and Alien::proj based on CI results (see https://github.com/shawnlaffan/geo-gdal-ffi-canary , noting that recent CI failures are unrelated to the plugin code).

If you decide it's worth including in Alien::Build then I can work up another PR, or feel free to adapt as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐣EnhancementUseful potential future feature (not a bug)💣MSWin32Windows is a weird best🚉Platform SpecificOften Windows lol, but could be something else

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions