/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.418 Revision 1.419
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.418 2013/05/15 19:01:36 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.419 2013/05/21 02:57:22 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
474 printf "NOTE: skipping -p0 due to absolute paths in patch:\n%s\n" "${abs_paths}" >> "${STDERR_TARGET}" 474 printf "NOTE: skipping -p0 due to absolute paths in patch:\n%s\n" "${abs_paths}" >> "${STDERR_TARGET}"
475 fi 475 fi
476 # Similar reason, but with relative paths. 476 # Similar reason, but with relative paths.
477 local rel_paths=$(egrep -n '^[-+]{3} [^ ]*[.][.]/' "${PATCH_TARGET}") 477 local rel_paths=$(egrep -n '^[-+]{3} [^ ]*[.][.]/' "${PATCH_TARGET}")
478 if [[ -n ${rel_paths} ]] ; then 478 if [[ -n ${rel_paths} ]] ; then
479 echo
480 eerror "Rejected Patch: ${patchname} !"
481 eerror " ( ${PATCH_TARGET} )"
482 eerror
479 eqawarn "QA Notice: Your patch uses relative paths '../'." 483 eerror "Your patch uses relative paths '../':"
480 eqawarn " In the future this will cause a failure."
481 eqawarn "${rel_paths}" 484 eerror "${rel_paths}"
485 echo
486 die "you need to fix the relative paths in patch"
482 fi 487 fi
483 488
484 # Dynamically detect the correct -p# ... i'm lazy, so shoot me :/ 489 # Dynamically detect the correct -p# ... i'm lazy, so shoot me :/
485 local patch_cmd 490 local patch_cmd
486 # Handle aliased patch command #404447 #461568 491 # Handle aliased patch command #404447 #461568

Legend:
Removed from v.1.418  
changed lines
  Added in v.1.419

  ViewVC Help
Powered by ViewVC 1.1.20