Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179569 - eutils/epatch fails when deleting a file as an effect of a patch
Summary: eutils/epatch fails when deleting a file as an effect of a patch
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 19:25 UTC by Christian Heim (RETIRED)
Modified: 2007-05-24 17:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
04_all_gentoo-apache-tools.patch (04_all_gentoo-apache-tools.patch,3.58 KB, text/plain)
2007-05-23 19:26 UTC, Christian Heim (RETIRED)
Details
04_all_gentoo-apache-tools.patch-14418.out (04_all_gentoo-apache-tools.patch-14418.out,4.68 KB, text/plain)
2007-05-23 19:27 UTC, Christian Heim (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ..