From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7114E15802F for ; Fri, 24 Feb 2023 07:41:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0442CE0809; Fri, 24 Feb 2023 07:41:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C45F9E0809 for ; Fri, 24 Feb 2023 07:41:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EA7DB340DCE for ; Fri, 24 Feb 2023 07:41:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A6EF8D3 for ; Fri, 24 Feb 2023 07:41:23 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1677184893.aa13bd535a4558b629b12b942aa2c4e67ae521f9.ceamac@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/open62541/files/, dev-libs/open62541/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/open62541/Manifest dev-libs/open62541/files/open62541-1.3.5-disable-xdp.patch dev-libs/open62541/open62541-1.3.5.ebuild X-VCS-Directories: dev-libs/open62541/files/ dev-libs/open62541/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: aa13bd535a4558b629b12b942aa2c4e67ae521f9 X-VCS-Branch: master Date: Fri, 24 Feb 2023 07:41:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2b557f27-f706-4a4b-82d6-f123c8789e8d X-Archives-Hash: 73387bbe41fd728d11c3d99b4ba5fef4 commit: aa13bd535a4558b629b12b942aa2c4e67ae521f9 Author: Kurt Kanzenbach kmk-computers de> AuthorDate: Thu Feb 23 18:55:22 2023 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Thu Feb 23 20:41:33 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aa13bd53 dev-libs/open62541: add 1.3.5 Signed-off-by: Kurt Kanzenbach kmk-computers.de> dev-libs/open62541/Manifest | 1 + .../files/open62541-1.3.5-disable-xdp.patch | 21 +++++ dev-libs/open62541/open62541-1.3.5.ebuild | 89 ++++++++++++++++++++++ 3 files changed, 111 insertions(+) diff --git a/dev-libs/open62541/Manifest b/dev-libs/open62541/Manifest index 93f71afd2..08cec5db7 100644 --- a/dev-libs/open62541/Manifest +++ b/dev-libs/open62541/Manifest @@ -1 +1,2 @@ DIST open62541-1.3.4.tar.gz 3867546 BLAKE2B d356f065d8565b5d7a0964116afb8e1dacb1a1c85c212baa6432830dca0a94232c24eed3d0aa0bd6f0a106ec137f038e5957dc383f4511d1fa8b49d5f2e0633a SHA512 3230355237a3c88351ddd1d291057ab0b1e4ab0a3a1218c90a0201d4d77769098e6fbced26efef7c8635020b6d64748d065fc707615c45487aa3502aa19b6687 +DIST open62541-1.3.5.tar.gz 3870493 BLAKE2B ee30e3b2f37f3fbf9b9e8c87317575336807eeaaf7a0bc35ca5f9e59cf9997126752424b8b971a4ed8eb457106a25cabc744389d1ef8c8d7a6c912cf34077c21 SHA512 bb45d288a097b461d2a7106153c7f4b4c38c73cf767fe15c6c9c2213a6e3fcaf9b436fb70c1e7c6dcbc8ef45f232a5bd2f140285fab486358cb5a3a17da96d6e diff --git a/dev-libs/open62541/files/open62541-1.3.5-disable-xdp.patch b/dev-libs/open62541/files/open62541-1.3.5-disable-xdp.patch new file mode 100644 index 000000000..cb5cb6e8f --- /dev/null +++ b/dev-libs/open62541/files/open62541-1.3.5-disable-xdp.patch @@ -0,0 +1,21 @@ +From: Kurt Kanzenbach +Subject: pubsub: Disable XDP code + +The XDP code assumes < dev-libs/libbpf-0.0.7. Disable it. + +Signed-off-by: Kurt Kanzenbach +--- + plugins/ua_pubsub_ethernet.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/plugins/ua_pubsub_ethernet.c ++++ b/plugins/ua_pubsub_ethernet.c +@@ -43,7 +43,7 @@ static UA_THREAD_LOCAL UA_Byte ReceiveMs + #include + + #if defined __has_include +-# if __has_include() && __has_include() && __has_include() ++# if 0 + # define LIBBPF_EBPF + /* Libbpf headers */ + # include diff --git a/dev-libs/open62541/open62541-1.3.5.ebuild b/dev-libs/open62541/open62541-1.3.5.ebuild new file mode 100644 index 000000000..f18e14222 --- /dev/null +++ b/dev-libs/open62541/open62541-1.3.5.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) + +inherit cmake python-single-r1 + +DESCRIPTION="Open source C implementation of OPC UA" +HOMEPAGE="https://www.open62541.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc encryption examples mbedtls pubsub openssl tools" +# Requires network access +RESTRICT="test" + +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + encryption? ( || ( mbedtls openssl ) ) +" + +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig + doc? ( + media-gfx/graphviz + $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] + ') + ) +" +DEPEND=" + mbedtls? ( net-libs/mbedtls:= ) + openssl? ( dev-libs/openssl:0= ) +" +RDEPEND=" + ${PYTHON_DEPS} + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}/${P}-disable-xdp.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DOPEN62541_VERSION=v${PV} + -DUA_BUILD_EXAMPLES=OFF + -DUA_BUILD_TOOLS=$(usex tools) + -DUA_BUILD_UNIT_TESTS=OFF + -DUA_ENABLE_PUBSUB=$(usex pubsub) + -DUA_ENABLE_PUBSUB_ETH_UADP=$(usex pubsub) + -DUA_FORCE_WERROR=OFF + ) + + if use encryption; then + use mbedtls && mycmakeargs+=(-DUA_ENABLE_ENCRYPTION=MBEDTLS) + use openssl && mycmakeargs+=(-DUA_ENABLE_ENCRYPTION=OPENSSL) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use doc && cmake_build doc +} + +src_install() { + use doc && local HTML_DOCS=( "${WORKDIR}"/${P}_build/doc/. ) + cmake_src_install + + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + dodoc -r examples/ + fi + + python_fix_shebang "${ED}" +} + +src_test() { + cmake_src_test -j1 +}