-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vendor a patch to work around the openssl 3.3.2 perl issue
- Loading branch information
1 parent
6b8fded
commit e4ae927
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
diff --git a/util/mkinstallvars.pl b/util/mkinstallvars.pl | ||
index 52a3d607bd..b67a1c477f 100644 | ||
--- a/util/mkinstallvars.pl | ||
+++ b/util/mkinstallvars.pl | ||
@@ -10,8 +10,14 @@ | ||
# form, or passed as variable assignments on the command line. | ||
# The result is a Perl module creating the package OpenSSL::safe::installdata. | ||
|
||
+use 5.10.0; | ||
+use strict; | ||
+use warnings; | ||
+use Carp; | ||
+ | ||
use File::Spec; | ||
-use List::Util qw(pairs); | ||
+#use List::Util qw(pairs); | ||
+sub _pairs (@); | ||
|
||
# These are expected to be set up as absolute directories | ||
my @absolutes = qw(PREFIX libdir); | ||
@@ -19,9 +25,9 @@ my @absolutes = qw(PREFIX libdir); | ||
# as subdirectories to PREFIX or LIBDIR. The order of the pairs is important, | ||
# since the LIBDIR subdirectories depend on the calculation of LIBDIR from | ||
# PREFIX. | ||
-my @subdirs = pairs (PREFIX => [ qw(BINDIR LIBDIR INCLUDEDIR APPLINKDIR) ], | ||
- LIBDIR => [ qw(ENGINESDIR MODULESDIR PKGCONFIGDIR | ||
- CMAKECONFIGDIR) ]); | ||
+my @subdirs = _pairs (PREFIX => [ qw(BINDIR LIBDIR INCLUDEDIR APPLINKDIR) ], | ||
+ LIBDIR => [ qw(ENGINESDIR MODULESDIR PKGCONFIGDIR | ||
+ CMAKECONFIGDIR) ]); | ||
# For completeness, other expected variables | ||
my @others = qw(VERSION LDLIBS); | ||
|
||
@@ -151,3 +157,17 @@ our \@LDLIBS = | ||
|
||
1; | ||
_____ | ||
+ | ||
+######## Helpers | ||
+ | ||
+sub _pairs (@) { | ||
+ croak "Odd number of arguments" if @_ & 1; | ||
+ | ||
+ my @pairlist = (); | ||
+ | ||
+ while (@_) { | ||
+ my $x = [ shift, shift ]; | ||
+ push @pairlist, $x; | ||
+ } | ||
+ return @pairlist; | ||
+} |