| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.304 2008/09/20 18:45:26 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.305 2008/09/20 18:55:07 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: eutils.eclass |
5 | # @ECLASS: eutils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # base-system@gentoo.org |
7 | # base-system@gentoo.org |
| 8 | # @BLURB: many extra (but common) functions that are used in ebuilds |
8 | # @BLURB: many extra (but common) functions that are used in ebuilds |
| … | |
… | |
| 260 | count=5 |
260 | count=5 |
| 261 | break |
261 | break |
| 262 | fi |
262 | fi |
| 263 | else |
263 | else |
| 264 | PATCH_TARGET="${x}" |
264 | PATCH_TARGET="${x}" |
|
|
265 | fi |
|
|
266 | |
|
|
267 | # Check for absolute paths in patches. If sandbox is disabled, |
|
|
268 | # people could (accidently) patch files in the root filesystem. |
|
|
269 | # Or trigger other unpleasantries #237667. |
|
|
270 | if egrep -q '^[-+]{3} /' "${PATCH_TARGET}" ; then |
|
|
271 | ewarn "Absolute paths found in ${patchname}! Please remove them!" |
| 265 | fi |
272 | fi |
| 266 | |
273 | |
| 267 | # Allow for prefix to differ ... im lazy, so shoot me :/ |
274 | # Allow for prefix to differ ... im lazy, so shoot me :/ |
| 268 | while [ "${count}" -lt 5 ] |
275 | while [ "${count}" -lt 5 ] |
| 269 | do |
276 | do |