$NetBSD: patch-storage_perfschema_CMakeLists.txt,v 1.1 2022/04/17 04:07:14 jnemeth Exp $

--- storage/perfschema/CMakeLists.txt.orig	2021-09-14 09:08:08.000000000 +0000
+++ storage/perfschema/CMakeLists.txt
@@ -275,10 +275,11 @@ table_replication_group_member_stats.cc
 )
 
 MYSQL_ADD_PLUGIN(perfschema ${PERFSCHEMA_SOURCES} STORAGE_ENGINE MANDATORY STATIC_ONLY NOT_FOR_EMBEDDED)
-IF(WITH_PERFSCHEMA_STORAGE_ENGINE AND WITH_UNIT_TESTS)
-  ENABLE_TESTING()
-  ADD_SUBDIRECTORY(unittest)
-ENDIF()
+# pkgsrc
+# IF(WITH_PERFSCHEMA_STORAGE_ENGINE AND WITH_UNIT_TESTS)
+#   ENABLE_TESTING()
+#   ADD_SUBDIRECTORY(unittest)
+# ENDIF()
 
 # Only disable threads when building without *any* instrumentation,
 # as other instrumentations have a dependency on threads.
