perl: fix build errors on macOS 14676/head
authorGeorgi Valkov <gvalkov@abv.bg>
Sat, 6 Feb 2021 18:54:21 +0000 (20:54 +0200)
committerGeorgi Valkov <gvalkov@abv.bg>
Tue, 9 Feb 2021 08:45:30 +0000 (10:45 +0200)
commit6375f73b297c3d685dacc2e7a92e1e536ab16eae
treeeb668d188998420d010c404874a326333910541f
parentd29ec52a5895f06dd9f31062b52ebb7f2ac0f49f
perl: fix build errors on macOS

Added a check for macOS 11 and newer to resolve a compile error:
*** Unexpected product version 11.2.

Added Internals::getcwd.
Fallback to the built-in getcwd to resolve compile errors on macOS:
Can't locate Errno.pm in @INC
/miniperl not found

Signed-off-by: Georgi Valkov <gvalkov@abv.bg>
lang/perl/Makefile
lang/perl/patches/001-macos_11_support.patch [new file with mode: 0644]
lang/perl/patches/002-add-Internals-getcwd.patch [new file with mode: 0644]
lang/perl/patches/003-fallback-to-the-built-in-getcwd-if-we-ca.patch [new file with mode: 0644]
lang/perl/patches/998-Errno_errno.h_path.patch
lang/perl/patches/999-fix-build-failure-against-gcc-10.patch