1 |
Ciaran McCreesh kirjoitti: |
2 |
> On Sun, 30 Mar 2008 17:18:44 -0400 |
3 |
> Mark Loeser <halcy0n@g.o> wrote: |
4 |
>> If it is something we want to move forward with, it should be |
5 |
>> introduced at the package manager level instead of being an in-tree |
6 |
>> package manager specific feature. |
7 |
> |
8 |
> cat /etc/paludis/hooks/ebuild_unpack_post/patches.bash |
9 |
> ( |
10 |
> einfo "Looking for user patches" |
11 |
> cd "${S}" |
12 |
> patchdir="/etc/paludis/autopatch/${CATEGORY}/${PN}" |
13 |
> if [[ -d $patchdir ]] ; then |
14 |
> einfo "Applying user patches" |
15 |
> for p in $patchdir/*.patch ; do |
16 |
> einfo "Applying $(basename ${p} )" |
17 |
> patch -p1 < ${p} || exit 1 |
18 |
> done |
19 |
> einfo "Done" |
20 |
> fi |
21 |
> ) |
22 |
> |
23 |
> Not that I'd really encourage its use... |
24 |
> |
25 |
|
26 |
A similar hook can be rewritten (and I think solar already has) using |
27 |
Portage bashrc support so we already have the custom patching support. |
28 |
|
29 |
Regards, |
30 |
Petteri |