Bug#1069029: libxml-bare-perl FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Mon Apr 15 09:14:48 BST 2024


Source: libxml-bare-perl
Version: 0.53-3
Tags: patch upstream
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libxml-bare-perl fails to cross build from source, because it uses the
build architecture compiler. The compiler detection in Makefile.PL
actually is not very smart and just uses "gcc". I am attaching a patch
that makes the CC configurable via environment and falls back to the
detection mechanism of perl itself. While this improves cross building,
I fear the patch will regress msvc builds as is, because earlier getcc
used to return 0 for msvc and now it'll really return a compiler there.
So the patch will work on Debian, but upstream may want to refine it.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 690 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20240415/94edec8c/attachment.patch>


More information about the pkg-perl-maintainers mailing list