From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SKZDn-0006Ib-JA for garchives@archives.gentoo.org; Wed, 18 Apr 2012 18:03:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C970EE07D2; Wed, 18 Apr 2012 18:03:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4899CE0CD0 for ; Wed, 18 Apr 2012 18:02:19 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id BA4FD1B4020 for ; Wed, 18 Apr 2012 18:02:18 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] epatch: splitting out common options from user-specific ones Date: Wed, 18 Apr 2012 14:03:07 -0400 User-Agent: KMail/1.13.7 (Linux/3.4.0-rc1; KDE/4.6.5; x86_64; ; ) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2086144.ZddvjybBkf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201204181403.07937.vapier@gentoo.org> X-Archives-Salt: 45434684-4b60-4af0-a611-002529e0099b X-Archives-Hash: bef103f3b5f113cff312f4396c96ab20 --nextPart2086144.ZddvjybBkf Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable it isn't uncommon for people to want to force the patch (-p#) or fuzz (-f#)= =20 level when applying specific patches. but it is unusual that they want to = kill=20 off the extra options: -g0 -E --no-backup-if-mismatch. so i'd like to spli= t=20 these off and improve the epatch API. # Extra options to pass to `patch` (such as -p1). EPATCH_OPTS=3D"" # Common options to pass to `patch` (you probably shouldn't need # to change these at all). EPATCH_COMMON_OPTS=3D"-g0 -E --no-backup-if-mismatch" and then i'll try to extend `epatch` so the first set of arguments can=20 implicitly set EPATCH_OPTS for that one patch: epatch -p1 "${FILESDIR}"/${P}-foo.patch this is much nicer than the current: EPATCH_OPTS=3D"-p1" epatch "${FILESDIR}"/${P}-foo.patch i can't see this causing any issues, but considering everyone uses `epatch`= ,=20 best to ask first. =2Dmike --nextPart2086144.ZddvjybBkf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPjwHbAAoJEEFjO5/oN/WBMMMP/2+PFcearQjlFegPgQNB1rZa NL2Qn5VoAaixtVnkdu9CELJsnSHn9pXpVbgRD+EuN20jL+b1vMb1q9KYsgYACGZS dtZrCXug9CcG1VOcxR6MBg3ShEA/Vqd0oOBt6137lEMbBvQr6GSNcGfcinvQ2MBX cD9IObR4NoqHobYLLdy5CWTOmsARTKEFt4DftKem5kljatIGT7/tuDJmBuoIXt/4 V5PUveOzXws6IlrnuauZbu30gM2CRuREpGaW0YxEwJ4acf1RFnAHmRdBBreSx0xh EXd+6hPQe8FZS6luZaHcnGOBu6hTpbm9KOCZr0mwBP+vRU1wifFuZvTCqn6g/qpK LT5tUU5YNEzmZ5MjRBNC+6y46fWgXSQg+Z/uLQ25Q2kkvuuGPyVGG1Z1gN/Ut7R6 0uKd4/WiB1g2OvEhVa5lYgwetFmxmcLnOS83glND/ZPORnK5LbXFDPU5PUi2BQah E5wIIF2rbQw49m/8DGu9U7Zczdx+OCfTs5zje44OV6sYr+By2nVO4zoVNcvJqLuo 0GByfWUUjJ27tUIBuHN3EsXY3pbUHHfoQSf+buN+M707iXblSR4nlAE/K3LGu2o1 v2lYLtRz219vaVrnxS/46kZzLtx3cTH01FKXRLmBi6koHt6kv2mWQ+7eD14AR22x cgatkItO1ZLDj0Z+OVMv =ZVO2 -----END PGP SIGNATURE----- --nextPart2086144.ZddvjybBkf--