public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] epatch: splitting out common options from user-specific ones
@ 2012-04-18 18:03 Mike Frysinger
  2012-04-20  3:24 ` Mike Frysinger
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2012-04-18 18:03 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

it isn't uncommon for people to want to force the patch (-p#) or fuzz (-f#) 
level when applying specific patches.  but it is unusual that they want to kill 
off the extra options: -g0 -E --no-backup-if-mismatch.  so i'd like to split 
these off and improve the epatch API.

# Extra options to pass to `patch` (such as -p1).
EPATCH_OPTS=""
# Common options to pass to `patch` (you probably shouldn't need
# to change these at all).
EPATCH_COMMON_OPTS="-g0 -E --no-backup-if-mismatch"

and then i'll try to extend `epatch` so the first set of arguments can 
implicitly set EPATCH_OPTS for that one patch:
	epatch -p1 "${FILESDIR}"/${P}-foo.patch
this is much nicer than the current:
	EPATCH_OPTS="-p1" epatch "${FILESDIR}"/${P}-foo.patch

i can't see this causing any issues, but considering everyone uses `epatch`, 
best to ask first.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <iRHui-2kD-3@gated-at.bofh.it>]

end of thread, other threads:[~2012-04-20 21:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-18 18:03 [gentoo-dev] epatch: splitting out common options from user-specific ones Mike Frysinger
2012-04-20  3:24 ` Mike Frysinger
2012-04-20  3:38   ` Mike Frysinger
     [not found] <iRHui-2kD-3@gated-at.bofh.it>
2012-04-20 19:38 ` Leho Kraav
2012-04-20 19:54   ` Leho Kraav
2012-04-20 19:59   ` Mike Frysinger
2012-04-20 20:06     ` Leho Kraav
2012-04-20 21:40       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox