/[gentoo-x86]/app-shells/bash/bash-4.0_p38.ebuild
Gentoo

Diff of /app-shells/bash/bash-4.0_p38.ebuild

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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/app-shells/bash/bash-4.0_p38.ebuild,v 1.2 2011/02/06 17:21:49 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.0_p38.ebuild,v 1.3 2011/05/16 10:36:26 nyhm Exp $
4 4
5EAPI="1" 5EAPI="1"
6 6
7inherit eutils flag-o-matic toolchain-funcs multilib 7inherit eutils flag-o-matic toolchain-funcs multilib
8 8
165 165
166 if [[ -L ${ROOT}/bin/sh ]]; then 166 if [[ -L ${ROOT}/bin/sh ]]; then
167 # rewrite the symlink to ensure that its mtime changes. having /bin/sh 167 # rewrite the symlink to ensure that its mtime changes. having /bin/sh
168 # missing even temporarily causes a fatal error with paludis. 168 # missing even temporarily causes a fatal error with paludis.
169 local target=$(readlink "${ROOT}"/bin/sh) 169 local target=$(readlink "${ROOT}"/bin/sh)
170 local tmp=$(emktemp "${ROOT}"/bin)
171 ln -sf "${target}" "${tmp}"
170 ln -sf "${target}" "${ROOT}"/bin/sh 172 mv -f "${tmp}" "${ROOT}"/bin/sh
171 fi 173 fi
172} 174}
173 175
174pkg_postinst() { 176pkg_postinst() {
175 # If /bin/sh does not exist, provide it 177 # If /bin/sh does not exist, provide it

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20