1 |
Hi all, |
2 |
|
3 |
base.eclass (which inherited by many other eclasses) has an src_unpack |
4 |
supporting patching from patchfiles listed in $PATCHES. However, today, if |
5 |
patching fails the process doesn't abort. So I propose: |
6 |
|
7 |
================== |
8 |
--- base.eclass 11 Jul 2005 15:08:06 -0000 1.27 |
9 |
+++ base.eclass 29 Jul 2005 13:45:39 -0000 |
10 |
@@ -35,11 +35,11 @@ base_src_unpack() { |
11 |
cd ${S} |
12 |
for x in $PATCHES; do |
13 |
debug-print "$FUNCNAME: autopatch: patching |
14 |
from ${x}" |
15 |
- patch -p0 < ${x} |
16 |
+ patch -p0 < ${x} || die "Patchfile $x failed |
17 |
to apply" |
18 |
done |
19 |
for x in $PATCHES1; do |
20 |
debug-print "$FUNCNAME: autopatch: patching |
21 |
-p1 from ${x}" |
22 |
- patch -p1 < ${x} |
23 |
+ patch -p1 < ${x} || die "Patchfile $x failed |
24 |
to apply" |
25 |
done |
26 |
;; |
27 |
all) |
28 |
==================== |
29 |
|
30 |
This will make some ebuilds fail which accidentally rely on non-applying |
31 |
patches, which is the correct thing to do IMHO. Objections? |
32 |
|
33 |
-- |
34 |
Dan Armak |
35 |
Gentoo Linux developer (KDE) |
36 |
Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key |
37 |
Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD 0069 508D 9143 8D5F 8951 |