This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Error building from cvs
- From: Keith Seitz <keiths at redhat dot com>
- To: John Long <codeblue at inbox dot lv>
- Cc: insight at sourceware dot org
- Date: Wed, 03 Jul 2013 09:11:02 -0700
- Subject: Re: Error building from cvs
- References: <20130702094150 dot GA18316 at inbox dot lv> <51D308E2 dot 2010000 at redhat dot com> <20130703110647 dot GA18731 at inbox dot lv>
On 07/03/2013 04:06 AM, John Long wrote:
Can you please remind me how to apply your patches?
Git format shouldn't matter: I apply those to branches all the time with
`patch'. The probable cause is the leading path on that patch.
The paths in the patch are all prefaced with: "a/gdb/gdbtk/generic" [or
"b/gdb/gdbtk/generic"]. So depending on what source directory you are
sitting in, you need to specify something other than "-p0" to `patch'.
If the CWD is (from CVS) src/gdb/, then you need -p2. If the CWD is
src/, you need -p1. If you are sitting in src/gdb/gdbtk/generic/, yes,
you need -p4 to ignore the first for directory components in the patch.
Keith