Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 55909
Collapse All | Expand All

(-)/usr/portage/eclass/base.eclass (-11 / +9 lines)
Lines 28-52 Link Here
28
			;;
28
			;;
29
		patch)
29
		patch)
30
			debug-print-section patch
30
			debug-print-section patch
31
			cd ${S}
31
			if [ -a ${FILESDIR}/${P}-gentoo.diff ]; then
32
			patch -p0 < ${FILESDIR}/${P}-gentoo.diff
32
				cd ${S}
33
				epatch  ${FILESDIR}/${P}-gentoo.diff
34
			fi
33
			;;
35
			;;
34
		autopatch)
36
		autopatch)
35
			debug-print-section autopatch
37
			debug-print-section autopatch
36
			debug-print "$FUNCNAME: autopatch: PATCHES=$PATCHES, PATCHES1=$PATCHES1"
38
			debug-print "$FUNCNAME: autopatch: PATCHES=$PATCHES"
37
			cd ${S}
39
			cd ${S}
38
			for x in $PATCHES; do
40
			for patch in $PATCHES; do
39
				debug-print "$FUNCNAME: autopatch: patching from ${x}"
41
				debug-print "$FUNCNAME: autopatch: patching from ${patch}"
40
				patch -p0 < ${x}
42
				epatch ${patch}
41
			done
42
			for x in $PATCHES1; do
43
				debug-print "$FUNCNAME: autopatch: patching -p1 from ${x}"
44
				patch -p1 < ${x}
45
			done
43
			done
46
			;;
44
			;;
47
	        all)
45
	        all)
48
			debug-print-section all
46
			debug-print-section all
49
			base_src_unpack unpack autopatch
47
			base_src_unpack unpack patch autopatch
50
			;;
48
			;;
51
		esac
49
		esac
52
50

Return to bug 55909