chromium-2.eclass: avoid eshopt functions
authorMike Gilbert <floppym@gentoo.org>
Sun, 30 Sep 2018 23:33:31 +0000 (19:33 -0400)
committerMike Gilbert <floppym@gentoo.org>
Wed, 3 Oct 2018 03:12:00 +0000 (23:12 -0400)
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/chromium-2.eclass

index 712e44afc31dfcca7fe127b0fa7f40684e0b10c6..c9cfe5acebee94795836941951bd237381c41a33 100644 (file)
@@ -106,8 +106,7 @@ chromium_pkg_die() {
        fi
 
        # Prevent user problems like bug #348235.
-       eshopts_push -s extglob
-       if is-flagq '-g?(gdb)?([1-9])'; then
+       if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then
                ewarn
                ewarn "You have enabled debug info (i.e. -g or -ggdb in your CFLAGS/CXXFLAGS)."
                ewarn "This produces very large build files causes the linker to consume large"
@@ -116,7 +115,6 @@ chromium_pkg_die() {
                ewarn "Please try removing -g{,gdb} before reporting a bug."
                ewarn
        fi
-       eshopts_pop
 
        # ccache often causes bogus compile failures, especially when the cache gets
        # corrupted.