diff --git a/lang/perl/Makefile b/lang/perl/Makefile index afd82997fe..6b748019bc 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -11,7 +11,7 @@ include perlver.mk PKG_NAME:=perl PKG_VERSION:=$(PERL_VERSION) -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=https://www.cpan.org/src/5.0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz diff --git a/lang/perl/patches/920-Revert-perl-127606-adjust-dependency-paths-on-instal.patch b/lang/perl/patches/920-Revert-perl-127606-adjust-dependency-paths-on-instal.patch new file mode 100644 index 0000000000..cff268c3c0 --- /dev/null +++ b/lang/perl/patches/920-Revert-perl-127606-adjust-dependency-paths-on-instal.patch @@ -0,0 +1,114 @@ +From 002d6666a3ed5bc9c360c1f91116ebbf0c5ef57c Mon Sep 17 00:00:00 2001 +From: Georgi Valkov +Date: Sat, 20 Apr 2024 16:18:37 +0300 +Subject: [PATCH] revert 88efce38149481334db7ddb932f9b74eaaa9765b + +Signed-off-by: Georgi Valkov +--- + Makefile.SH | 35 ++--------------------------------- + installperl | 25 ------------------------- + 2 files changed, 2 insertions(+), 58 deletions(-) + +--- a/Makefile.SH ++++ b/Makefile.SH +@@ -61,16 +61,8 @@ true) + -compatibility_version \ + ${api_revision}.${api_version}.${api_subversion} \ + -current_version \ +- ${revision}.${patchlevel}.${subversion}" +- case "$osvers" in +- 1[5-9]*|[2-9]*) +- shrpldflags="$shrpldflags -install_name `pwd`/\$@ -Xlinker -headerpad_max_install_names" +- exeldflags="-Xlinker -headerpad_max_install_names" +- ;; +- *) +- shrpldflags="$shrpldflags -install_name \$(shrpdir)/\$@" +- ;; +- esac ++ ${revision}.${patchlevel}.${subversion} \ ++ -install_name \$(shrpdir)/\$@" + ;; + cygwin*) + shrpldflags="$shrpldflags -Wl,--out-implib=libperl.dll.a" +@@ -353,14 +345,6 @@ MANIFEST_SRT = MANIFEST.srt + + !GROK!THIS! + +-case "$useshrplib$osname" in +-truedarwin) +- $spitshell >>$Makefile <>$Makefile <>$Makefile <<'!NO!SUBS!' +- $(SHRPENV) $(CC) -o perl $(PERL_EXE_LDFLAGS) $(CLDFLAGS) $(CCDLFLAGS) $(perlmain_objs) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs) +-!NO!SUBS! +- ;; +- *) $spitshell >>$Makefile <<'!NO!SUBS!' +- $(SHRPENV) $(CC) -o perl $(CLDFLAGS) $(CCDLFLAGS) $(perlmain_objs) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs) +-!NO!SUBS! +- ;; +- esac +- ;; +- + *) $spitshell >>$Makefile <<'!NO!SUBS!' + $(SHRPENV) $(CC) -o perl $(CLDFLAGS) $(CCDLFLAGS) $(perlmain_objs) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs) + !NO!SUBS! +--- a/installperl ++++ b/installperl +@@ -282,7 +282,6 @@ else { + safe_unlink("$installbin/$perl_verbase$ver$exe_ext"); + copy("perl$exe_ext", "$installbin/$perl_verbase$ver$exe_ext"); + strip("$installbin/$perl_verbase$ver$exe_ext"); +- fix_dep_names("$installbin/$perl_verbase$ver$exe_ext"); + chmod(0755, "$installbin/$perl_verbase$ver$exe_ext"); + `chtag -r "$installbin/$perl_verbase$ver$exe_ext"` if ($^O eq 'os390'); + } +@@ -350,7 +349,6 @@ foreach my $file (@corefiles) { + if (copy_if_diff($file,"$installarchlib/CORE/$file")) { + if ($file =~ /\.(\Q$so\E|\Q$dlext\E)$/) { + strip("-S", "$installarchlib/CORE/$file") if $^O eq 'darwin'; +- fix_dep_names("$installarchlib/CORE/$file"); + chmod($SO_MODE, "$installarchlib/CORE/$file"); + } else { + chmod($NON_SO_MODE, "$installarchlib/CORE/$file"); +@@ -749,27 +747,4 @@ sub strip + } + } + +-sub fix_dep_names { +- my $file = shift; +- +- $^O eq "darwin" && $Config{osvers} =~ /^(1[5-9]|[2-9])/ +- && $Config{useshrplib} +- or return; +- +- my @opts; +- my $so = $Config{so}; +- my $libperl = "$Config{archlibexp}/CORE/libperl.$Config{so}"; +- if ($file =~ /\blibperl.\Q$Config{so}\E$/a) { +- push @opts, -id => $libperl; +- } +- else { +- push @opts, -change => getcwd . "/libperl.$so", $libperl; +- } +- push @opts, $file; +- +- $opts{verbose} and print " install_name_tool @opts\n"; +- system "install_name_tool", @opts +- and die "Cannot update $file dependency paths\n"; +-} +- + # ex: set ts=8 sts=4 sw=4 et: