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

Diff of /eclass/libtool.eclass

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

Revision 1.103 Revision 1.105
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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/libtool.eclass,v 1.103 2013/05/04 05:23:31 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.105 2013/05/07 14:23:33 vapier Exp $
4 4
5# @ECLASS: libtool.eclass 5# @ECLASS: libtool.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: quickly update bundled libtool code 8# @BLURB: quickly update bundled libtool code
46 if [[ -z ${__ELT_NOTED_TMP} ]] ; then 46 if [[ -z ${__ELT_NOTED_TMP} ]] ; then
47 __ELT_NOTED_TMP=true 47 __ELT_NOTED_TMP=true
48 printf 'temp patch: %s\n' "${patch}" > "${log}" 48 printf 'temp patch: %s\n' "${patch}" > "${log}"
49 fi 49 fi
50 printf '\nTrying %s\n' "${disp}" >> "${log}" 50 printf '\nTrying %s\n' "${disp}" >> "${log}"
51
52 if [[ ! -e ${file} ]] ; then
53 echo "File not found: ${file}" >> "${log}"
54 return 1
55 fi
51 56
52 # Save file for permission restoration. `patch` sometimes resets things. 57 # Save file for permission restoration. `patch` sometimes resets things.
53 cp -p "${file}" "${file}.gentoo.elt" 58 cp -p "${file}" "${file}.gentoo.elt"
54 # We only support patchlevel of 0 - why worry if its static patches? 59 # We only support patchlevel of 0 - why worry if its static patches?
55 if patch -p0 --dry-run "${file}" "${patch}" >> "${log}" 2>&1 ; then 60 if patch -p0 --dry-run "${file}" "${patch}" >> "${log}" 2>&1 ; then
134 local do_only_patches="no" 139 local do_only_patches="no"
135 local do_uclibc="yes" 140 local do_uclibc="yes"
136 local deptoremove= 141 local deptoremove=
137 local do_shallow="no" 142 local do_shallow="no"
138 local force="false" 143 local force="false"
139 local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed" 144 local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm"
140 145
141 for x in "$@" ; do 146 for x in "$@" ; do
142 case ${x} in 147 case ${x} in
143 --portage) 148 --portage)
144 # Only apply portage patch, and don't 149 # Only apply portage patch, and don't
351 fi 356 fi
352 if [[ $subret -eq 0 ]]; then 357 if [[ $subret -eq 0 ]]; then
353 # have at least one patch succeeded. 358 # have at least one patch succeeded.
354 ret=0 359 ret=0
355 fi 360 fi
361 ;;
362 target-nm)
363 ELT_walk_patches "${d}/configure" "${p}"
364 ret=$?
356 ;; 365 ;;
357 install-sh) 366 install-sh)
358 ELT_walk_patches "${d}/install-sh" "${p}" 367 ELT_walk_patches "${d}/install-sh" "${p}"
359 ret=$? 368 ret=$?
360 ;; 369 ;;

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.105

  ViewVC Help
Powered by ViewVC 1.1.20