Re: How to apply patch? - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: How to apply patch?
Date
Msg-id 20030116180907.GC820@tishler.net
Whole thread Raw
In response to How to apply patch?  (Andrew Klimov <and_k_98@yahoo.com>)
List pgsql-cygwin
Andrew,

On Thu, Jan 16, 2003 at 08:47:52AM -0800, Andrew Klimov wrote:
> Jason, many thanks to you for patch and comments!

You are welcome.

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

Since the patch is against CVS, you need to supply the -p0 option:

    $ cd /usr/src/postgresql-7.3.1/src
    $ patch -p0 </usr/src/postgresql-7.3.1/tcl.patch
    patching file interfaces/libpgtcl/Makefile
    patching file makefiles/Makefile.win
    patching file pl/tcl/Makefile
    Hunk #1 succeeded at 40 (offset -3 lines).
    patching file pl/tcl/pltcl.c

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

No.  The /lib and /usr/lib directories are actually the same (e.g.,
C:\cygwin\lib) but appear to be two due to a mount point:

    $ mount
    C:\cygwin on / type system (binmode)
**> C:\cygwin\lib on /usr/lib type system (binmode) <**
    ...

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

pgsql-cygwin by date:

Previous
From: Andrew Klimov
Date:
Subject: How to apply patch?
Next
From: "King_Henree@yahoo.com"
Date:
Subject: Determining which DML is used most???