How to apply patch?

From: Andrew Klimov <and_k_98(at)yahoo(dot)com>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: How to apply patch?
Date: 2003-01-16 16:47:52
Message-ID: 20030116164752.25982.qmail@web20415.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin


Jason, many thanks to you for patch and comments!

But,I'm not a cygwin "guru".So, how to apply the tcl.patch?I have placed it to /usr/src/postgresql-7.3.1 and then run:

patch -p1 < tcl.patch. And this gives me:

/*--------------------------------- patch output begin here ------------------------------------------------*/

can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: interfaces/libpgtcl/Makefile
|===================================================================
|RCS file: /projects/cvsroot/pgsql-server/src/interfaces/libpgtcl/Makefile,v
|retrieving revision 1.30
|diff -u -p -r1.30 Makefile
|--- interfaces/libpgtcl/Makefile 2002/12/30 17:19:52 1.30
|+++ interfaces/libpgtcl/Makefile 2003/01/14 19:40:46
--------------------------
File to patch:

/*-------------------------------- patch output end here ---------------------------------------------------*/

You wrote:

>Attached is a *work-in-progress* patch that enables PostgreSQL CVS to
>build "cleanly" when configured as follows:

> $ configure --with-tcl --with-tclconfig=/usr/lib ...

>Note that I needed to configure --with-tclconfig, but I did *not* have
>to
>do the following:

> $ ln -s /bin/tclsh83 /bin/tclsh
> $ ln -s /bin/wish83.exe /bin/wish

My Question : should I place tclConfig.sh (and tkConfig.sh) which is originally in /cygwin/lib directory to /cygwin/usr/lib directory?

Next, on my snip->

/* This is my snip -begin */

>> include -c -o pltcl.o pltcl.c
>>
>> In file included from pltcl.c:40:
>> /usr/include/tcl.h:234: warning: `DLLIMPORT' redefined
>> ../../../src/include/pg_config_os.h:26: warning: this is the location
>>of the
>> previous definition

/* This is my snip -end */

You wrote:

>gcc 3.2 did not produce the above warning!

I've configured this by using CC=gcc-2.So ,gcc-2 produces this output.

But,I'm not so experienced with cygwin and with such a cygwin stuff as "patch" program!

So ,please give me an instruction on how to apply the patch! My environment:WinNT4(SP5) , latest cygwin, and postgresql7.3 source not from CVS , but from postgresql site .

Any help would be very appreciated.

Andrew.

---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2003-01-16 18:09:07 Re: How to apply patch?
Previous Message Jason Tishler 2003-01-16 13:00:22 Re: Postgres 7.3 from source --with-tcl : Errors again...