Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33636 - epatch does not create the file on the right location when it's called with a patch wich only contains new files
Summary: epatch does not create the file on the right location when it's called with a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-16 13:54 UTC by Guy Martin (RETIRED)
Modified: 2004-04-18 13:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Martin (RETIRED) gentoo-dev 2003-11-16 13:54:16 UTC
epatch call patch with first -p0 and then -p1, -p2, -p3, ...

A problem occure when you apply a patch which add one or more missing files because patch -p0 will not fail to create the file. Un fortunately, if the patch needed -p1, the file is created at the wrong place.

To correct this bug, I suggest that a var like EPATCH_P could be set and used for the -p value or perhaps if EPATCH_OPTS is placed _after_ the epatch default -p, we would be able to override this.
Comment 1 SpanKY gentoo-dev 2004-04-18 13:45:41 UTC
fixed in cvs

$EPATCH_OPTS will now be placed after the -p#