From nobody Thu Sep 05 06:19:53 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wzq2y0prdz5VHDw; Thu, 05 Sep 2024 06:19:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wzq2y00jLz41Xn; Thu, 5 Sep 2024 06:19:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725517194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+jXOf5st/hfJs3YwzVR2Ns6InhXusj6FLx2FSBAaJ54=; b=hse1RSltRJUVVtQQhUQ7aFsdDJbT674Cmr78nh2AegUOyx5MUYhbi4uUPMnf83UIbtGXu+ lFtmKZZp5XBg2LYMeQtoMQdSlGhDNeC9eNtV9DGdmqDMTfPGgBzeU6MZjYMrnW6dkGDOzz ujDjdhE2UJMEloBcuR+G0zjV+GcNZrIpfbhjICRci44Xgwf3Sm0yMzO/qvYMxdDipdWGD1 +iivy82E2Q64ZxgRLAc15MTic3ZqvFpJjF0Gyzprkxh/lPfMJpuUvHjDtgGQaiD8E4gg3A mw3WXYyXGuaRuOOkTQh025cOGnLKUOMddIIQVvEpApVZs58eUC255wTDEvg/OA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725517194; a=rsa-sha256; cv=none; b=famdb89opnJpjR6fM1StbxR6ipbmLd9mG/4cbY7LUCPgj+hAWyo5mJnqFF99298TlfgW2n /pt3mnQmzQhLcu6podR8R+5AcboJaRyJckJBVU0Lkb0yjzd9f0jfl+CRrSCYtudTLb5vKP tDL4gKziqU0l+o7ylgycQpdSP0XEUwnTSj/Rj9PNEsDtwbpDppU1L34HJftJMwNeFv0q3q CnxohuMICc7hNNoPgpoQkH9zZZVAJUsYaCUkEmGdXWMMf58Dz0/hMIr8iQreRHE4C1U3iN X+yDNjEnfccCogFzKU1/oRJDCqgCancOqbipfA1SG9wfa+qESJ1BiRj6AA87Lw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725517194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+jXOf5st/hfJs3YwzVR2Ns6InhXusj6FLx2FSBAaJ54=; b=Sben5dXV7c4JLAHbhrDtQU2ohy6QETWgtTLKp5sOa6rR8KjYguu6H/LYQDdhfHVTJ5yYJw vG/y16bRyeKNdO0LBgFCm8pkMvnhOZeBI/eMQ6T/Z8v8WjzJknsGYOerZj8zbXjgUyWP+W Qtuu7JFVbYjPCESE8BW2TKMfununmSDd0RKafTqJc3y95K6i9PhTjx5urluai3h2SFCgth v90mtkWCTW92x7UgwRmaJxmFGk3cyaeCk2OWECN6e1kWomedN++nUmwWnlgWAkC7PY6GMN J80api4rerAL0rStWrGLko7roZqHuo5wdv2kifacjpJc8ot50Zw5agHp547R9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wzq2x6jBFzxR8; Thu, 5 Sep 2024 06:19:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4856JrZj092496; Thu, 5 Sep 2024 06:19:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4856Jrb1092493; Thu, 5 Sep 2024 06:19:53 GMT (envelope-from git) Date: Thu, 5 Sep 2024 06:19:53 GMT Message-Id: <202409050619.4856Jrb1092493@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: ba4f0c871a3d - main - devel/pybind11_protobuf: Add make test List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ba4f0c871a3d0b885b1995ffd2f565fb4e9acc01 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=ba4f0c871a3d0b885b1995ffd2f565fb4e9acc01 commit ba4f0c871a3d0b885b1995ffd2f565fb4e9acc01 Author: Po-Chuan Hsieh AuthorDate: 2024-09-05 05:24:53 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-05 06:17:45 +0000 devel/pybind11_protobuf: Add make test --- devel/pybind11_protobuf/Makefile | 4 +++- .../files/patch-pybind11_protobuf-tests-CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/devel/pybind11_protobuf/Makefile b/devel/pybind11_protobuf/Makefile index 88cd22cc3eb7..ffb3f5236fde 100644 --- a/devel/pybind11_protobuf/Makefile +++ b/devel/pybind11_protobuf/Makefile @@ -13,8 +13,9 @@ BUILD_DEPENDS= abseil>=20230125:devel/abseil \ pybind11>=2.11.1:devel/pybind11 LIB_DEPENDS= libabsl_base.so:devel/abseil \ libprotobuf.so:devel/protobuf +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}absl-py>=0:devel/py-absl-py@${PY_FLAVOR} -USES= cmake compiler:c++17-lang python +USES= cmake:testing compiler:c++17-lang localbase python CFLAGS+= -I${WRKSRC} CMAKE_ARGS= -DCMAKE_INSTALL_PYDIR=${PYTHON_SITELIBDIR} @@ -22,6 +23,7 @@ CMAKE_OFF= BUILD_TESTING CMAKE_ON= USE_SYSTEM_ABSEIL \ USE_SYSTEM_PROTOBUF \ USE_SYSTEM_PYBIND +CMAKE_TESTING_ON= BUILD_TESTING USE_GITHUB= yes GH_ACCOUNT= pybind diff --git a/devel/pybind11_protobuf/files/patch-pybind11_protobuf-tests-CMakeLists.txt b/devel/pybind11_protobuf/files/patch-pybind11_protobuf-tests-CMakeLists.txt new file mode 100644 index 000000000000..97096ac5e577 --- /dev/null +++ b/devel/pybind11_protobuf/files/patch-pybind11_protobuf-tests-CMakeLists.txt @@ -0,0 +1,14 @@ +--- pybind11_protobuf/tests/CMakeLists.txt.orig 2024-08-09 17:15:35 UTC ++++ pybind11_protobuf/tests/CMakeLists.txt +@@ -2,10 +2,9 @@ + # Evaluate if Protobuf uses the system package, otherwise explicitly include the + # required macro + # +-FetchContent_GetProperties(Protobuf SOURCE_DIR Protobuf_SOURCE_DIR) + if(Protobuf_SOURCE_DIR) + # Use macros from content made available by FetchContent +- include(${Protobuf_SOURCE_DIR}/cmake/protobuf-generate.cmake) ++ include(${Protobuf_SOURCE_DIR}/lib/cmake/protobuf/protobuf-generate.cmake) + endif() + + # cmake-format: off