aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-05-07 11:57:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-05-07 11:57:41 -0400
commitd4e59c5521c244e809c3d68df51fb79543578e41 (patch)
tree89d1fb20952971ab08aaab36dc61e8e1481c812f /src
parent5788a5670e4a58049b8adc82c4fef97a2c3be327 (diff)
downloadpostgresql-d4e59c5521c244e809c3d68df51fb79543578e41.tar.gz
postgresql-d4e59c5521c244e809c3d68df51fb79543578e41.zip
Install the "posixrules" timezone link in MSVC builds.
Somehow, we'd missed ever doing this. The consequences aren't too severe: basically, the timezone library would fall back on its hardwired notion of the DST transition dates to use for a POSIX-style zone name, rather than obeying US/Eastern which is the intended behavior. The net effect would only be to obey current US DST law further back than it ought to apply; so it's not real surprising that nobody noticed. David Rowley, per report from Amit Kapila Discussion: https://postgr.es/m/CAA4eK1LC7CaNhRAQ__C3ht1JVrPzaAXXhEJRnR5L6bfYHiLmWw@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Install.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
index 35ad5b8a440..cf919977582 100644
--- a/src/tools/msvc/Install.pm
+++ b/src/tools/msvc/Install.pm
@@ -380,13 +380,20 @@ sub GenerateTimezoneFiles
my $conf = shift;
my $mf = read_file("src/timezone/Makefile");
$mf =~ s{\\\r?\n}{}g;
+
$mf =~ /^TZDATA\s*:?=\s*(.*)$/m
|| die "Could not find TZDATA line in timezone makefile\n";
my @tzfiles = split /\s+/, $1;
+ $mf =~ /^POSIXRULES\s*:?=\s*(.*)$/m
+ || die "Could not find POSIXRULES line in timezone makefile\n";
+ my $posixrules = $1;
+ $posixrules =~ s/\s+//g;
+
print "Generating timezone files...";
- my @args = ("$conf/zic/zic", '-d', "$target/share/timezone");
+ my @args = ("$conf/zic/zic", '-d', "$target/share/timezone",
+ '-p', "$posixrules");
foreach (@tzfiles)
{
my $tzfile = $_;