[GRASS-dev] Modules

Michael Barton michael.barton at asu.edu
Fri Feb 23 11:03:00 EST 2007


I had trouble too. But when I kind of hacked it by changing to the
.../vector/v.digit directory and using "patch -p0 < vdigit.patch" it worked.

Michael


On 2/23/07 8:47 AM, "Moritz Lennert" <mlennert at club.worldonline.be> wrote:

> 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

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton 




More information about the grass-dev mailing list