windows: remove date from version number in win32ver.rc
authorAndres Freund <andres@anarazel.de>
Mon, 26 Sep 2022 18:38:02 +0000 (11:38 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 26 Sep 2022 18:38:02 +0000 (11:38 -0700)
This may have served a purpose at some point, but these days it just
contributes to a non-reproducible build.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/c5736f70-bb6d-8d25-e35c-e3d886e4e905@enterprisedb.com
Discussion: https://postgr.es/m/1cef5b48-32bd-5cbf-fb62-fb648860f5ef@enterprisedb.com

src/makefiles/Makefile.win32
src/tools/msvc/Project.pm

index 17d68196442cdd12105f60e05c2fdde4567508d6..d268b3ebafd89028b62e107e0777a25d71584d9f 100644 (file)
@@ -69,7 +69,6 @@ win32ver.rc: $(top_srcdir)/src/port/win32ver.rc
        sed -e 's;FILEDESC;$(PGFILEDESC);' \
            -e 's;VFT_APP;$(PGFTYPE);' \
            -e 's;_ICO_;$(PGICOSTR);' \
-           -e 's;\(VERSION.*\),0 *$$;\1,'`date '+%y%j' | sed 's/^0*//'`';' \
            -e '/_INTERNAL_NAME_/$(if $(shlib),s;_INTERNAL_NAME_;"$(basename $(shlib))";,d)' \
            -e '/_ORIGINAL_NAME_/$(if $(shlib),s;_ORIGINAL_NAME_;"$(shlib)";,d)' \
          $< >$@
index b24a2a98155e61a1293949dace00716cd4cb1f24..ec449c864c1032d842c5f828fca8f23044140003 100644 (file)
@@ -367,10 +367,6 @@ sub AddResourceFile
 {
        my ($self, $dir, $desc, $ico) = @_;
 
-       my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
-         localtime(time);
-       my $d = sprintf("%02d%03d", ($year - 100), $yday);
-
        if (Solution::IsNewer("$dir/win32ver.rc", 'src/port/win32ver.rc'))
        {
                print "Generating win32ver.rc for $dir\n";
@@ -383,7 +379,6 @@ sub AddResourceFile
                {
                        s/FILEDESC/"$desc"/gm;
                        s/_ICO_/$icostr/gm;
-                       s/(VERSION.*),0/$1,$d/;
                        if ($self->{type} eq "dll")
                        {
                                s/VFT_APP/VFT_DLL/gm;