dev-db/percona-server: only check FEATURES on non-binary merge
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 20 Aug 2018 00:37:24 +0000 (02:37 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 20 Aug 2018 00:38:19 +0000 (02:38 +0200)
Package-Manager: Portage-2.3.47, Repoman-2.3.10

dev-db/percona-server/percona-server-5.6.41.84.1.ebuild

index 746ff1dba26f60497b7e8bc5e1e3983d26d261a6..a46ac7790a7508356ba65b3f0b0321d310121493 100644 (file)
@@ -209,24 +209,24 @@ pkg_setup() {
                        eerror "Please use gcc-config to switch to gcc-4.7 or later version."
                        die "Unsupported GCC version"
                fi
-       fi
 
-       if has test ${FEATURES} && \
-               use server && ! has userpriv ${FEATURES} ; then
-                       eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
-                       die "FEATURES=test with FEATURES=-userpriv is not supported"
-       fi
+               if has test ${FEATURES} && \
+                       use server && ! has userpriv ${FEATURES} ; then
+                               eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
+                               die "FEATURES=test with FEATURES=-userpriv is not supported"
+               fi
 
-       if has test ${FEATURES} && ! use test ; then
-               eerror "FEATURES=test requires USE=test."
-               die "FEATURES=test set but not USE=test"
+               if has test ${FEATURES} && ! use test ; then
+                       eerror "FEATURES=test requires USE=test."
+                       die "FEATURES=test set but not USE=test"
+               fi
+
+               use test && python-any-r1_pkg_setup
        fi
 
        # This should come after all of the die statements
        enewgroup mysql 60 || die "problem adding 'mysql' group"
        enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user"
-
-       use test && python-any-r1_pkg_setup
 }
 
 src_unpack() {