Source: libsocket6-perl Version: 0.29-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
libsocket6-perl is built using a Makefile.PL that calls a ./configure script. Unfortunately, that latter invocation happens to lack --host and thus fails. Adding the --host flag is relatively easy, just figuring out the right value is not entirely obvious. I opted for $Config{archname}, which happens to be x86_64-linux-gnu-thread-multi on amd64. This is not quite what we wanted x86_64-linux-gnu, but reasonably close. It also seems to work on armhf. Do you know a better way to acquire the architecture name? If not, is this patch acceptable? Helmut
--- libsocket6-perl-0.29.orig/Makefile.PL +++ libsocket6-perl-0.29/Makefile.PL @@ -49,6 +49,7 @@ $cmd .= " $Config{sh}"; } $cmd .= " ./configure"; + $cmd .= " --host=$Config{archname}"; $cmd .= " --with-perl=$path_perl" if ($path_perl); system($cmd); }