https://bugs.kde.org/show_bug.cgi?id=211031

--- Comment #22 from Jefferson Carpenter <jeffersoncarpent...@gmail.com> ---
(In reply to Jefferson Carpenter from comment #21)
> I created the patch using git format-patch, so you should apply it using
> either
> 
> $ git apply 0001-Add-read_pe_debug_info-V2.patch
> 
> or
> 
> $ patch -p 1 <0001-Add-read_pe_debug_info-V2.patch
> 
> I'm still not clear on the best way to create patch files.

Here's what I think happened - by default patch strips all directories off of
the path in the patch file.  Since Makefile.am does exist in the root directory
patch attempts to apply HUNK 1 but fails because HUNK 1 is actually for the
coregrind/Makefile.am file.  (Then, since coregrind/m_debuginfo/debuginfo.c is
modified but debuginfo.c does not exist in the root directory of valgrind,
patch has to ask for its directory.  priv_readpe.h and readpe.c are both new
files, but patch again strips their directories and places them in the root
directory).  Moral of the story: run patch with a -p option if the patch file
has knowledge of the directory structure of your project.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to