Skip to content

Commit

Permalink
python3-protobuf: update to 4.23.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnnynator committed Jul 16, 2023
1 parent 55f790d commit 748140e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 140 deletions.
11 changes: 11 additions & 0 deletions srcpkgs/python3-protobuf/patches/cpp17.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- 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')
132 changes: 0 additions & 132 deletions srcpkgs/python3-protobuf/patches/python-3.11.patch

This file was deleted.

16 changes: 8 additions & 8 deletions srcpkgs/python3-protobuf/template
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Template file for 'python3-protobuf'
pkgname=python3-protobuf
version=4.21.12
version=4.23.4
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-wheel"
build_wrksrc=python
hostmakedepends="python3-setuptools python3-wheel protobuf"
depends="python3-setuptools python3-six"
checkdepends="python3-numpy"
short_desc="Python3 bindings for Google Protocol Buffers"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="BSD-3-Clause"
homepage="https://developers.google.com/protocol-buffers/"
distfiles="${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz"
checksum=7cd532c4566d0e6feafecc1059d04c7915aec8e182d1cf7adee8b24ef1e2e6ab
# PyPi release does not have bits for cppext
distfiles="https://github.com/protocolbuffers/protobuf/releases/download/v${version#*.}/protobuf-${version#*.}.tar.gz"
checksum=a700a49470d301f1190a487a923b5095bf60f08f4ae4cac9f5f7c36883d17971
make_check=no # ImportError: cannot import name 'unittest_retention_pb2' from 'google.protobuf'

build_options="cppext"
build_options_default="cppext"
Expand All @@ -22,10 +26,6 @@ if [ "$build_option_cppext" ]; then
makedepends+=" python3-devel protobuf-devel"
fi

do_check() {
echo "skipping check: package ships with no tests"
}

post_install() {
sed -n 1,29p google/protobuf/__init__.py >LICENSE
vlicense LICENSE
Expand Down

0 comments on commit 748140e

Please sign in to comment.