gnome2-utils.eclass: make sure configure exists before try to sed it
authorGilles Dartiguelongue <eva@gentoo.org>
Sat, 21 Nov 2015 11:25:07 +0000 (12:25 +0100)
committerGilles Dartiguelongue <eva@gentoo.org>
Tue, 24 Nov 2015 21:56:27 +0000 (22:56 +0100)
Would cause error messages, see bug #566202.

Thanks to Gregory Turner for reporting.

https://bugs.gentoo.org/show_bug.cgi?id=566202

eclass/gnome2-utils.eclass

index f945a7829d47d3526cb8cebaf5d20672b237db69..83a3610570411ab7ef65db1f0ec45b1718182109 100644 (file)
@@ -486,7 +486,7 @@ gnome2_disable_deprecation_warning() {
                fi
        done < <(find "${S}" -name "Makefile.in" \
                -o -name "Makefile.am" -o -name "Makefile.decl" \
-               | sort; echo configure)
+               | sort; [[ -f "${S}"/configure ]] && echo configure)
 # TODO: sedding configure.ac can trigger maintainer mode; bug #439602
 #              -o -name "configure.ac" -o -name "configure.in" \
 #              | sort; echo configure)