util/mkdef.pl, util/add-depends.pl: don't lowercase file names
It turns out to be detrimental on some file systems that may or may not
be case sensitive (such as NTFS, which has a case sensitive mode).
Fixes #7172
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7172)
(cherry picked from commit d3c72e392ab72d418ea5147857701a8730def3fd)
Richard Levitte authored 5 years ago
Richard Levitte committed 5 years ago
62 | 62 |
# files we depend on in the same directory that only differ by character case,
|
63 | 63 |
# we're fine.
|
64 | 64 |
my %depconv_cache =
|
65 | |
map { lc catfile($abs_blddir, $_) => $_ }
|
|
65 |
map { catfile($abs_blddir, $_) => $_ }
|
66 | 66 |
keys %{$unified_info{generate}};
|
67 | 67 |
|
68 | 68 |
my %procedures = (
|
|
138 | 138 |
|
139 | 139 |
# VMS C gives us absolute paths, always. Let's see if we can
|
140 | 140 |
# make them relative instead.
|
141 | |
$line = lc canonpath($line);
|
|
141 |
$line = canonpath($line);
|
142 | 142 |
|
143 | 143 |
unless (defined $depconv_cache{$line}) {
|
144 | 144 |
my $dep = $line;
|
|
183 | 183 |
# VC gives us absolute paths for all include files, so to
|
184 | 184 |
# remove system header dependencies, we need to check that
|
185 | 185 |
# they don't match $abs_srcdir or $abs_blddir.
|
186 | |
$tail = lc canonpath($tail);
|
|
186 |
$tail = canonpath($tail);
|
187 | 187 |
|
188 | 188 |
unless (defined $depconv_cache{$tail}) {
|
189 | 189 |
my $dep = $tail;
|
246 | 246 |
$crypto.=" include/internal/err.h";
|
247 | 247 |
$crypto.=" include/internal/sslconf.h";
|
248 | 248 |
foreach my $f ( glob(catfile($config{sourcedir},'include/openssl/*.h')) ) {
|
249 | |
my $fn = "include/openssl/" . lc(basename($f));
|
|
249 |
my $fn = "include/openssl/" . basename($f);
|
250 | 250 |
$crypto .= " $fn" if !defined $skipthese{$fn};
|
251 | 251 |
}
|
252 | 252 |
|