Re: Version numbers on libpq.dll - Mailing list pgsql-hackers-win32

From Bruce Momjian
Subject Re: Version numbers on libpq.dll
Date
Msg-id 200412142115.iBELFFX24004@candle.pha.pa.us
Whole thread Raw
In response to Re: Version numbers on libpq.dll  ("Magnus Hagander" <mha@sollentuna.net>)
List pgsql-hackers-win32
Magnus Hagander wrote:
> >I question whether any of us will remember to modify libpq.rc if you
> >happen to be making a new installer twice in the same beta.  As a group
> >we forget even simpler things regularly.  And we would be adding an
> >additional change for each beta and each RC for only the installer.  I
> >am not inclined to add more work to a process that already is pretty
> >complex.
> >
> >However, that is Marc's roll and he can answer whether he can do it
> >reliably.  I am not involved in that process.
>
> Is there any way to get it into the build process? The same place where
> it builds the other files in interfaces/libpq that are used in the MSVC
> build - the .def files. Perhaps the "last number" could be the cvs
> version number of configure.in or something? (This may be way off, I
> don't really know how those files are generated. But it should be
> possible to do with some fairly sinmple sed magic, I would think.)

We could do "date '+%y%j' to output 04349.  How many bits do we have for
that last comma value?  This would work unless you put out two
installers in the same day.  However, this would not work for VC and BCC
because they don't have 'date'.  This would give us an ever-increasing
value for each release.

> >My point is that installing from CVS will always overwrite libpq.dll in
> >/lib, so it doesn't care what the version stamp is in the binary.  Only
> >the installer cares about the internal version stamp.
>
> Right on the first. Wrong on the second.
> Not "only the installer". *any* installer (if somebody embeds
> postgresql). *any* deployment program (such as Systems Management
> Server) used in an enteprise to distribute products. The "official MSI"
> is just one of several possibilities. If we make it good enough it will
> get rid of some others (for example, SMS could use it in silent mode to
> install - but depending on corporate policy that may not be acceptable),
> but there will be others.

I see.  So you imagine other people building and doing installs,
especially client-only ones.  That makes sense, though as I mentioned
above this does not work for VC or BCC builds, on MinGW.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-hackers-win32 by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: Version numbers on libpq.dll
Next
From: lista@ernstson.nu
Date:
Subject: Problem getting PostgreSQL 8 Beta5 start on localhost port 5432