Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 179569

Summary: eutils/epatch fails when deleting a file as an effect of a patch
Product: Gentoo Linux Reporter: Christian Heim (RETIRED) <phreak>
Component: EclassesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: jakub
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 04_all_gentoo-apache-tools.patch
04_all_gentoo-apache-tools.patch-14418.out

Description Christian Heim (RETIRED) gentoo-dev 2007-05-23 19:25:52 UTC
When a patch (or diff) contains a pattern to remove a file from the working dir, the epatch will fail due to:

patching file support/Makefile.in
Hunk #1 FAILED at 1.
File support/Makefile.in is not empty after patch, as expected
1 out of 1 hunk FAILED -- saving rejects to file support/Makefile.in.rej

While applying the *same* patch w/ plain "patch" works just fine and removes the file as expected.
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-05-23 19:26:13 UTC
Created attachment 120115 [details]
04_all_gentoo-apache-tools.patch
Comment 2 Christian Heim (RETIRED) gentoo-dev 2007-05-23 19:27:05 UTC
Created attachment 120117 [details]
04_all_gentoo-apache-tools.patch-14418.out
Comment 3 SpanKY gentoo-dev 2007-05-24 02:57:53 UTC
you're looking at the wrong error message ... the problem is:
Hunk #1 FAILED at 1.
Comment 4 Christian Heim (RETIRED) gentoo-dev 2007-05-24 17:04:17 UTC
(In reply to comment #3)
> you're looking at the wrong error message ... the problem is:
> Hunk #1 FAILED at 1.

You're absolutely right sir .. thanks for the honky donk ..