Do not try to access $S if it does not exist.
authorAlexis Ballier <aballier@gentoo.org>
Fri, 23 Apr 2010 11:02:00 +0000 (11:02 +0000)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 23 Apr 2010 11:02:00 +0000 (11:02 +0000)
profiles/default/bsd/ChangeLog
profiles/default/bsd/fbsd/profile.bashrc
profiles/default/bsd/profile.bashrc

index e9a9d1762d3177d7f7a660a2b7d768c8d5ffe88f..926e2b6257eb597f0ab3788b504a41994c1bd99d 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.34 2010/04/22 18:30:24 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/ChangeLog,v 1.35 2010/04/23 11:01:59 aballier Exp $
+
+  23 Apr 2010; Alexis Ballier <aballier@gentoo.org> fbsd/profile.bashrc,
+  profile.bashrc:
+  Do not try to access $S if it does not exist.
 
   22 Apr 2010; Alexis Ballier <aballier@gentoo.org> fbsd/package.use.mask:
   unmask ruby[threads], seems to work
index 9d763478b87a0a426336bd74b4cb145b429f2a69..8492e476ad28b27ef5e6edec69654686a61807d0 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.7 2010/04/03 11:49:51 the_paya Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/default/bsd/fbsd/profile.bashrc,v 1.8 2010/04/23 11:02:00 aballier Exp $
 
 alias make=gmake
 alias patch=gpatch
@@ -39,6 +39,10 @@ bsd-patch_install-sh() {
        if [[ -z $(type -P gpatch) ]]; then
                return 0
        fi
+
+        # Do nothing if $S does not exist
+        [ -d "${S}" ] || return 0
+
        local EPDIR="${ECLASSDIR}/ELT-patches/install-sh"
        local EPATCHES="${EPDIR}/1.5.6 ${EPDIR}/1.5.4 ${EPDIR}/1.5"
        local ret=0
index 0cf58d3be47f8efed3a9d445f22f118c5d34b5d3..4c5ecd5792073b8f6d1f2dd548ce89bdad9a87f7 100644 (file)
@@ -1,4 +1,4 @@
-if [[ ${EBUILD_PHASE} == compile ]] ; then
+if [[ ${EBUILD_PHASE} == compile ]] && [ -d "${S}" ] ; then
        if grep -q "Assume that mode_t is passed compatibly" ${S} -r --include openat.c; then
                eerror "The source code contains a faulty openat.c unit from gnulib."
                eerror "Please report this on Gentoo Bugzilla in Gentoo/Alt product for component FreeBSD."