[GRASS-dev] Modules

Moritz Lennert mlennert at club.worldonline.be
Fri Feb 23 10:47:25 EST 2007


On 23/02/07 03:48, Glynn Clements wrote:
> Glynn Clements wrote:
> 
>> The remaining step is to reinstate the bgcmd= option.
> 
> Done; updated patch (again, against CVS HEAD) attached.

I know this is a bit off-topic, but I'm having trouble applying this 
patch. The way I understand the -p option of patch, if I am within the 
grass6 directory, I have to use 'patch -p3 < changes.diff'

which should turn

/grassrepository/grass6/vector/v.digit/attr.c

into vector/v.digit/attr.c.

But whatever number I try for p, I always get:

mlennert at geog-pc40:~/SRC/GRASS/CVS/grass6$ patch -p3 < changes.diff
missing header for unified diff at line 11 of patch
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|? OBJ.i686-pc-linux-gnu
|? changes.diff
|? round.diff
|Index: attr.c
|===================================================================
|RCS file: /grassrepository/grass6/vector/v.digit/attr.c,v
|retrieving revision 1.12
|diff -u -r1.12 attr.c
|--- attr.c     21 Feb 2007 22:15:41 -0000      1.12
|+++ attr.c     23 Feb 2007 02:27:33 -0000
--------------------------
File to patch:

At this point, entering the file path manually works.

I even tried erasing the /grassrepository/grass6/ from each file path, 
but that gave me the same message (using -p0).

Nothing really important, but just having me confused.

Moritz




More information about the grass-dev mailing list