This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make Errno_pm.PL compatible with /usr/include/<ARCH>/errno.h
authorNiko Tyni <ntyni@debian.org>
Sat, 17 Nov 2018 17:27:42 +0000 (19:27 +0200)
committerTony Cook <tony@develop-help.com>
Mon, 19 Nov 2018 23:58:02 +0000 (10:58 +1100)
commit6c5080f25fa3dcede391007ffe328ea53779c52f
tree5902ad595855034a01c2264e609dfaf5369d9df0
parent72f80477dde6b7a55e4f16b0ed65951a10ef5fcc
Make Errno_pm.PL compatible with /usr/include/<ARCH>/errno.h

As seen in <https://bugs.debian.org/798955>, Debian glibc
maintainers intend to move system header files from /usr/include to
/usr/include/<arch> at some point. This would break Errno_pm.PL, which
has logic for asking cpp for the location of errno.h but fails earlier
if errno.h is not on a list of known paths.

Take the cpp fallback instead of dying. The behaviour should stay
identical as long as errno.h is not moved.

This will also enable multiarch (non-sysroot) cross builds.

Original patch by Helmut Grohne.

Bug-Debian: https://bugs.debian.org/875921
ext/Errno/Errno_pm.PL