Fix working dir on patch_install-sh_bsd().
authorJavier Villavicencio <the_paya@gentoo.org>
Sat, 3 Apr 2010 11:49:51 +0000 (11:49 +0000)
committerJavier Villavicencio <the_paya@gentoo.org>
Sat, 3 Apr 2010 11:49:51 +0000 (11:49 +0000)
profiles/default/bsd/ChangeLog
profiles/default/bsd/fbsd/profile.bashrc

index 50064bc284a8c3a83d4b58141f3ca66b3804651f..589bb67f22e008260665783d11193bed078487a5 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for profile directory
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/ChangeLog,v 1.32 2010/04/01 08:20:18 the_paya Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/ChangeLog,v 1.33 2010/04/03 11:49:50 the_paya Exp $
+
+  03 Apr 2010; Javier Villavicencio <the_paya@gentoo.org>
+  fbsd/profile.bashrc:
+  Fix working dir on patch_install-sh_bsd().
 
   01 Apr 2010; Javier Villavicencio <the_paya@gentoo.org>
   fbsd/profile.bashrc:
index 82d6465c171cca8c27811d273f8ca0ec3d12a60d..9d763478b87a0a426336bd74b4cb145b429f2a69 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/fbsd/profile.bashrc,v 1.6 2010/04/01 08:20:18 the_paya Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/fbsd/profile.bashrc,v 1.7 2010/04/03 11:49:51 the_paya Exp $
 
 alias make=gmake
 alias patch=gpatch
@@ -42,6 +42,7 @@ bsd-patch_install-sh() {
        local EPDIR="${ECLASSDIR}/ELT-patches/install-sh"
        local EPATCHES="${EPDIR}/1.5.6 ${EPDIR}/1.5.4 ${EPDIR}/1.5"
        local ret=0
+       cd "${S}"
        for file in $(find . -name "install-sh" -print); do
                if [[ -n $(egrep "scriptversion=2005|scriptversion=2004" ${file}) ]]; then
                        einfo "Automatically patching parallel-make unfriendly install-sh."