Win32 Version numbering patch

Started by Dave Pageover 21 years ago7 messages
#1Dave Page
dpage@vale-housing.co.uk

I was hoping this would be in for beta 3, but alas - can someone
*please* commit the win32 version patch at:

http://candle.pha.pa.us/mhonarc/patches/msg00000.html

With the correction at

http://candle.pha.pa.us/mhonarc/patches/msg00001.html

Without it we cannot reliably install files like libpq.dll on Windows!!

Regards, Dave

#2Magnus Hagander
mha@sollentuna.net
In reply to: Dave Page (#1)
Re: Win32 Version numbering patch

I was hoping this would be in for beta 3, but alas - can someone
*please* commit the win32 version patch at:

http://candle.pha.pa.us/mhonarc/patches/msg00000.html

With the correction at

http://candle.pha.pa.us/mhonarc/patches/msg00001.html

Without it we cannot reliably install files like libpq.dll on
Windows!!

To be fair, the patch for libpq.dll specifically was applied and is
included in beta3 (I think), per
http://archives.postgresql.org/pgsql-committers/2004-09/msg00275.php.
That said, the other one is fairly badly needed as well...

//Magnus

#3Dave Page
dpage@vale-housing.co.uk
In reply to: Magnus Hagander (#2)
Re: Win32 Version numbering patch

-----Original Message-----
From: Magnus Hagander [mailto:mha@sollentuna.net]
Sent: 27 September 2004 11:26
To: Dave Page; pgsql-hackers@postgresql.org
Cc: PostgreSQL-patches
Subject: RE: [PATCHES] Win32 Version numbering patch

I was hoping this would be in for beta 3, but alas - can someone
*please* commit the win32 version patch at:

http://candle.pha.pa.us/mhonarc/patches/msg00000.html

With the correction at

http://candle.pha.pa.us/mhonarc/patches/msg00001.html

Without it we cannot reliably install files like libpq.dll on
Windows!!

To be fair, the patch for libpq.dll specifically was applied
and is included in beta3 (I think), per
http://archives.postgresql.org/pgsql-committers/2004-09/msg00275.php.
That said, the other one is fairly badly needed as well...

Yup, sorry. I was looking for the .ico file...

Regards, Dave.

#4Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Dave Page (#3)
Re: [HACKERS] Win32 Version numbering patch

Dave Page wrote:

-----Original Message-----
From: Magnus Hagander [mailto:mha@sollentuna.net]
Sent: 27 September 2004 11:26
To: Dave Page; pgsql-hackers@postgresql.org
Cc: PostgreSQL-patches
Subject: RE: [PATCHES] Win32 Version numbering patch

I was hoping this would be in for beta 3, but alas - can someone
*please* commit the win32 version patch at:

http://candle.pha.pa.us/mhonarc/patches/msg00000.html

With the correction at

http://candle.pha.pa.us/mhonarc/patches/msg00001.html

Without it we cannot reliably install files like libpq.dll on
Windows!!

To be fair, the patch for libpq.dll specifically was applied
and is included in beta3 (I think), per
http://archives.postgresql.org/pgsql-committers/2004-09/msg00275.php.
That said, the other one is fairly badly needed as well...

Yup, sorry. I was looking for the .ico file...

Now that I am back I can apply it soon.

-- 
  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
#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dave Page (#1)
Re: [HACKERS] Win32 Version numbering patch

"Dave Page" <dpage@vale-housing.co.uk> writes:

I was hoping this would be in for beta 3, but alas - can someone
*please* commit the win32 version patch at:
http://candle.pha.pa.us/mhonarc/patches/msg00000.html

Personally I was holding off in hopes of seeing a cleaner solution.
A patch that requires every executable-building Makefile to have a
platform-specific wart isn't going to be very maintainable. You
already missed pg_config, plus whichever of the contrib modules build
executables...

regards, tom lane

#6Magnus Hagander
mha@sollentuna.net
In reply to: Tom Lane (#5)
Re: [HACKERS] Win32 Version numbering patch

I was hoping this would be in for beta 3, but alas - can someone
*please* commit the win32 version patch at:
http://candle.pha.pa.us/mhonarc/patches/msg00000.html

Personally I was holding off in hopes of seeing a cleaner solution.
A patch that requires every executable-building Makefile to
have a platform-specific wart isn't going to be very
maintainable. You already missed pg_config, plus whichever
of the contrib modules build executables...

IIRC, when this patch was posted, pg_config was a shellscript. Definitly
when the original version of the patch was posted. But sure, I should
probably have updated it when that changed.

Do you have any ideas on *how* to do this? Or specifically which parts
you don't like (or is it the whole concept)? I had no idea you were
holding off based on that. I've asked repeatedly for comments about what
is bad, and this is the first time I heard something about the new patch
(other than the location of the files and the inclusion of the icon
which Peter E commented on sevearal times), if I'm not mistaken.

Part of the versioninfo struct is file-specific, part is product
specific. I see no way around it other than having some parts of it in
every Makefile. Sure, we could have some kind of central mapping file
somewhere, but I would consider that *less* maintainable.

I specifically did not include contrib modules. That can be done once we
have a final verdict on exactly how it should be.

//Magnus

#7Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Tom Lane (#5)
Re: [PATCHES] Win32 Version numbering patch

Tom Lane wrote:

"Dave Page" <dpage@vale-housing.co.uk> writes:

I was hoping this would be in for beta 3, but alas - can someone
*please* commit the win32 version patch at:
http://candle.pha.pa.us/mhonarc/patches/msg00000.html

Personally I was holding off in hopes of seeing a cleaner solution.
A patch that requires every executable-building Makefile to have a
platform-specific wart isn't going to be very maintainable. You
already missed pg_config, plus whichever of the contrib modules build
executables...

I have added Win32 version information for pg_config. I assume anyone
adding a new client binary will copy an existing one so I am hopeful the
win32 version strings will be maintained.

-- 
  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