Thread: Borland makefile for libpq...

Borland makefile for libpq...

From
"Lester Godwin"
Date:
I am new to contributing to open-source project, but I have an interest in
using PostgreSQL for my business on a Linux file server.  My client
software, however, will be running on Windows NT workstations developed
using Borland C++ Builder.  I was quite disappointed that there was no way
to compile the libpq library using Borland tools, so I "scratched the itch"
and created / modified the attached files to compile the PostgreSQL 7.3
libpq static and dynamic libraries.  I had done the same with version 7.2.3,
however, many more modifications were required to keep the compiler happy
than with 7.3.

Anyhow, I believe that some people out there may find it useful to be able
to compile the libary using the freely downloadable Borland command-line
compiler or C++ Builder.  As I mentioned the new make and .def files are
attached.  And the win32.h has just has a portion of it #ifdef'd out if the
Borland compiler is used.

Please educate me what the proper format/method should be to submit these
files -- or if there is any interest in
using them at all.  In any case I am certainly looking forward to using
PostgreSQL with C++ Builder!

Thanks,
Lester Godwin
PushCorp, Inc.
Tel 972.840.0208 Ext 412
Fax 972.840.1046
godwin@pushcorp.com
www.pushcorp.com

Re: Borland makefile for libpq...

From
Gerhard Häring
Date:
Lester Godwin <godwin@pushcorp.com> wrote:
> [Makefiles for building libpq with Borland C++]
> [...]
> Please educate me what the proper format/method should be to
> submit these files

I create a context diff using
   diff -r -C 3 /path/to/old/tree . > ../mypatch.dif

in the root directory of your changed PostgreSQL tree.
/path/to/old/tree is the path to (surprise!) the original
unchanged source tree.

You'll need a diff utility for Windows to create the patch file.
Cygwin contains one, so does the win32 gvim. Googling for
diff.exe should be another alternative.

Send this to pgsql-patches@, with a short description.

> -- or if there is any interest in using them at all.

Probably (not by me, though ;-). Btw. I did quite the same about
a year ago for mingw32. The discussion should be in the
pgsql-patches archives approx here:

http://archives.postgresql.org/pgsql-patches/2001-09/msg00010.php

The result was that this was rejected and I'm since then maintaining my patch
externally, because I regularly use it to build pyPgSQL binaries for Windows.

Btw. it's available here: http://pypgsql.sourceforge.net/misc/postgresql.html

-- Gerhard




Re: Borland makefile for libpq...

From
Gerhard Häring
Date:
Gerhard Häring <haering_postgresql@gmx.de> wrote:
> I create a context diff using
> 
>     diff -r -C 3 /path/to/old/tree . > ../mypatch.dif

There's a -N missing in these options in order to include 'new'
files in the diff.

-- Gerhard




Re: Borland makefile for libpq...

From
Bruce Momjian
Date:
I will manually apply these changes so 7.4 users can use the Borland
compiler.

Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------


Lester Godwin wrote:
> I am new to contributing to open-source project, but I have an interest in
> using PostgreSQL for my business on a Linux file server.  My client
> software, however, will be running on Windows NT workstations developed
> using Borland C++ Builder.  I was quite disappointed that there was no way
> to compile the libpq library using Borland tools, so I "scratched the itch"
> and created / modified the attached files to compile the PostgreSQL 7.3
> libpq static and dynamic libraries.  I had done the same with version 7.2.3,
> however, many more modifications were required to keep the compiler happy
> than with 7.3.
> 
> Anyhow, I believe that some people out there may find it useful to be able
> to compile the libary using the freely downloadable Borland command-line
> compiler or C++ Builder.  As I mentioned the new make and .def files are
> attached.  And the win32.h has just has a portion of it #ifdef'd out if the
> Borland compiler is used.
> 
> Please educate me what the proper format/method should be to submit these
> files -- or if there is any interest in
> using them at all.  In any case I am certainly looking forward to using
> PostgreSQL with C++ Builder!
> 
> Thanks,
> Lester Godwin
> PushCorp, Inc.
> Tel 972.840.0208 Ext 412
> Fax 972.840.1046
> godwin@pushcorp.com
> www.pushcorp.com

[ Attachment, skipping... ]

[ Attachment, skipping... ]

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

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


Re: Borland makefile for libpq...

From
"Lester Godwin"
Date:
I would say don't do it just yet...  My initial post was premature, and I
have since found several problems and added several improvements to my
original upload.  Thanks to Gerhard Häring, I now know how to create the
proper patch file using diff so I may give it a try myself -- hopefully in
the next few days...

----- Original Message -----
From: "Bruce Momjian" <pgman@candle.pha.pa.us>
To: "Lester Godwin" <godwin@pushcorp.com>
Cc: <pgsql-interfaces@postgresql.org>
Sent: Tuesday, December 10, 2002 5:38 PM
Subject: Re: [INTERFACES] Borland makefile for libpq...


>
> I will manually apply these changes so 7.4 users can use the Borland
> compiler.
>
> Your patch has been added to the PostgreSQL unapplied patches list at:
>
> http://momjian.postgresql.org/cgi-bin/pgpatches
>
> I will try to apply it within the next 48 hours.
>
> --------------------------------------------------------------------------
-
>
>
> Lester Godwin wrote:
> > I am new to contributing to open-source project, but I have an interest
in
> > using PostgreSQL for my business on a Linux file server.  My client
> > software, however, will be running on Windows NT workstations developed
> > using Borland C++ Builder.  I was quite disappointed that there was no
way
> > to compile the libpq library using Borland tools, so I "scratched the
itch"
> > and created / modified the attached files to compile the PostgreSQL 7.3
> > libpq static and dynamic libraries.  I had done the same with version
7.2.3,
> > however, many more modifications were required to keep the compiler
happy
> > than with 7.3.
> >
> > Anyhow, I believe that some people out there may find it useful to be
able
> > to compile the libary using the freely downloadable Borland command-line
> > compiler or C++ Builder.  As I mentioned the new make and .def files are
> > attached.  And the win32.h has just has a portion of it #ifdef'd out if
the
> > Borland compiler is used.
> >
> > Please educate me what the proper format/method should be to submit
these
> > files -- or if there is any interest in
> > using them at all.  In any case I am certainly looking forward to using
> > PostgreSQL with C++ Builder!
> >
> > Thanks,
> > Lester Godwin
> > PushCorp, Inc.
> > Tel 972.840.0208 Ext 412
> > Fax 972.840.1046
> > godwin@pushcorp.com
> > www.pushcorp.com
>
> [ Attachment, skipping... ]
>
> [ Attachment, skipping... ]
>
> [ Attachment, skipping... ]
>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> >     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
> --
>   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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



Re: Borland makefile for libpq...

From
Bruce Momjian
Date:
Patch retracted by author for more review.

---------------------------------------------------------------------------

Lester Godwin wrote:
> I am new to contributing to open-source project, but I have an interest in
> using PostgreSQL for my business on a Linux file server.  My client
> software, however, will be running on Windows NT workstations developed
> using Borland C++ Builder.  I was quite disappointed that there was no way
> to compile the libpq library using Borland tools, so I "scratched the itch"
> and created / modified the attached files to compile the PostgreSQL 7.3
> libpq static and dynamic libraries.  I had done the same with version 7.2.3,
> however, many more modifications were required to keep the compiler happy
> than with 7.3.
> 
> Anyhow, I believe that some people out there may find it useful to be able
> to compile the libary using the freely downloadable Borland command-line
> compiler or C++ Builder.  As I mentioned the new make and .def files are
> attached.  And the win32.h has just has a portion of it #ifdef'd out if the
> Borland compiler is used.
> 
> Please educate me what the proper format/method should be to submit these
> files -- or if there is any interest in
> using them at all.  In any case I am certainly looking forward to using
> PostgreSQL with C++ Builder!
> 
> Thanks,
> Lester Godwin
> PushCorp, Inc.
> Tel 972.840.0208 Ext 412
> Fax 972.840.1046
> godwin@pushcorp.com
> www.pushcorp.com

[ Attachment, skipping... ]

[ Attachment, skipping... ]

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

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