From 9c8b2e49da659864a3d84d44d7dbc4211994795e Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Tue, 10 Sep 2024 18:17:20 +0200 Subject: [PATCH] python3-protobuf: update to 5.29.4 upb is now the default implementation https://github.com/protocolbuffers/protobuf/blob/main/python/README.md --- srcpkgs/python3-protobuf/patches/cpp17.patch | 11 ---------- srcpkgs/python3-protobuf/template | 22 +++++--------------- 2 files changed, 5 insertions(+), 28 deletions(-) delete mode 100644 srcpkgs/python3-protobuf/patches/cpp17.patch diff --git a/srcpkgs/python3-protobuf/patches/cpp17.patch b/srcpkgs/python3-protobuf/patches/cpp17.patch deleted file mode 100644 index 97b81e1bfa5..00000000000 --- a/srcpkgs/python3-protobuf/patches/cpp17.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/python/setup.py 2023-07-05 23:53:30.000000000 +0200 -+++ - 2023-07-14 16:19:35.949677747 +0200 -@@ -370,7 +370,7 @@ - extra_compile_args.append('-Wno-invalid-offsetof') - extra_compile_args.append('-Wno-sign-compare') - extra_compile_args.append('-Wno-unused-variable') -- extra_compile_args.append('-std=c++14') -+ extra_compile_args.append('-std=c++17') - - if sys.platform == 'darwin': - extra_compile_args.append('-Wno-shorten-64-to-32') diff --git a/srcpkgs/python3-protobuf/template b/srcpkgs/python3-protobuf/template index 389b19b8f23..d0a1a2418a1 100644 --- a/srcpkgs/python3-protobuf/template +++ b/srcpkgs/python3-protobuf/template @@ -1,30 +1,18 @@ # Template file for 'python3-protobuf' pkgname=python3-protobuf -version=4.25.2 -revision=2 +version=5.29.4 +revision=1 build_style=python3-module -build_wrksrc=python hostmakedepends="python3-setuptools python3-wheel protobuf" +makedepends="python3-devel protobuf-devel" depends="python3-setuptools python3-six" checkdepends="python3-numpy" short_desc="Python3 bindings for Google Protocol Buffers" maintainer="Orphaned " license="BSD-3-Clause" homepage="https://developers.google.com/protocol-buffers/" -# PyPi release does not have bits for cppext -distfiles="https://github.com/protocolbuffers/protobuf/releases/download/v${version#*.}/protobuf-${version#*.}.tar.gz" -checksum=8ff511a64fc46ee792d3fe49a5a1bcad6f7dc50dfbba5a28b0e5b979c17f9871 -make_check=no # ImportError: cannot import name 'unittest_retention_pb2' from 'google.protobuf' - -build_options="cppext" -build_options_default="cppext" -desc_option_cppext="Build C++ extension to improve performance" - -if [ "$build_option_cppext" ]; then - make_build_args="--cpp_implementation" - make_install_args="--cpp_implementation" - makedepends+=" python3-devel protobuf-devel" -fi +distfiles="${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz" +checksum=4f1dfcd7997b31ef8f53ec82781ff434a28bf71d9102ddde14d076adcfc78c99 post_install() { sed -n 1,29p google/protobuf/__init__.py >LICENSE