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 <gentoo-user+bounces-95435-garchives=archives.gentoo.org@lists.gentoo.org>) id 1M5bg6-0008C3-Os for garchives@archives.gentoo.org; Sun, 17 May 2009 08:25:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B64D7E04C0; Sun, 17 May 2009 08:25:00 +0000 (UTC) Received: from mail.fraggod.net (unknown [91.191.238.58]) by pigeon.gentoo.org (Postfix) with ESMTP id 68421E04C0 for <gentoo-user@lists.gentoo.org>; Sun, 17 May 2009 08:25:00 +0000 (UTC) Received: from coercion (coercion.core [IPv6:2001:470:1f0b:11de::13]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.fraggod.net (Postfix) with ESMTPSA id 2AED41024BD for <gentoo-user@lists.gentoo.org>; Sun, 17 May 2009 14:24:59 +0600 (YEKST) Date: Sun, 17 May 2009 14:22:03 +0600 From: Mike Kazantsev <mike_kazantsev@fraggod.net> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Applying patches without needing overlays and modifying ebuilds Message-ID: <20090517142203.49cb9044@coercion> In-Reply-To: <guodrl$etu$1@ger.gmane.org> References: <guobnn$akq$1@ger.gmane.org> <4A0FB356.4020705@gmail.com> <guodrl$etu$1@ger.gmane.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i686-pc-linux-gnu) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/ybvL2OQrCIv.o9TtPO8HesJ"; protocol="application/pgp-signature" X-Archives-Salt: fd68c8d4-2172-4e9a-9bdc-3122418b6d01 X-Archives-Hash: 8f5e1f699b12d515438b7129da05d9f1 --Sig_/ybvL2OQrCIv.o9TtPO8HesJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 17 May 2009 10:20:33 +0300 Nikos Chantziaras <realnc@arcor.de> wrote: > >> What if we could just specify patches to be applied in, say, > >> /etc/portage/packages.patch with something like: > >> > >> media-video/smplayer j-random-hack.patch ... > >> Can someone think of a way to set up something like this? I'd suggest passing the list of patches thru the environment - it should be much easier to implement than commandline. Like this: MY_PATCHES=3D'j-random-hack.patch' emerge media-video/smplayer Then you can edit /usr/portage/eclass/base.eclass, adding processing of this var and all the patching you need to "base_src_util" function, right after "unpack ${A}". In fact, I think I've seen such thing already implemented somewhere, but prehaps it's just a by-product of my imagination. --=20 Mike Kazantsev // fraggod.net --Sig_/ybvL2OQrCIv.o9TtPO8HesJ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkoPyS8ACgkQASbOZpzyXnHgLACaAnaOUQWMLFzHBWB2t0ffhIvv KwoAn1ZObvhuU7T84WgNTf9PT/psiJWE =akzu -----END PGP SIGNATURE----- --Sig_/ybvL2OQrCIv.o9TtPO8HesJ--