gentoo-hardened December 2009 archive
Main Archive Page > Month Archives  > gentoo-hardened archives
gentoo-hardened: Re: [gentoo-hardened] Patching hardened-sources

Re: [gentoo-hardened] Patching hardened-sources

From: Steev Klimaszewski <steev_at_nospam>
Date: Fri Dec 11 2009 - 18:14:51 GMT
To: gentoo-hardened@lists.gentoo.org


On Fri, Dec 11, 2009 at 10:09 AM, Shinkan <shinkan@gmail.com> wrote:
>
>
> 2009/12/11 Ed W <lists@wildgooses.com>
>>
>> So why not patch it yourself?
>
> Because I want an automagic procedure that will be done many times. Without
> external scripts.
> And because I'll have to make ebuilds for other things, so that would be
> great to be consistent.
> I know roughtly how to handle kernel-2 eclass based ebuilds, but in my case,
> I would prefer local source fetch (from ebuild rep).
> For now, I can just have kernel-2 based ebuild to fetch a .diff or .tar.bz2
> from Internet. I would just like it to be directly in ebuild dir.
>
> I thank RB a lot for its precisions, but is there really no way of having
> SRC_URI auto-fetch a patch from ebuild dir instead of Internet ? I don't
> really want to switch from kernel-2 based ebuild to more generic EAPI 2
> ebuild just to make a local patch applied.

If the patch is in the overlay you're using you should (I thought at least, I could be wrong) you could just add UNIPATCH_LIST="${FILESDIR}/kernel-patch-to-add.patch" to the build.

It's something like that - its been a while since I've had to apply a patch to the kernel manually.

  • Steev