diff options
author | Fabian Groffen <grobian@gentoo.org> | 2010-04-30 17:16:47 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2010-04-30 17:16:47 +0000 |
commit | 9a5ad8fdbf5a949e32935a428f6da6af32f8cb68 (patch) | |
tree | 5ce6921bb79efa2e86278596b8eb96ddfe67f601 /sys-devel | |
parent | Fix for #300657, thanks Gianluigi Tiesi for providing the patches (diff) | |
download | gentoo-2-9a5ad8fdbf5a949e32935a428f6da6af32f8cb68.tar.gz gentoo-2-9a5ad8fdbf5a949e32935a428f6da6af32f8cb68.tar.bz2 gentoo-2-9a5ad8fdbf5a949e32935a428f6da6af32f8cb68.zip |
Change shebang of am-wrapper script from /bin/sh to bin/sh from the offset for Prefix installs, since /bin/sh rarely is a POSIX shell out there.
(Portage version: 2.2.00.15842-prefix/cvs/Darwin powerpc)
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/automake-wrapper/ChangeLog | 7 | ||||
-rw-r--r-- | sys-devel/automake-wrapper/automake-wrapper-5.ebuild | 12 |
2 files changed, 16 insertions, 3 deletions
diff --git a/sys-devel/automake-wrapper/ChangeLog b/sys-devel/automake-wrapper/ChangeLog index 60b8841e845a..9057f45f4883 100644 --- a/sys-devel/automake-wrapper/ChangeLog +++ b/sys-devel/automake-wrapper/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-devel/automake-wrapper # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/ChangeLog,v 1.44 2010/04/18 12:36:13 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/ChangeLog,v 1.45 2010/04/30 17:16:47 grobian Exp $ + + 30 Apr 2010; Fabian Groffen <grobian@gentoo.org> + automake-wrapper-5.ebuild: + Change shebang of am-wrapper script from /bin/sh to bin/sh from the offset + for Prefix installs, since /bin/sh rarely is a POSIX shell out there. 18 Apr 2010; <nixnut@gentoo.org> automake-wrapper-4.ebuild: ppc stable #295947 diff --git a/sys-devel/automake-wrapper/automake-wrapper-5.ebuild b/sys-devel/automake-wrapper/automake-wrapper-5.ebuild index ac1221fd2c98..6818ff46752f 100644 --- a/sys-devel/automake-wrapper/automake-wrapper-5.ebuild +++ b/sys-devel/automake-wrapper/automake-wrapper-5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/automake-wrapper-5.ebuild,v 1.1 2010/03/07 15:45:39 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/automake-wrapper-5.ebuild,v 1.2 2010/04/30 17:16:47 grobian Exp $ inherit multilib @@ -15,9 +15,17 @@ IUSE="" S=${WORKDIR} +src_unpack() { + cp "${FILESDIR}"/am-wrapper-${PV}.sh "${T}"/ + # usr/bin/aclocal: bad substitution -> /bin/sh != POSIX shell + if use prefix ; then + sed -i -e '1c\#!'"${EPREFIX}"'/bin/sh' "${T}"/am-wrapper-${PV}.sh || die + fi +} + src_install() { exeinto /usr/$(get_libdir)/misc - newexe "${FILESDIR}"/am-wrapper-${PV}.sh am-wrapper.sh || die + newexe "${T}"/am-wrapper-${PV}.sh am-wrapper.sh || die keepdir /usr/share/aclocal |