0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-21 00:09:13 +00:00
Files
packages/lang/perl/patches/910-fix-default_inc_excludes_dot.patch
Matthias Schiffer 2a7dc15402 perl: replace 910-miniperl-needs-inc-dot.patch with smaller scope fix
The patch was first introduced in commit 4a94479f96 ("perl: update to
5.26.1") to fix the target build when the host perl has
default_inc_excludes_dot enabled. It just added back the `-I`. to every
call of miniperl; this solution is questionable however, as it adds `.` to
the beginning of the search path, not as a final fallback like perl did
before default_inc_excludes_dot (and like miniperl does).

It is also not necessary - only two scripts, write_buildcustomize.pl and
configpm, expect to be able to include a file from `.` (in both cases a
file the script just generated). Just fix the two scripts instead.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2025-05-05 11:20:38 +02:00

23 lines
522 B
Diff

--- a/write_buildcustomize.pl
+++ b/write_buildcustomize.pl
@@ -3,7 +3,7 @@
use strict;
my $osname = $^O;
-my $file = 'lib/buildcustomize.pl';
+my $file = './lib/buildcustomize.pl';
if ( @ARGV % 2 ) {
my $dir = shift;
--- a/configpm
+++ b/configpm
@@ -129,7 +129,7 @@ if ($Opts{chdir}) {
my ($Config_SH, $Config_PM, $Config_heavy, $Config_POD);
my $Glossary = 'Porting/Glossary';
-$Config_PM = "lib/Config.pm";
+$Config_PM = "./lib/Config.pm";
$Config_POD = "lib/Config.pod";
$Config_SH = "config.sh";