From owner-freebsd-ports Wed Jun 21 02:45:31 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id CAA08719 for ports-outgoing; Wed, 21 Jun 1995 02:45:31 -0700 Received: from silvia.HIP.Berkeley.EDU (silvia.HIP.Berkeley.EDU [136.152.64.181]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id CAA08709 for ; Wed, 21 Jun 1995 02:45:28 -0700 Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.6.11/8.6.9) id CAA01854; Wed, 21 Jun 1995 02:45:12 -0700 Date: Wed, 21 Jun 1995 02:45:12 -0700 Message-Id: <199506210945.CAA01854@silvia.HIP.Berkeley.EDU> To: rgrimes@gndrsh.aac.dev.com CC: chuckr@Glue.umd.edu, FreeBSD-ports@freeBSD.org In-reply-to: <199506200448.VAA02456@gndrsh.aac.dev.com> (rgrimes@gndrsh.aac.dev.com) Subject: Re: diff/patch question From: asami@cs.berkeley.edu (Satoshi Asami) Sender: ports-owner@freeBSD.org Precedence: bulk * > Hi Satoshi. I am trying to keep up with changes I'm making in a port I'm * > trying to develop, and so I'm using the info you gave me on diff. I'm * > having a strange problem, tho, and I hope you can help. The project I'm * > into uses imake, so one of the files is named site.def. The file occurs * > in the top project directory, and has to be changed, then deposited in * > the project config directory, several layers down. Patch keeps on * > insisting that, since it finds the file in the top directory, I must have * > made a mistake, so it patches it inthe top directory, and doesn't move it * > down. How can I force patch to believe I know what I want? * * I am not Satoshi, but will try to answer this for you. Use a -p0 option * to patch, that will tell patch to use the full pathname in the patch file. I'm the Satoshi, and I'm not sure what you are asking. If Rod answered it, fine; otherwise, maybe you can help us understand exactly what you are trying to do. One thing I know is that patch won't move files to different directories for you. If you need to do that, you should add a pre-patch (or post-patch) rule to your port Makefile. Satoshi