Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Mike Frysinger <vapier@g.o>
Subject: epatch: splitting out common options from user-specific ones
Date: Wed, 18 Apr 2012 14:03:07 -0400
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:
signature.asc (This is a digitally signed message part.)
Replies:
Re: epatch: splitting out common options from user-specific ones
-- Mike Frysinger
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
plymouth maintainer-needed
Next by thread:
Re: epatch: splitting out common options from user-specific ones
Previous by date:
Re: Making user patches globally available
Next by date:
Re: Making user patches globally available


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.